From 430caa91219bd994751f41ffaf16622a6d5f5388 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Wed, 28 Oct 2020 10:10:20 +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. This is a partial cherry-pick for the networking tests. Bug: 157007292 Test: m Merged-In: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7 (cherry picked from commit 4072d4d5d4078cc53efeeee7fc5439f3cd232747) Change-Id: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7 --- tests/cts/hostside/app/Android.bp | 4 ++-- tests/cts/net/Android.bp | 2 +- tests/cts/net/api23Test/Android.bp | 2 +- 3 files changed, 4 insertions(+), 4 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 b35b850bc3..4c00428f71 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: [