Merge "Convert core/tests/packagemanagertests/Android.mk file to Android.bp"

This commit is contained in:
Treehugger Robot
2020-05-19 21:16:58 +00:00
committed by Gerrit Code Review
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)