From ea4dced0bcbd1c7c3d4f2472362408c887c734f9 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 1 Jun 2020 14:56:39 +0900 Subject: 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 --- test-runner/tests/Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-runner') 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", ], -- cgit v1.2.3