Nuke CTS Migration Library, extend CompatibilityBuildHelper
bug: 21762834 Test: cts-tradefed run cts -m CtsAppSecurityHostTestCases Change-Id: I72296ca84c76e4af2de0249e4cdb57fed3065e07
This commit is contained in:
@@ -23,8 +23,6 @@ LOCAL_MODULE := CtsHostsideNetworkTests
|
||||
|
||||
LOCAL_JAVA_LIBRARIES := cts-tradefed tradefed
|
||||
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := cts-migration-lib
|
||||
|
||||
LOCAL_CTS_TEST_PACKAGE := android.net.hostsidenetwork
|
||||
|
||||
# Tag this module as a cts test artifact
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.android.cts.net;
|
||||
|
||||
import com.android.cts.migration.MigrationHelper;
|
||||
import com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper;
|
||||
import com.android.ddmlib.Log;
|
||||
import com.android.ddmlib.testrunner.RemoteAndroidTestRunner;
|
||||
import com.android.ddmlib.testrunner.TestIdentifier;
|
||||
@@ -80,7 +80,8 @@ abstract class HostsideNetworkTestCase extends DeviceTestCase implements IAbiRec
|
||||
|
||||
protected void installPackage(String apk) throws FileNotFoundException,
|
||||
DeviceNotAvailableException {
|
||||
assertNull(getDevice().installPackage(MigrationHelper.getTestFile(mCtsBuild, apk), false));
|
||||
CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(mCtsBuild);
|
||||
assertNull(getDevice().installPackage(buildHelper.getTestFile(apk), false));
|
||||
}
|
||||
|
||||
protected void uninstallPackage(String packageName, boolean shouldSucceed)
|
||||
|
||||
Reference in New Issue
Block a user