Convert core/tests/privacytests/Android.mk file to Android.bp

See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger, atest FrameworksPrivacyLibraryTests
Change-Id: I000a5a635874ce88d32e8172d07f74c3fbb153c5
This commit is contained in:
Sasha Smundak
2020-05-19 12:17:43 -07:00
parent 62254b17ea
commit e304da543e
2 changed files with 14 additions and 20 deletions

View File

@@ -0,0 +1,14 @@
android_test {
name: "FrameworksPrivacyLibraryTests",
srcs: ["src/**/*.java"],
static_libs: [
"junit",
"rappor-tests",
"androidx.test.rules",
"truth-prebuilt",
],
libs: ["android.test.runner"],
platform_apis: true,
certificate: "platform",
test_suites: ["device-tests"],
}

View File

@@ -1,20 +0,0 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
# We only want this apk build for tests.
LOCAL_MODULE_TAGS := tests
# Include all test java files.
LOCAL_SRC_FILES := \
$(call all-java-files-under, src)
LOCAL_STATIC_JAVA_LIBRARIES := junit rappor-tests androidx.test.rules truth-prebuilt
LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_PACKAGE_NAME := FrameworksPrivacyLibraryTests
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_CERTIFICATE := platform
LOCAL_COMPATIBILITY_SUITE := device-tests
include $(BUILD_PACKAGE)