/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/ |
D | VtsDevicePreparerTest.java | 43 VtsDevicePreparer mPreparer; field in VtsDevicePreparerTest 50 mPreparer = new VtsDevicePreparer(); in setUp() 51 mPreparer.mDevice = mockDevice; in setUp() 62 mPreparer.adbUnroot(); in test_adbUnroot_notAlreadyRoot() 74 mPreparer.adbUnroot(); in test_adbUnroot_alreadyRoot() 86 mPreparer.adbRoot(); in test_adbRoot_notAlreadyRoot() 98 mPreparer.adbRoot(); in test_adbRoot_alreadyRoot() 114 mPreparer.startFramework(); in test_startFramework() 128 mPreparer.stopFramework(); in test_stopFramework() 142 mPreparer.startNativeServers(); in test_startNativeServers() [all …]
|
D | VtsPythonVirtualenvPreparerTest.java | 48 private VtsPythonVirtualenvPreparer mPreparer; field in VtsPythonVirtualenvPreparerTest 56 mPreparer = new VtsPythonVirtualenvPreparer() { in setUp() 62 mPreparer.mVenvDir = new File(""); in setUp() 63 mPreparer.mDepModules.add("enum"); in setUp() 73 mPreparer.setRequirementsFile(requirementFile); in testInstallDeps_reqFile_success() 78 expect(mMockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in testInstallDeps_reqFile_success() 85 mPreparer.installDeps(); in testInstallDeps_reqFile_success() 97 mPreparer.addDepModule("blahblah"); in testInstallDeps_depModule_success() 103 expect(mMockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in testInstallDeps_depModule_success() 108 mPreparer.installDeps(); in testInstallDeps_depModule_success() [all …]
|
D | VtsCoveragePreparerTest.java | 89 @InjectMocks private TestCoveragePreparer mPreparer = new TestCoveragePreparer(); field in VtsCoveragePreparerTest 124 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpCoverageDisabled() 134 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpSancovEnabled() 146 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpGcovEnabled() 154 OptionSetter setter = new OptionSetter(mPreparer); in testOnSetUpLocalArtifectsNormal() 161 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpLocalArtifectsNormal() 169 OptionSetter setter = new OptionSetter(mPreparer); in testOnSetUpLocalArtifectsNotExists() 175 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpLocalArtifectsNotExists() 189 OptionSetter setter = new OptionSetter(mPreparer); in testOnSetUpOutputCoverageReport() 196 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpOutputCoverageReport() [all …]
|
D | VtsHalAdapterPreparerTest.java | 107 @InjectMocks private TestPreparer mPreparer = new TestPreparer(); field in VtsHalAdapterPreparerTest 121 mPreparer.setCmdUtil(mCmdUtil); in setUp() 122 OptionSetter setter = new OptionSetter(mPreparer); in setUp() 140 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpAdapterSingleInstance() 158 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpAdapterMultipleInstance() 178 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetupAdapterNotFound() 191 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetupServiceNotAvailable() 202 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpAdapterFailed() 213 mPreparer.setCmdUtil(mCmdUtil); in testOnTearDownRestoreFailed() 214 mPreparer.addCommand("one"); in testOnTearDownRestoreFailed() [all …]
|
D | VtsTraceCollectPreparerTest.java | 61 private VtsTraceCollectPreparer mPreparer; field in VtsTraceCollectPreparerTest 82 mPreparer = new VtsTraceCollectPreparer() { in setUp() 154 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testOnSetUp() 164 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testOnSetUpPushFileException() 183 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testOnTearDown() 184 mPreparer.tearDown(mMockDevice, mMockBuildInfo, null); in testOnTearDown()
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
D | DynamicConfigPusherTest.java | 57 private DynamicConfigPusher mPreparer; field in DynamicConfigPusherTest 68 mPreparer = new DynamicConfigPusher(); in setUp() 83 mPreparer = new DynamicConfigPusher(); in testGetSuiteName_fromTestSuiteInfo() 84 mPreparer.setInvocationContext(mModuleContext); in testGetSuiteName_fromTestSuiteInfo() 86 assertNotNull(mPreparer.getSuiteName()); in testGetSuiteName_fromTestSuiteInfo() 95 mPreparer = new DynamicConfigPusher(); in testGetSuiteName_fromTestSuiteTag() 99 mPreparer.setInvocationContext(mModuleContext); in testGetSuiteName_fromTestSuiteTag() 101 assertNotNull(mPreparer.getSuiteName()); in testGetSuiteName_fromTestSuiteTag() 110 OptionSetter setter = new OptionSetter(mPreparer); in testLocalRead_fromDynamicConfigName() 124 File res = mPreparer.getLocalConfigFile(mMockBuildHelper, mMockDevice); in testLocalRead_fromDynamicConfigName() [all …]
|
D | DeviceInteractionHelperInstallerTest.java | 50 private DeviceInteractionHelperInstaller mPreparer = null; field in DeviceInteractionHelperInstallerTest 61 mPreparer = in setUp() 68 mOptionSetter = new OptionSetter(mPreparer); in setUp() 122 mPreparer.setUp(testInfo); in testNoOptionsNoDeviceProperty() 142 mPreparer.setUp(testInfo); in testNoOptionsEmptyDeviceProperty() 172 mPreparer.setUp(testInfo); in testNoOptionsValidDeviceProperty() 196 mPreparer.setUp(testInfo); in testFallbackPackageOptionOverridesDefault() 228 mPreparer.setUp(testInfo); in testDevicePropertyOptionOverridesDefault() 251 mPreparer.setUp(testInfo); in testInvalidApkWontInstall() 280 mPreparer.setUp(testInfo); in testApkWithoutPackageWontInstall() [all …]
|
D | BusinessLogicPreparerTest.java | 57 private BusinessLogicPreparer mPreparer; field in BusinessLogicPreparerTest 135 mPreparer = new BusinessLogicPreparer() { in setUp() 142 OptionSetter setter = new OptionSetter(mPreparer); in setUp() 225 String[] params = mPreparer.buildRequestParams(mMockDevice, mMockBuildInfo).split("&"); in testBuildRequestString()
|
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/ |
D | AppSetupPreparerTest.java | 53 private final AppSetupPreparer mPreparer = field in AppSetupPreparerTest 61 assertThrows(NullPointerException.class, () -> mPreparer.setUp(NULL_DEVICE, mBuildInfo)); in setUp_gcsApkDirIsNull_throwsException() 71 IllegalArgumentException.class, () -> mPreparer.setUp(NULL_DEVICE, mBuildInfo)); in setUp_gcsApkDirIsNotDir_throwsException() 81 IllegalArgumentException.class, () -> mPreparer.setUp(NULL_DEVICE, mBuildInfo)); in setUp_packageDirDoesNotExist_throwsError() 90 assertThrows(TargetSetupError.class, () -> mPreparer.setUp(NULL_DEVICE, mBuildInfo)); in setUp_apkDoesNotExist() 101 mPreparer.setUp(NULL_DEVICE, mBuildInfo); in setUp_installSplitApk() 115 mPreparer.setUp(NULL_DEVICE, mBuildInfo); in setUp_installNonSplitApk() 126 mPreparer.tearDown(testInfo, null); in tearDown()
|