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