Merge "Make internal printing tests compatible with helpers" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5b3e4d946f
@@ -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
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
<option name="test-file-name" value="BinderDeathRecipientHelperApp1.apk" />
|
||||
<option name="test-file-name" value="BinderDeathRecipientHelperApp2.apk" />
|
||||
</target_preparer>
|
||||
|
||||
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.DeviceInteractionHelperInstaller" />
|
||||
|
||||
<option name="test-tag" value="FrameworksCoreTests" />
|
||||
<test class="com.android.tradefed.testtype.AndroidJUnitTest" >
|
||||
<option name="package" value="com.android.frameworks.coretests" />
|
||||
|
||||
@@ -41,6 +41,7 @@ import android.print.test.services.PrintServiceCallbacks;
|
||||
import android.print.test.services.PrinterDiscoverySessionCallbacks;
|
||||
import android.print.test.services.StubbablePrinterDiscoverySession;
|
||||
import android.printservice.recommendation.IRecommendationsChangeListener;
|
||||
import android.support.test.uiautomator.UiDevice;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.filters.MediumTest;
|
||||
@@ -71,6 +72,10 @@ public class IPrintManagerParametersTest extends BasePrintTest {
|
||||
|
||||
private IPrintManager mIPrintManager;
|
||||
|
||||
public static UiDevice getUiDevice() {
|
||||
return UiDevice.getInstance(getInstrumentation());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new IPrintManagerParametersTest and setup basic fields.
|
||||
*/
|
||||
|
||||
@@ -27,4 +27,5 @@ android_test {
|
||||
|
||||
sdk_version: "test_current",
|
||||
test_suites: ["device-tests"],
|
||||
required: ["com.android.cts.helpers.aosp"],
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
<option name="test-file-name" value="PrintSpoolerOutOfProcessTests.apk" />
|
||||
</target_preparer>
|
||||
|
||||
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.DeviceInteractionHelperInstaller" />
|
||||
|
||||
<option name="test-suite-tag" value="apct" />
|
||||
<option name="test-tag" value="PrintSpoolerOutOfProcessTests" />
|
||||
<option name="config-descriptor:metadata" key="component" value="print" />
|
||||
|
||||
@@ -36,6 +36,7 @@ import android.print.test.services.FirstPrintService;
|
||||
import android.print.test.services.PrinterDiscoverySessionCallbacks;
|
||||
import android.print.test.services.StubbablePrinterDiscoverySession;
|
||||
import android.support.test.uiautomator.By;
|
||||
import android.support.test.uiautomator.UiDevice;
|
||||
import android.support.test.uiautomator.UiObject;
|
||||
import android.support.test.uiautomator.UiObjectNotFoundException;
|
||||
import android.support.test.uiautomator.UiSelector;
|
||||
@@ -78,6 +79,10 @@ public class WorkflowTest extends BasePrintTest {
|
||||
void accept(T t) throws InterruptedException;
|
||||
}
|
||||
|
||||
public static UiDevice getUiDevice() {
|
||||
return UiDevice.getInstance(getInstrumentation());
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute {@code waiter} until {@code condition} is met.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user