diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-02 17:11:35 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-02 17:11:35 +0000 |
commit | adcb150ad92063263795b7b6dcefff161993bbd8 (patch) | |
tree | 56f31157953f23fba647e4379f76cb97469bf935 | |
parent | bb098f6cce64b58dd7b011b16a258e644236f943 (diff) | |
parent | 179f1daf98c96301c5d78b68d11695ce61c6cd16 (diff) | |
download | cbor-java-adcb150ad92063263795b7b6dcefff161993bbd8.tar.gz |
Snap for 9023430 from 179f1daf98c96301c5d78b68d11695ce61c6cd16 to simpleperf-release
Change-Id: Id4bd9484f9e01c7e3fb595e6374530278e85e38c
-rw-r--r-- | Android.bp | 27 | ||||
-rw-r--r-- | AndroidManifest.xml | 27 | ||||
-rw-r--r-- | AndroidTest.xml | 28 | ||||
-rw-r--r-- | LICENSE | 14 | ||||
-rw-r--r-- | OWNERS | 4 | ||||
-rw-r--r-- | TEST_MAPPING | 8 |
6 files changed, 107 insertions, 1 deletions
@@ -37,6 +37,31 @@ java_library { srcs: [ "src/main/**/*.java", ], - + min_sdk_version: "30", sdk_version: "core_current", + apex_available: [ + "//apex_available:platform", + "com.android.adservices", + ], +} + +android_test { + name: "CborJavaTestCases", + srcs: [ + "src/test/**/*.java", + ], + static_libs: [ + "androidx.test.rules", + "cbor-java", + ], + libs: [ + "android.test.base", + ], + min_sdk_version: "30", + sdk_version: "test_current", + test_suites: [ + "general-tests", + "mts-adservices", + ], + visibility: ["//visibility:private"], } diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..5009bad --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2022 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="co.nstant.in.cbor" > + + <uses-sdk android:minSdkVersion="30" /> + <application /> + <instrumentation + android:name="androidx.test.runner.AndroidJUnitRunner" + android:targetPackage="co.nstant.in.cbor" > + </instrumentation> +</manifest> diff --git a/AndroidTest.xml b/AndroidTest.xml new file mode 100644 index 0000000..0f077ff --- /dev/null +++ b/AndroidTest.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2022 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> +<configuration description="Config for cbor-java tests"> + <option name="test-suite-tag" value="mts" /> + + <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> + <option name="cleanup-apks" value="true"/> + <option name="test-file-name" value="CborJavaTestCases.apk"/> + </target_preparer> + + <test class="com.android.tradefed.testtype.AndroidJUnitTest"> + <option name="package" value="co.nstant.in.cbor"/> + </test> +</configuration>
\ No newline at end of file @@ -1,3 +1,17 @@ +Copyright 2013-2021 Constantin Rack + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +-------------------------------------------------------------------------------- Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -0,0 +1,4 @@ +# Default code reviewers picked from top 3 or more developers. +# Please update this list if you find better candidates. +zeuthen@google.com +jorgesaldivar@google.com diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..8208df6 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,8 @@ +{ + "mainline-presubmit": [ + { + "name": "CborJavaTestCases" + } + ] +} + |