From 65bab93fcc9e7b57bb1e33f3c34a585edda3a991 Mon Sep 17 00:00:00 2001 From: Benjamin Gordon Date: Fri, 10 Apr 2020 10:14:49 -0600 Subject: [PATCH] Make internal printing tests compatible with helpers WorkflowTest and IPrintManagerParametersTest extend BasePrintTest from CtsPrintTestCases, which means they now try to load a helper when BasePrintTest.setUp() runs. Add the helper installer target preparer and package to their build files so that these can be found as expected. With UiDevice being removed from BasePrintTest, also move getUiDevice() over into the internal tests directly so that they can continue using it. Bug: 153727434 Test: atest PrintSpoolerOutOfProcessTests android.test.IPrintManagerParametersTest Change-Id: I7ff580c4288c83a69e319ff3668dcb98b11e4f41 --- core/tests/coretests/Android.bp | 1 + core/tests/coretests/AndroidTest.xml | 3 +++ .../src/android/print/IPrintManagerParametersTest.java | 5 +++++ packages/PrintSpooler/tests/outofprocess/Android.bp | 1 + packages/PrintSpooler/tests/outofprocess/AndroidTest.xml | 2 ++ .../printspooler/outofprocess/tests/WorkflowTest.java | 5 +++++ 6 files changed, 17 insertions(+) diff --git a/core/tests/coretests/Android.bp b/core/tests/coretests/Android.bp index 8d51a60000863..1e16ee052899c 100644 --- a/core/tests/coretests/Android.bp +++ b/core/tests/coretests/Android.bp @@ -72,6 +72,7 @@ android_test { ":BinderDeathRecipientHelperApp1", ":BinderDeathRecipientHelperApp2", ], + required: ["com.android.cts.helpers.aosp"], } // Rules to copy all the test apks to the intermediate raw resource directory diff --git a/core/tests/coretests/AndroidTest.xml b/core/tests/coretests/AndroidTest.xml index ed9d3f54ef3d1..04952bdfa3898 100644 --- a/core/tests/coretests/AndroidTest.xml +++ b/core/tests/coretests/AndroidTest.xml @@ -24,6 +24,9 @@