Merge "Migrate remaining cts to androidx.test."
This commit is contained in:
@@ -21,7 +21,7 @@ include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
#LOCAL_SDK_VERSION := current
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util ctstestrunner ub-uiautomator \
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt ctstestrunner-axt ub-uiautomator \
|
||||
CtsHostsideNetworkTestsAidl
|
||||
|
||||
LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</application>
|
||||
|
||||
<instrumentation
|
||||
android:name="android.support.test.runner.AndroidJUnitRunner"
|
||||
android:name="androidx.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.cts.net.hostside" />
|
||||
|
||||
</manifest>
|
||||
|
||||
@@ -128,7 +128,7 @@ abstract class HostsideNetworkTestCase extends DeviceTestCase implements IAbiRec
|
||||
protected void runDeviceTests(String packageName, String testClassName, String methodName)
|
||||
throws DeviceNotAvailableException {
|
||||
RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(packageName,
|
||||
"android.support.test.runner.AndroidJUnitRunner", getDevice().getIDevice());
|
||||
"androidx.test.runner.AndroidJUnitRunner", getDevice().getIDevice());
|
||||
|
||||
if (testClassName != null) {
|
||||
if (methodName != null) {
|
||||
|
||||
Reference in New Issue
Block a user