Merge "Convert core/tests/packagemanagertests/Android.mk file to Android.bp" am: 49c11e6844

Change-Id: I50801dbbe2127d2e8ef6ecc6909fa26efc87cad9
This commit is contained in:
Treehugger Robot
2020-05-19 21:40:48 +00:00
committed by Automerger Merge Worker
2 changed files with 14 additions and 22 deletions

View File

@@ -0,0 +1,14 @@
android_test {
name: "FrameworksCorePackageManagerTests",
// We only want this apk build for tests.
// Include all test java files.
srcs: ["src/**/*.java"],
static_libs: [
"androidx.test.rules",
"frameworks-base-testutils",
"mockito-target-minus-junit4",
],
libs: ["android.test.runner"],
platform_apis: true,
certificate: "platform",
}

View File

@@ -1,22 +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 := \
androidx.test.rules \
frameworks-base-testutils \
mockito-target-minus-junit4
LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_PACKAGE_NAME := FrameworksCorePackageManagerTests
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)