summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuntao Xu <yuntaoxu@google.com>2021-06-28 22:01:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-06-28 22:01:44 +0000
commite365ae93b18931a44014478c1ca30356de934d3b (patch)
tree61f5a498f2b80396586e59d9ec78e2ba73da2434
parent8ab3b76c48904dde6f9725c8be3801596c0449b1 (diff)
parentc1a3a27689f20a6ed5f024d6ce131b8dc29aeaf8 (diff)
downloadplatform_packages_services_Mtp-android-s-beta-5.tar.gz
platform_packages_services_Mtp-android-s-beta-5.tar.bz2
platform_packages_services_Mtp-android-s-beta-5.zip
-rw-r--r--tests/Android.bp19
-rw-r--r--tests/Android.mk16
2 files changed, 19 insertions, 16 deletions
diff --git a/tests/Android.bp b/tests/Android.bp
new file mode 100644
index 0000000..6278272
--- /dev/null
+++ b/tests/Android.bp
@@ -0,0 +1,19 @@
+package {
+ // See: http://go/android-license-faq
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_test {
+ name: "MtpServiceTests",
+ srcs: ["src/**/*.java"],
+ libs: [
+ "android.test.runner",
+ "android.test.base",
+ "android.test.mock",
+ ],
+ static_libs: ["junit"],
+ platform_apis: true,
+ instrumentation_for: "MtpService",
+ certificate: "media",
+ test_suites: ["device-tests"],
+}
diff --git a/tests/Android.mk b/tests/Android.mk
deleted file mode 100644
index b8103c9..0000000
--- a/tests/Android.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := tests
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base android.test.mock
-LOCAL_STATIC_JAVA_LIBRARIES := junit
-LOCAL_PACKAGE_NAME := MtpServiceTests
-LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
-LOCAL_LICENSE_CONDITIONS := notice
-LOCAL_PRIVATE_PLATFORM_APIS := true
-LOCAL_INSTRUMENTATION_FOR := MtpService
-LOCAL_CERTIFICATE := media
-LOCAL_COMPATIBILITY_SUITE := device-tests
-
-include $(BUILD_PACKAGE)