/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DeviceSetupTest.java | 48 private IDeviceBuildInfo mMockBuildInfo; field in DeviceSetupTest 64 mMockBuildInfo = new DeviceBuildInfo("0", ""); in setUp() 87 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup() 111 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_airplane_mode_on() 125 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_airplane_mode_off() 138 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_data_on() 151 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_data_off() 163 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_cell_on() 175 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_cell_off() 187 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_cell_auto_setting_on() [all …]
|
D | InstallAllTestZipAppsSetupTest.java | 46 private IBuildInfo mMockBuildInfo; field in InstallAllTestZipAppsSetupTest 75 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp() 104 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(file); in testGetZipFile() 105 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testGetZipFile() 106 File ret = mPrep.getZipFile(mMockTestDevice, mMockBuildInfo); in testGetZipFile() 108 EasyMock.verify(mMockBuildInfo); in testGetZipFile() 115 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(null); in testGetZipFileDoesntExist() 116 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testGetZipFileDoesntExist() 117 File ret = mPrep.getZipFile(mMockTestDevice, mMockBuildInfo); in testGetZipFileDoesntExist() 119 EasyMock.verify(mMockBuildInfo); in testGetZipFileDoesntExist() [all …]
|
D | TestAppInstallSetupTest.java | 52 private IDeviceBuildInfo mMockBuildInfo; field in TestAppInstallSetupTest 97 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp() 117 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown() 118 mPrep.setUp(mMockTestDevice, mMockBuildInfo); in testSetupAndTeardown() 119 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown() 144 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown_install_package_only() 145 mPrep.setUp(mMockTestDevice, mMockBuildInfo); in testSetupAndTeardown_install_package_only() 146 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown_install_package_only() 173 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown_install_packages_only() 174 mPrep.setUp(mMockTestDevice, mMockBuildInfo); in testSetupAndTeardown_install_packages_only() [all …]
|
D | DisableSELinuxTargetPreparerTest.java | 35 private IBuildInfo mMockBuildInfo; field in DisableSELinuxTargetPreparerTest 45 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 54 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_permissive() 56 mDisableSELinuxTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUpSuccess_permissive() 57 mDisableSELinuxTargetPreparer.tearDown(mMockDevice, mMockBuildInfo, null); in testSetUpSuccess_permissive() 58 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_permissive() 74 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_enforced_rootBefore() 76 mDisableSELinuxTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUpSuccess_enforced_rootBefore() 77 mDisableSELinuxTargetPreparer.tearDown(mMockDevice, mMockBuildInfo, null); in testSetUpSuccess_enforced_rootBefore() 78 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_enforced_rootBefore() [all …]
|
D | RunCommandTargetPreparerTest.java | 53 private IBuildInfo mMockBuildInfo = null; field in RunCommandTargetPreparerTest 59 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 75 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUp() 76 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp() 77 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUp() 100 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUp_withTimeout() 101 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_withTimeout() 102 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUp_withTimeout() 116 EasyMock.replay(mMockDevice, mMockBuildInfo); in testDisabled() 117 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testDisabled() [all …]
|
D | InstallApexModuleTargetPreparerTest.java | 53 private IBuildInfo mMockBuildInfo; field in InstallApexModuleTargetPreparerTest 84 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 191 EasyMock.replay(mMockBuildInfo, mMockDevice); in testSetupSuccess_removeExistingStagedApexSuccess() 192 mInstallApexModuleTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetupSuccess_removeExistingStagedApexSuccess() 193 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetupSuccess_removeExistingStagedApexSuccess() 208 EasyMock.replay(mMockBuildInfo, mMockDevice); in testSetupSuccess_noDataUnderApexDataDirs() 209 mInstallApexModuleTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetupSuccess_noDataUnderApexDataDirs() 210 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetupSuccess_noDataUnderApexDataDirs() 234 EasyMock.replay(mMockBuildInfo, mMockDevice); in testSetupSuccess_getActivatedPackageSuccess() 235 mInstallApexModuleTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetupSuccess_getActivatedPackageSuccess() [all …]
|
D | AppSetupTest.java | 56 private IAppBuildInfo mMockBuildInfo; field in AppSetupTest 65 mMockBuildInfo = EasyMock.createMock(IAppBuildInfo.class); in setUp() 70 EasyMock.replay(mMockDevice, mMockBuildInfo); in replayMocks() 74 EasyMock.verify(mMockDevice, mMockBuildInfo); in verifyMocks() 103 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); in testSetup_failToInstall() 107 mAppSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_failToInstall() 128 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); in testSetup_aaptCannotParse() 132 mAppSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_aaptCannotParse() 159 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); in testSetup_noPackageName() 164 mAppSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_noPackageName() [all …]
|
D | AllTestAppsInstallSetupTest.java | 22 private IDeviceBuildInfo mMockBuildInfo; field in AllTestAppsInstallSetupTest 32 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp() 53 EasyMock.expect(mMockBuildInfo.getTestsDir()).andStubReturn(new File("")); in testNoTestDir() 54 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testNoTestDir() 56 mPrep.setUp(mMockTestDevice, mMockBuildInfo); in testNoTestDir() 62 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testNoTestDir() 67 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testNullTestDir() 74 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testNullTestDir() 86 EasyMock.expect(mMockBuildInfo.getTestsDir()).andReturn(testDir); in testSetup() 89 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetup() [all …]
|
D | RootTargetPreparerTest.java | 33 private IBuildInfo mMockBuildInfo; field in RootTargetPreparerTest 39 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 45 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_rootBefore() 47 mRootTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUpSuccess_rootBefore() 48 mRootTargetPreparer.tearDown(mMockDevice, mMockBuildInfo, null); in testSetUpSuccess_rootBefore() 49 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_rootBefore() 57 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_notRootBefore() 59 mRootTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUpSuccess_notRootBefore() 60 mRootTargetPreparer.tearDown(mMockDevice, mMockBuildInfo, null); in testSetUpSuccess_notRootBefore() 61 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_notRootBefore() [all …]
|
D | InstallApkSetupTest.java | 44 private IDeviceBuildInfo mMockBuildInfo; field in InstallApkSetupTest 54 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp() 79 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetup() 80 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); in testSetup() 81 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetup() 92 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testNonExistingApk() 94 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); in testNonExistingApk() 100 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testNonExistingApk() 116 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testInstallFailureNoThrow() 117 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); in testInstallFailureNoThrow() [all …]
|
D | RestartSystemServerTargetPreparerTest.java | 35 private IBuildInfo mMockBuildInfo; field in RestartSystemServerTargetPreparerTest 40 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 56 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUp_bootComplete() 58 mRestartSystemServerTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_bootComplete() 59 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUp_bootComplete() 74 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUp_bootNotComplete() 76 mRestartSystemServerTargetPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_bootNotComplete() 95 EasyMock.replay(mMockDevice, mMockBuildInfo); in testTearDown_restart() 97 mRestartSystemServerTargetPreparer.tearDown(mMockDevice, mMockBuildInfo, null); in testTearDown_restart() 98 EasyMock.verify(mMockDevice, mMockBuildInfo); in testTearDown_restart() [all …]
|
D | DeviceStringPusherTest.java | 36 private IBuildInfo mMockBuildInfo; field in DeviceStringPusherTest 42 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 53 EasyMock.replay(mMockDevice, mMockBuildInfo); in testFail() 55 mDeviceStringPusher.setUp(mMockDevice, mMockBuildInfo); in testFail() 66 EasyMock.replay(mMockDevice, mMockBuildInfo); in testDoesntExist() 68 mDeviceStringPusher.setUp(mMockDevice, mMockBuildInfo); in testDoesntExist() 69 mDeviceStringPusher.tearDown(mMockDevice, mMockBuildInfo, null); in testDoesntExist() 70 EasyMock.verify(mMockBuildInfo, mMockDevice); in testDoesntExist() 83 EasyMock.replay(mMockDevice, mMockBuildInfo); in testAlreadyExists() 85 mDeviceStringPusher.setUp(mMockDevice, mMockBuildInfo); in testAlreadyExists() [all …]
|
D | DeviceStorageFillerTest.java | 34 private IBuildInfo mMockBuildInfo; field in DeviceStorageFillerTest 40 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 54 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpWriteFile() 56 mDeviceStorageFiller.setUp(mMockDevice, mMockBuildInfo); in testSetUpWriteFile() 57 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetUpWriteFile() 67 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSkip() 69 mDeviceStorageFiller.setUp(mMockDevice, mMockBuildInfo); in testSetUpSkip() 70 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetUpSkip() 80 EasyMock.replay(mMockDevice, mMockBuildInfo); in testTearDown() 82 mDeviceStorageFiller.tearDown(mMockDevice, mMockBuildInfo, null); in testTearDown() [all …]
|
D | DeviceFlashPreparerTest.java | 57 private IDeviceBuildInfo mMockBuildInfo; field in DeviceFlashPreparerTest 69 mMockBuildInfo = new DeviceBuildInfo("0", ""); in setUp() 70 mMockBuildInfo.setDeviceImageFile(new File("foo"), "0"); in setUp() 71 mMockBuildInfo.setBuildFlavor("flavor"); in setUp() 122 mDeviceFlashPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetup() 135 mMockFlasher.flash(mMockDevice, mMockBuildInfo); in doSetupExpectations() 140 EasyMock.expect(mMockDevice.getBuildId()).andReturn(mMockBuildInfo.getBuildId()); in doSetupExpectations() 141 EasyMock.expect(mMockDevice.getBuildFlavor()).andReturn(mMockBuildInfo.getBuildFlavor()); in doSetupExpectations() 171 mMockFlasher.flash(mMockDevice, mMockBuildInfo); in testSetup_buildError() 176 EasyMock.expect(mMockDevice.getBuildId()).andReturn(mMockBuildInfo.getBuildId()); in testSetup_buildError() [all …]
|
D | PreloadedClassesPreparerTest.java | 45 private IBuildInfo mMockBuildInfo; field in PreloadedClassesPreparerTest 56 mMockBuildInfo = Mockito.mock(IBuildInfo.class); in setUp() 73 when(mMockBuildInfo.getFile(PRELOAD_TOOL_NAME)).thenReturn(tool); in testSetUp_RemoteSuccess() 82 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_RemoteSuccess() 90 when(mMockBuildInfo.getFile(PRELOAD_TOOL_NAME)).thenReturn(null); in testSetUp_RemoteNoTool() 92 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_RemoteNoTool() 110 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_LocalSuccess() 116 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_NoFile() 131 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); in testSetUp_WriteFailure()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | GceManagerTest.java | 62 private IBuildInfo mMockBuildInfo; field in GceManagerTest 70 mMockBuildInfo = new BuildInfo(); in setUp() 79 new GceManager(mMockDeviceDesc, mOptions, mMockBuildInfo, null) { in setUp() 159 IBuildInfo mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in testBuildGceCommand() local 160 EasyMock.expect(mMockBuildInfo.getBuildAttributes()) in testBuildGceCommand() 162 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn("FLAVOR"); in testBuildGceCommand() 163 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn("BRANCH"); in testBuildGceCommand() 164 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("BUILDID"); in testBuildGceCommand() 165 EasyMock.replay(mMockBuildInfo); in testBuildGceCommand() 169 List<String> result = mGceManager.buildGceCmd(reportFile, mMockBuildInfo); in testBuildGceCommand() [all …]
|
D | RemoteAndroidVirtualDeviceTest.java | 80 private IBuildInfo mMockBuildInfo; field in RemoteAndroidVirtualDeviceTest 134 mMockBuildInfo = new BuildInfo(); in setUp() 167 mMockBuildInfo, in testExceptionFromParser() 181 mTestDevice.launchGce(mMockBuildInfo); in testExceptionFromParser() 243 IBuildInfo mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in testPreInvocationSetup() local 274 replayMocks(mMockBuildInfo); in testPreInvocationSetup() 275 testDevice.preInvocationSetup(mMockBuildInfo); in testPreInvocationSetup() 276 verifyMocks(mMockBuildInfo); in testPreInvocationSetup() 278 Mockito.verify(mGceHandler).logStableHostImageInfos(mMockBuildInfo); in testPreInvocationSetup() 287 IBuildInfo mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in testPreInvocationSetup_fails() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ModuleDefinitionTest.java | 97 private IBuildInfo mMockBuildInfo; field in ModuleDefinitionTest 283 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 295 .addDeviceBuildInfo(DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp() 334 mModule.setBuild(mMockBuildInfo); in testRun() 337 mMockPrep.setUp(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); in testRun() 339 mMockCleaner.setUp(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); in testRun() 340 mMockTest.setBuild(EasyMock.eq(mMockBuildInfo)); in testRun() 344 mMockCleaner.tearDown(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo), in testRun() 361 mModule.setBuild(mMockBuildInfo); in testRun_tearDownException() 364 mMockPrep.setUp(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); in testRun_tearDownException() [all …]
|
D | ITestSuiteIntegrationTest.java | 99 private IBuildInfo mMockBuildInfo; field in ITestSuiteIntegrationTest 152 mMockBuildInfo = mock(IBuildInfo.class); in setUp() 156 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp() 224 suite.setBuild(mMockBuildInfo); in testSimplePassRun() 264 suite.setBuild(mMockBuildInfo); in testSimplePassRun_withLoggedFile() 320 suite.setBuild(mMockBuildInfo); in testSimpleRun_withFail() 348 suite.setBuild(mMockBuildInfo); in testRun_incomplete() 375 suite.setBuild(mMockBuildInfo); in testRun_DeviceNotAvailable() 501 mMockBuildInfo = new BuildInfo("9999", "test-target"); in testRun_sharding_firstModuleRunsAll() 504 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_firstModuleRunsAll() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationTest.java | 146 private IBuildInfo mMockBuildInfo; field in TestInvocationTest 174 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 221 EasyMock.expect(mMockBuildInfo.getBuildId()).andStubReturn("1"); in setUp() 222 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(EMPTY_MAP); in setUp() 223 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andStubReturn("branch"); in setUp() 224 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andStubReturn("flavor"); in setUp() 225 EasyMock.expect(mMockBuildInfo.getProperties()).andStubReturn(new HashSet<>()); in setUp() 226 EasyMock.expect(mMockBuildInfo.isTestResourceBuild()).andStubReturn(false); in setUp() 227 mMockBuildInfo.setTestResourceBuild(EasyMock.anyBoolean()); in setUp() 241 mMockBuildInfo); in setUp() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | TfTestLauncherTest.java | 62 private IFolderBuildInfo mMockBuildInfo; field in TfTestLauncherTest 69 mMockBuildInfo = EasyMock.createMock(IFolderBuildInfo.class); in setUp() 74 mTfTestLauncher.setBuild(mMockBuildInfo); in setUp() 125 EasyMock.expect(mMockBuildInfo.getTestTag()).andReturn(TEST_TAG); in testRun() 126 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(3); in testRun() 127 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn(BUILD_FLAVOR).times(2); in testRun() 129 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File("")); in testRun() 130 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn(BUILD_ID).times(3); in testRun() 131 mMockBuildInfo.addBuildAttribute(SubprocessTfLauncher.PARENT_PROC_TAG_NAME, "true"); in testRun() 153 EasyMock.replay(mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun() [all …]
|
D | VersionedTfLauncherTest.java | 77 private IFolderBuildInfo mMockBuildInfo; field in VersionedTfLauncherTest 84 mMockBuildInfo = EasyMock.createMock(IFolderBuildInfo.class); in setUp() 90 mVersionedTfLauncher.setBuild(mMockBuildInfo); in setUp() 151 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File("")); in testRun_singleDevice() 152 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); in testRun_singleDevice() 153 EasyMock.expect(mMockBuildInfo.getFile("general-tests.zip")) in testRun_singleDevice() 155 mMockBuildInfo.addBuildAttribute(SubprocessTfLauncher.PARENT_PROC_TAG_NAME, "true"); in testRun_singleDevice() 168 EasyMock.replay(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_singleDevice() 170 EasyMock.verify(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); in testRun_singleDevice() 215 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File("")); in testRun_nullDevice() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 49 private IBuildInfo mMockBuildInfo; field in SuiteApkInstallerTest 55 mMockBuildInfo = Mockito.mock(IBuildInfo.class); in setUp() 72 doReturn(new HashMap<String, String>()).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_noVar_noRootDir() 74 mPreparer.getRootDir(mMockBuildInfo); in testGetTestsDir_noVar_noRootDir() 98 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_noVar() 99 File res = mPreparer.getRootDir(mMockBuildInfo); in testGetTestsDir_noVar() 124 mPreparer.getLocalPathForFilename(mMockBuildInfo, apk.getName(), mMockDevice); in testGetLocalPathForFilename_withVariable() 125 verify(mMockBuildInfo, times(0)).getBuildAttributes(); in testGetLocalPathForFilename_withVariable() 153 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); in testGetTestsDir_notDir() 156 mMockBuildInfo, apkFile.getName(), mMockDevice); in testGetTestsDir_notDir() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 46 private IBuildInfo mMockBuildInfo; field in PythonBinaryHostTestTest 55 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 70 EasyMock.expect(mMockBuildInfo.getFile(AdbStopServerPreparer.ADB_BINARY_KEY)) in setUp() 72 mTest.setBuild(mMockBuildInfo); in setUp() 107 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun() 109 EasyMock.verify(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun() 121 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in testRun_withAdbPath() 122 EasyMock.expect(mMockBuildInfo.getFile(AdbStopServerPreparer.ADB_BINARY_KEY)) in testRun_withAdbPath() 124 mTest.setBuild(mMockBuildInfo); in testRun_withAdbPath() 147 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_withAdbPath() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BundletoolUtilTest.java | 40 private IBuildInfo mMockBuildInfo; field in BundletoolUtilTest 48 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 121 EasyMock.replay(mMockDevice, mMockBuildInfo); in testextractSplitsFromApks() 124 fakeApks, "/tmp/serial.json", mMockDevice, mMockBuildInfo); in testextractSplitsFromApks() 126 EasyMock.verify(mMockDevice, mMockBuildInfo); in testextractSplitsFromApks() 153 EasyMock.replay(mMockBuildInfo, mMockDevice); in test_extractSplitsFromApksFail() 156 fakeApks, "/tmp/serial.json", mMockDevice, mMockBuildInfo); in test_extractSplitsFromApksFail() 158 EasyMock.verify(mMockBuildInfo, mMockDevice); in test_extractSplitsFromApksFail()
|