From b7540bf1a3f7e7f041ea8b3d3a3a23b15cab187c Mon Sep 17 00:00:00 2001 From: Sundong Ahn Date: Thu, 8 Nov 2018 19:06:45 +0900 Subject: [PATCH] Change the impl lib name of java_sdk_library The impl lib name of java_sdk_library is changed to {module_name}.jar instead of {module_name}.impl.jar android.test.mock.impl is removed from stubs_defaults. RepetitiveTest class is added to public API in android.test.base Bug: 110404779 Test: m -j Change-Id: I5dd7f3a28bc22136b4e921de3eb5a3e77e5fc75f --- Android.bp | 1 - data/etc/platform.xml | 6 +++--- test-legacy/Android.bp | 2 +- test-mock/Android.bp | 16 ++++++++++++++++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Android.bp b/Android.bp index c2024084d95d0..b76e9239bddc3 100644 --- a/Android.bp +++ b/Android.bp @@ -1317,7 +1317,6 @@ stubs_defaults { "ext", "framework", "voip-common", - "android.test.mock.impl", ], local_sourcepaths: frameworks_base_subdirs, installable: false, diff --git a/data/etc/platform.xml b/data/etc/platform.xml index 4a2db0a6bb544..fb43e41010b44 100644 --- a/data/etc/platform.xml +++ b/data/etc/platform.xml @@ -223,12 +223,12 @@ code to link against. --> + file="/system/framework/android.test.base.jar" /> diff --git a/test-legacy/Android.bp b/test-legacy/Android.bp index 833c714f07b0b..a69f422b3bdbe 100644 --- a/test-legacy/Android.bp +++ b/test-legacy/Android.bp @@ -25,7 +25,7 @@ java_library_static { static_libs: [ "android.test.base-minus-junit", "android.test.runner-minus-junit", - "android.test.mock.impl", + "android.test.mock_static", ], no_framework_libs: true, diff --git a/test-mock/Android.bp b/test-mock/Android.bp index e1d6e01d6d06f..43b765d8b7832 100644 --- a/test-mock/Android.bp +++ b/test-mock/Android.bp @@ -30,3 +30,19 @@ java_sdk_library { srcs_lib_whitelist_pkgs: ["android"], compile_dex: true, } + +// Build the android.test.mock_static library +// ========================================== +// This is only intended for inclusion in the legacy-android-test. +// Must not be used elewhere. +java_library_static { + name: "android.test.mock_static", + + java_version: "1.8", + srcs: ["src/**/*.java"], + + no_framework_libs: true, + libs: [ + "framework", + ], +}