From 616e299222ef6642a13e173181d75fa03ad01d3f Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 19 May 2020 21:12:39 +0900 Subject: [PATCH] Drop .stubs from android.test.[base|runner|mock].stubs The .stubs library refer to the stub library of a java_sdk_library. Since the name of the stub library is the implementation detail of the build system, direct use of the name should be prohibited. Actually, clients don't need to use the stub name directly because the build system automatically redirects to .stubs. Exempt-From-Owner-Approval: too many owners are involved. This is a simple build script change. Bug: 157007292 Test: m Merged-In: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7 (cherry picked from commit 89c4e06853f7ea4b5a62a3b02b4f5113617b2c60) Change-Id: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7 --- tests/cts/hostside/app/Android.bp | 4 ++-- tests/cts/net/Android.bp | 2 +- tests/cts/net/api23Test/Android.bp | 2 +- tests/cts/net/ipsec/Android.bp | 2 +- tests/cts/tethering/Android.bp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/cts/hostside/app/Android.bp b/tests/cts/hostside/app/Android.bp index 7a1145609f..e129be7b7d 100644 --- a/tests/cts/hostside/app/Android.bp +++ b/tests/cts/hostside/app/Android.bp @@ -28,8 +28,8 @@ android_test_helper_app { "CtsHostsideNetworkTestsAidl", ], libs: [ - "android.test.runner.stubs", - "android.test.base.stubs", + "android.test.runner", + "android.test.base", ], srcs: ["src/**/*.java"], // Tag this module as a cts test artifact diff --git a/tests/cts/net/Android.bp b/tests/cts/net/Android.bp index 1ede5f75f9..c90ca5e4ab 100644 --- a/tests/cts/net/Android.bp +++ b/tests/cts/net/Android.bp @@ -22,7 +22,7 @@ java_defaults { libs: [ "voip-common", "org.apache.http.legacy", - "android.test.base.stubs", + "android.test.base", ], jni_libs: [ diff --git a/tests/cts/net/api23Test/Android.bp b/tests/cts/net/api23Test/Android.bp index ffeef48a88..0ce9826a2b 100644 --- a/tests/cts/net/api23Test/Android.bp +++ b/tests/cts/net/api23Test/Android.bp @@ -20,7 +20,7 @@ android_test { compile_multilib: "both", libs: [ - "android.test.base.stubs", + "android.test.base", ], srcs: [ diff --git a/tests/cts/net/ipsec/Android.bp b/tests/cts/net/ipsec/Android.bp index 16bdb0548a..f27bb6f09c 100644 --- a/tests/cts/net/ipsec/Android.bp +++ b/tests/cts/net/ipsec/Android.bp @@ -21,7 +21,7 @@ android_test { libs: [ "android.net.ipsec.ike.stubs.system", - "android.test.base.stubs", + "android.test.base", ], srcs: [ diff --git a/tests/cts/tethering/Android.bp b/tests/cts/tethering/Android.bp index 85bb0e03f1..b1d4a6052b 100644 --- a/tests/cts/tethering/Android.bp +++ b/tests/cts/tethering/Android.bp @@ -17,7 +17,7 @@ android_test { defaults: ["cts_defaults"], libs: [ - "android.test.base.stubs", + "android.test.base", ], srcs: [