summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2020-06-01 14:56:39 +0900
committer Jiyong Park <jiyong@google.com> 2020-06-12 11:06:08 +0900
commitea4dced0bcbd1c7c3d4f2472362408c887c734f9 (patch)
treefd00c057e541d829e66d6b030f4152bf21d31fbd
parent5bd9279c863c083a40a3505f05de945f648963d1 (diff)
Build FrameworkTestRunnerTest with the implementation lib.
FrameworkTestRunnerTests is the test for android.test.runner. The test accesses various private APIs from the sdk library. Previously, that was possible because depending on a java_sdk_library gave the implementation lib of the java_sdk_library for linking. That will be changed after I14cf217f21fd3534c920c3a6336cf2d14c02e60c where the stubs are by default provided for linking. Since this test actually uses some hidden APIs, work around the restriction by explicitly depending on the impl library. Bug: 157007292 Test: m FrameworkTestRunnerTests Change-Id: I0792e9eb1c7c594a1609eb89b6694c1578c86e18
-rw-r--r--test-runner/tests/Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-runner/tests/Android.bp b/test-runner/tests/Android.bp
index 03c73986118d..d74cee4937c9 100644
--- a/test-runner/tests/Android.bp
+++ b/test-runner/tests/Android.bp
@@ -25,7 +25,7 @@ android_test {
//
libs: [
- "android.test.runner",
+ "android.test.runner.impl",
"android.test.base",
"android.test.mock",
],