diff options
| -rw-r--r-- | tests/Android.bp | 19 | ||||
| -rw-r--r-- | tests/Android.mk | 16 |
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) |
