/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | PushFilePreparerTest.java | 54 private PushFilePreparer mPreparer = null; field in PushFilePreparerTest 64 mPreparer = new PushFilePreparer(); in setUp() 65 mOptionSetter = new OptionSetter(mPreparer); in setUp() 75 mPreparer.setUp(mTestInfo); in testNoop() 87 mPreparer.setUp(mTestInfo); in testLocalNoExist() 107 mPreparer.setUp(mTestInfo); in testRemoteNoExist() 135 mPreparer.setUp(mTestInfo); in testPushFile_RemoteIsDir() 166 mPreparer.setUp(mTestInfo); in testPushFile_duplicateKey() 194 mPreparer.setUp(mTestInfo); in testPushDir_RemoteIsDir() 216 mPreparer.setUp(mTestInfo); in testPushDir_RemoteIsFile() [all …]
|
D | AoaTargetPreparerTest.java | 55 @Spy private AoaTargetPreparer mPreparer; field in AoaTargetPreparerTest 68 doReturn(mUsb).when(mPreparer).getUsbHelper(); in setUp() 69 mOptionSetter = new OptionSetter(mPreparer); in setUp() 84 mPreparer.setUp(mTestInfo); in testSetUp() 87 verify(mPreparer).execute(eq(mDevice), eq("wake")); in testSetUp() 93 mPreparer.setUp(mTestInfo); in testSetUp_noActions() 96 verify(mPreparer, never()).execute(eq(mDevice), any()); in testSetUp_noActions() 104 mPreparer.setUp(mTestInfo); in testSetUp_noDevice() 112 mPreparer.setUp(mTestInfo); in testSetUp_skipDeviceCheck() 114 verify(mPreparer).execute(eq(mDevice), eq("wake")); in testSetUp_skipDeviceCheck() [all …]
|
D | GkiDeviceFlashPreparerTest.java | 56 private GkiDeviceFlashPreparer mPreparer; field in GkiDeviceFlashPreparerTest 85 mPreparer = in setUp() 98 mOptionSetter = new OptionSetter(mPreparer); in setUp() 135 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoBuildInfoFiles() 150 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoRamdiskRecoveryImg() 167 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoOtatoolsZip() 189 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip() 231 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_FailToGenerateBootImg() 244 mPreparer.setUp(mTestInfo); in testSetUp_NoGkiBootImg() 266 mPreparer.setUp(mTestInfo); in testSetUp_NoMkbootimgInOtatoolsZip() [all …]
|
D | RunHostCommandTargetPreparerTest.java | 57 private RunHostCommandTargetPreparer mPreparer; field in RunHostCommandTargetPreparerTest 63 mPreparer = in setUp() 82 OptionSetter optionSetter = new OptionSetter(mPreparer); in testSetUp() 90 mPreparer.setUp(mTestInfo); in testSetUp() 96 final OptionSetter optionSetter = new OptionSetter(mPreparer); in testSetUp_withWorkDir() 105 mPreparer.setUp(mTestInfo); in testSetUp_withWorkDir() 112 OptionSetter optionSetter = new OptionSetter(mPreparer); in testSetUp_withErrors() 119 mPreparer.setUp(mTestInfo); in testSetUp_withErrors() 124 OptionSetter optionSetter = new OptionSetter(mPreparer); in testTearDown() 132 mPreparer.tearDown(mTestInfo, null); in testTearDown() [all …]
|
D | RunCommandTargetPreparerTest.java | 49 private RunCommandTargetPreparer mPreparer = null; field in RunCommandTargetPreparerTest 56 mPreparer = new RunCommandTargetPreparer(); in setUp() 72 OptionSetter setter = new OptionSetter(mPreparer); in testSetUp() 79 mPreparer.setUp(mTestInfo); in testSetUp() 90 OptionSetter setter = new OptionSetter(mPreparer); in testSetUp_withTimeout() 104 mPreparer.setUp(mTestInfo); in testSetUp_withTimeout() 116 OptionSetter setter = new OptionSetter(mPreparer); in testDisabled() 120 assertTrue(mPreparer.isDisabled()); in testDisabled() 131 OptionSetter setter = new OptionSetter(mPreparer); in testTearDown() 136 mPreparer.tearDown(mTestInfo, null); in testTearDown() [all …]
|
D | PythonVirtualenvPreparerTest.java | 38 private PythonVirtualenvPreparer mPreparer; field in PythonVirtualenvPreparerTest 47 mPreparer = new PythonVirtualenvPreparer(); in setUp() 48 mPreparer.mRunUtil = mMockRunUtil; in setUp() 52 mPreparer.setRequirementsFile(new File("foobar")); in testInstallDeps_reqFile_success() 58 mPreparer.installDeps(buildInfo, mMockDevice); in testInstallDeps_reqFile_success() 63 mPreparer.addDepModule("blahblah"); in testInstallDeps_depModule_success() 69 mPreparer.installDeps(buildInfo, mMockDevice); in testInstallDeps_depModule_success() 74 mPreparer.setRequirementsFile(new File("foobar")); in testInstallDeps_reqFile_failure() 81 mPreparer.installDeps(buildInfo, mMockDevice); in testInstallDeps_reqFile_failure() 89 mPreparer.addDepModule("blahblah"); in testInstallDeps_depModule_failure() [all …]
|
D | StopServicesSetupTest.java | 34 private StopServicesSetup mPreparer = null; field in StopServicesSetupTest 45 mPreparer = new StopServicesSetup(); in setUp() 58 mPreparer.setUp(mTestInfo); in testNoop() 66 mPreparer.setStopFramework(false); in testNoStopFramework() 69 mPreparer.setUp(mTestInfo); in testNoStopFramework() 77 mPreparer.addService("service1"); in testStopServices() 78 mPreparer.addService("service2"); in testStopServices() 85 mPreparer.setUp(mTestInfo); in testStopServices() 91 mPreparer.addService("service1"); in testTearDown() 92 mPreparer.addService("service2"); in testTearDown() [all …]
|
D | GsiDeviceFlashPreparerTest.java | 56 private GsiDeviceFlashPreparer mPreparer; field in GsiDeviceFlashPreparerTest 85 mPreparer = in setUp() 98 mOptionSetter = new OptionSetter(mPreparer); in setUp() 155 mPreparer.setUp(mTestInfo); in testSetUp_NoGsiImg() 173 mPreparer.setUp(mTestInfo); in testSetUp_NoSystemImageInGsiZip() 191 mPreparer.setUp(mTestInfo); in testSetUp_NoVbmetaImageInGsiZip() 238 mPreparer.setUp(mTestInfo); in testSetup_Success() 283 mPreparer.setUp(mTestInfo); in testSetup_Success_FromZipFile() 336 mPreparer.setUp(mTestInfo); in testSetup_Success_WithGkiBootImg() 391 mPreparer.setUp(mTestInfo); in testSetup_Success_WithGkiBootImgInZip() [all …]
|
D | RunHostScriptTargetPreparerTest.java | 67 private RunHostScriptTargetPreparer mPreparer; field in RunHostScriptTargetPreparerTest 75 mPreparer = in setUp() 87 mOptionSetter = new OptionSetter(mPreparer); in setUp() 114 mPreparer.setUp(mTestInfo); in testSetUp() 127 mPreparer.setUp(mTestInfo); in testSetUp_workingDir() 137 mPreparer.setUp(mTestInfo); in testSetUp_findFile() 144 mPreparer.setUp(mTestInfo); in testSetUp_fileNotFound() 152 mPreparer.setUp(mTestInfo); in testSetUp_executionError() 169 mPreparer.setUp(mTestInfo); in testSetUp_pathVariable()
|
D | CreateUserPreparerTest.java | 45 private CreateUserPreparer mPreparer; field in CreateUserPreparerTest 52 mPreparer = new CreateUserPreparer(); in setUp() 64 mPreparer.setUp(mTestInfo); in testSetUp_tearDown() 68 mPreparer.tearDown(mTestInfo, null); in testSetUp_tearDown() 156 mPreparer.setUp(mTestInfo); in testSetUp_tearDown_noCurrent() 162 mPreparer.tearDown(mTestInfo, null); in testSetUp_tearDown_noCurrent() 203 mPreparer.setUp(mTestInfo); in testSetUp_maxUsersReached() 220 mPreparer.setUp(mTestInfo); in testSetUp_failed() 229 mPreparer.tearDown(mTestInfo, null); in testTearDown_only()
|
D | PerfettoPreparerTest.java | 39 private PerfettoPreparer mPreparer = null; field in PerfettoPreparerTest 48 mPreparer = new PerfettoPreparer(); in setUp() 49 mOptionSetter = new OptionSetter(mPreparer); in setUp() 56 mPreparer.setUp(mMockDevice, null); in testNoop() 66 mPreparer.setUp(mMockDevice, null); in testLocalPerfettoBinaryNoExist() 87 mPreparer.setUp(mMockDevice, null); in testLocalPerfettoBinaryValid()
|
D | DynamicSystemPreparerTest.java | 53 private DynamicSystemPreparer mPreparer; field in DynamicSystemPreparerTest 62 mPreparer = new DynamicSystemPreparer(); in setUp() 119 mPreparer.setUp(mMockDevice, mBuildInfo); in testSetUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/ |
D | MergeMultiBuildTargetPreparerTest.java | 44 private MergeMultiBuildTargetPreparer mPreparer; field in MergeMultiBuildTargetPreparerTest 60 mPreparer = new MergeMultiBuildTargetPreparer(); in setUp() 66 OptionSetter setter = new OptionSetter(mPreparer); in testMergeFiles() 76 mPreparer.setUp(mContext); in testMergeFiles() 89 OptionSetter setter = new OptionSetter(mPreparer); in testMergeFiles_collision() 100 mPreparer.setUp(mContext); in testMergeFiles_collision() 109 OptionSetter setter = new OptionSetter(mPreparer); in testMergeFiles_keyNotFound() 114 mPreparer.setUp(mContext); in testMergeFiles_keyNotFound() 122 OptionSetter setter = new OptionSetter(mPreparer); in testReceiverNotFound() 127 mPreparer.setUp(mContext); in testReceiverNotFound() [all …]
|
D | MixImageZipPreparerTest.java | 98 private MixImageZipPreparer mPreparer; field in MixImageZipPreparerTest 141 mPreparer = null; in setUp() 154 mPreparer = in setUpPreparerAndSystem() 166 mPreparer.addSystemFileName(imageName); in setUpPreparerAndSystem() 168 mPreparer.addStubFileName(PRODUCT_IMAGE_NAME); in setUpPreparerAndSystem() 169 mPreparer.addStubFileName("missing_stub.img"); in setUpPreparerAndSystem() 250 mPreparer.addResourceFileName(VBMETA_IMAGE_NAME); in setUpResource() 357 mPreparer.setUp(testInformation); in runPreparerTest() 386 mPreparer.setCompressionLevel(0); in testSetUpWithResource()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 49 private SuiteApkInstaller mPreparer; field in SuiteApkInstallerTest 57 mPreparer = new SuiteApkInstaller(); in setUp() 83 File res = mPreparer.getLocalPathForFilename(mTestInfo, apk.getName()); in testGetLocalPathForFilename_withVariable() 101 File res = mPreparer.getLocalPathForFilename(mTestInfo, apkFile.getName()); in testGetTestsDir_notDir() 119 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName() 134 mPreparer.getLocalPathForFilename(mTestInfo, "no_exist"); in testGetLocalPathForFileName_noFound() 157 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName_testsDir() 171 File apk = mPreparer.getLocalPathForFilename(mTestInfo, "foo.apk"); in testGetLocalPathForFileName_inBuildKey() 197 File apk = mPreparer.getLocalPathForFilename(mTestInfo, "suite-apk-installer.apk"); in testGetLocalPathForFileName_remoteZip() 210 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName_inDependenciesDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparerTest.java | 46 private AdbStopServerPreparer mPreparer; field in AdbStopServerPreparerTest 62 mPreparer = in setUp() 115 mPreparer.setUp(mTestInfo); in testSetup_tearDown() 116 mPreparer.tearDown(mTestInfo, null); in testSetup_tearDown() 143 mPreparer.setUp(mTestInfo); in testSetup_fail_tearDown() 148 mPreparer.tearDown(mTestInfo, null); in testSetup_fail_tearDown() 174 mPreparer.setUp(mTestInfo); in testNoAdb() 212 mPreparer.setUp(mTestInfo); in testAdbFromEnv() 213 mPreparer.tearDown(mTestInfo, null); in testAdbFromEnv()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteMultiTest.java | 71 private ITargetPreparer mPreparer; field in ITestSuiteMultiTest.TestSuiteMultiDeviceImpl 77 mPreparer = targetPrep; in TestSuiteMultiDeviceImpl() 93 holder2.addSpecificConfig(mPreparer); in loadTests()
|
D | ITestSuiteTest.java | 137 private ITargetPreparer mPreparer; field in ITestSuiteTest.TestSuiteImpl 149 mPreparer = preparer; in TestSuiteImpl() 159 if (mPreparer != null) { in loadTests() 160 config.setTargetPreparer(mPreparer); in loadTests()
|