Home
last modified time | relevance | path

Searched refs:mMockBuildInfo (Results 1 – 25 of 39) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java64 private IBuildInfo mMockBuildInfo; field in GceManagerTest
72 mMockBuildInfo = new BuildInfo(); in setUp()
81 new GceManager(mMockDeviceDesc, mOptions, mMockBuildInfo) { in setUp()
161 IBuildInfo mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in testBuildGceCommand() local
162 EasyMock.expect(mMockBuildInfo.getBuildAttributes()) in testBuildGceCommand()
164 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn("FLAVOR"); in testBuildGceCommand()
165 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn("BRANCH"); in testBuildGceCommand()
166 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("BUILDID"); in testBuildGceCommand()
167 EasyMock.replay(mMockBuildInfo); in testBuildGceCommand()
171 List<String> result = mGceManager.buildGceCmd(reportFile, mMockBuildInfo, null); in testBuildGceCommand()
[all …]
DRemoteAndroidVirtualDeviceTest.java82 private IBuildInfo mMockBuildInfo; field in RemoteAndroidVirtualDeviceTest
141 mMockBuildInfo = new BuildInfo(); in setUp()
177 getDeviceDescriptor(), new TestDeviceOptions(), mMockBuildInfo) { in testExceptionFromParser()
191 mTestDevice.launchGce(mMockBuildInfo); in testExceptionFromParser()
253 IBuildInfo mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in testPreInvocationSetup() local
284 replayMocks(mMockBuildInfo); in testPreInvocationSetup()
285 mTestDevice.preInvocationSetup(mMockBuildInfo); in testPreInvocationSetup()
286 verifyMocks(mMockBuildInfo); in testPreInvocationSetup()
288 Mockito.verify(mGceHandler).logStableHostImageInfos(mMockBuildInfo); in testPreInvocationSetup()
297 IBuildInfo mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in testPreInvocationSetup_fails() local
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetupTest.java46 private IBuildInfo mMockBuildInfo; field in InstallAllTestZipAppsSetupTest
75 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp()
105 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(file); in testGetZipFile()
106 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testGetZipFile()
107 File ret = mPrep.getZipFile(mMockTestDevice, mMockBuildInfo); in testGetZipFile()
109 EasyMock.verify(mMockBuildInfo); in testGetZipFile()
116 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(null); in testGetZipFileDoesntExist()
117 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testGetZipFileDoesntExist()
118 File ret = mPrep.getZipFile(mMockTestDevice, mMockBuildInfo); in testGetZipFileDoesntExist()
120 EasyMock.verify(mMockBuildInfo); in testGetZipFileDoesntExist()
[all …]
DTestAppInstallSetupTest.java73 private IDeviceBuildInfo mMockBuildInfo; field in TestAppInstallSetupTest
127 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp()
134 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
153 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown()
155 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown()
179 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown_install_package_only()
181 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown_install_package_only()
192 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown_install_packages_only()
194 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetupAndTeardown_install_packages_only()
211 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetup_instantMode()
[all …]
DInstallApexModuleTargetPreparerTest.java58 private IBuildInfo mMockBuildInfo; field in InstallApexModuleTargetPreparerTest
99 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
106 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
245 EasyMock.replay(mMockBuildInfo, mMockDevice); in testSetupSuccess_removeExistingStagedApexSuccess()
247 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetupSuccess_removeExistingStagedApexSuccess()
269 EasyMock.replay(mMockBuildInfo, mMockDevice); in testSetupSuccess_noDataUnderApexDataDirs()
271 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetupSuccess_noDataUnderApexDataDirs()
302 EasyMock.replay(mMockBuildInfo, mMockDevice); in testSetupSuccess_getActivatedPackageSuccess()
304 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetupSuccess_getActivatedPackageSuccess()
335 EasyMock.replay(mMockBuildInfo, mMockDevice); in testSetupSuccess_withAbsoluteTestFileName()
[all …]
DAppSetupTest.java56 private IBuildInfo mMockBuildInfo; field in AppSetupTest
67 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
82 EasyMock.replay(mMockDevice, mMockBuildInfo); in replayMocks()
86 EasyMock.verify(mMockDevice, mMockBuildInfo); in verifyMocks()
111 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); in testSetup_failToInstall()
115 mAppSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_failToInstall()
136 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); in testSetup_aaptCannotParse()
140 mAppSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_aaptCannotParse()
170 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); in testSetup_noPackageName()
175 mAppSetup.setUp(mMockDevice, mMockBuildInfo); in testSetup_noPackageName()
[all …]
DAllTestAppsInstallSetupTest.java22 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()
61 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testNoTestDir()
66 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testNullTestDir()
73 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testNullTestDir()
85 EasyMock.expect(mMockBuildInfo.getTestsDir()).andReturn(testDir); in testSetup()
88 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetup()
[all …]
DInstallApkSetupTest.java45 private IDeviceBuildInfo mMockBuildInfo; field in InstallApkSetupTest
55 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp()
81 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetup()
82 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); in testSetup()
83 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetup()
99 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testSetupForceQueryable()
100 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); in testSetupForceQueryable()
101 EasyMock.verify(mMockBuildInfo, mMockTestDevice); in testSetupForceQueryable()
112 EasyMock.replay(mMockBuildInfo, mMockTestDevice); in testNonExistingApk()
114 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); in testNonExistingApk()
[all …]
DRootTargetPreparerTest.java39 private IBuildInfo mMockBuildInfo; field in RootTargetPreparerTest
48 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
51 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
58 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_rootBefore()
62 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_rootBefore()
70 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_notRootBefore()
74 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_notRootBefore()
82 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpFail()
95 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_rootBefore_forceUnroot()
99 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_rootBefore_forceUnroot()
[all …]
DRestartSystemServerTargetPreparerTest.java35 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 …]
DRunCommandTargetPreparerTest.java51 private IBuildInfo mMockBuildInfo = null; field in RunCommandTargetPreparerTest
58 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
61 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
78 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUp()
80 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUp()
103 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUp_withTimeout()
105 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUp_withTimeout()
119 EasyMock.replay(mMockDevice, mMockBuildInfo); in testDisabled()
121 EasyMock.verify(mMockDevice, mMockBuildInfo); in testDisabled()
135 EasyMock.replay(mMockDevice, mMockBuildInfo); in testTearDown()
[all …]
DDisableSELinuxTargetPreparerTest.java38 private IBuildInfo mMockBuildInfo; field in DisableSELinuxTargetPreparerTest
49 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
52 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
62 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_permissive()
66 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_permissive()
82 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_enforced_rootBefore()
86 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_enforced_rootBefore()
105 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSuccess_enforced_notRootBefore()
109 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSetUpSuccess_enforced_notRootBefore()
121 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUp_rootFail()
[all …]
DDeviceFlashPreparerTest.java60 private IDeviceBuildInfo mMockBuildInfo; field in DeviceFlashPreparerTest
73 mMockBuildInfo = new DeviceBuildInfo("0", ""); in setUp()
74 mMockBuildInfo.setDeviceImageFile(new File("foo"), "0"); in setUp()
75 mMockBuildInfo.setBuildFlavor("flavor"); in setUp()
113 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
144 mMockFlasher.flash(mMockDevice, mMockBuildInfo); in doSetupExpectations()
149 EasyMock.expect(mMockDevice.getBuildId()).andReturn(mMockBuildInfo.getBuildId()); in doSetupExpectations()
150 EasyMock.expect(mMockDevice.getBuildFlavor()).andReturn(mMockBuildInfo.getBuildFlavor()); in doSetupExpectations()
199 mMockFlasher.flash(mMockDevice, mMockBuildInfo); in testSetup_buildError()
204 EasyMock.expect(mMockDevice.getBuildId()).andReturn(mMockBuildInfo.getBuildId()); in testSetup_buildError()
[all …]
DFastbootDeviceFlasherTest.java55 private IDeviceBuildInfo mMockBuildInfo; field in FastbootDeviceFlasherTest
68 mMockBuildInfo = new DeviceBuildInfo("0", TEST_STRING); in setUp()
69 mMockBuildInfo.setDeviceImageFile(new File(TEST_STRING), "0"); in setUp()
70 mMockBuildInfo.setUserDataImageFile(new File(TEST_STRING), "0"); in setUp()
103 mFlasher.flash(mMockDevice, mMockBuildInfo); in testFlash_deviceNotAvailable()
120 mFlasher.flash(mMockDevice, mMockBuildInfo); in testFlash_missingBoard()
253 … mockZipInstaller.pushTestsZipOntoData(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); in testFlashUserData_testsZip()
260 mFlasher.flashUserData(mMockDevice, mMockBuildInfo); in testFlashUserData_testsZip()
399 mFlasher.handleUserDataFlashing(mMockDevice, mMockBuildInfo); in doTestFlashWithWipe()
421 mFlasher.flashUserData(mMockDevice, mMockBuildInfo); in testFlashUserData_wipeRm()
[all …]
DDeviceStorageFillerTest.java37 private IBuildInfo mMockBuildInfo; field in DeviceStorageFillerTest
44 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
47 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
62 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpWriteFile()
65 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetUpWriteFile()
75 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSetUpSkip()
78 EasyMock.verify(mMockBuildInfo, mMockDevice); in testSetUpSkip()
88 EasyMock.replay(mMockDevice, mMockBuildInfo); in testTearDown()
91 EasyMock.verify(mMockBuildInfo, mMockDevice); in testTearDown()
DDeviceStringPusherTest.java39 private IBuildInfo mMockBuildInfo; field in DeviceStringPusherTest
46 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
49 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
61 EasyMock.replay(mMockDevice, mMockBuildInfo); in testFail()
74 EasyMock.replay(mMockDevice, mMockBuildInfo); in testDoesntExist()
78 EasyMock.verify(mMockBuildInfo, mMockDevice); in testDoesntExist()
91 EasyMock.replay(mMockDevice, mMockBuildInfo); in testAlreadyExists()
95 EasyMock.verify(mMockBuildInfo, mMockDevice); in testAlreadyExists()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java156 private IBuildInfo mMockBuildInfo; field in TestInvocationTest
200 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
254 EasyMock.expect(mMockBuildInfo.getBuildId()).andStubReturn("1"); in setUp()
255 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(EMPTY_MAP); in setUp()
256 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andStubReturn("branch"); in setUp()
257 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andStubReturn("flavor"); in setUp()
258 EasyMock.expect(mMockBuildInfo.getProperties()).andStubReturn(new HashSet<>()); in setUp()
275 mMockBuildInfo); in setUp()
409 new BuildRetrievalError("testInvoke_buildFailed", null, mMockBuildInfo); in testInvoke_buildFailed()
411 EasyMock.expect(mMockBuildInfo.getTestTag()).andStubReturn(null); in testInvoke_buildFailed()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DTfTestLauncherTest.java66 private IFolderBuildInfo mMockBuildInfo; field in TfTestLauncherTest
74 mMockBuildInfo = EasyMock.createMock(IFolderBuildInfo.class); in setUp()
79 mTfTestLauncher.setBuild(mMockBuildInfo); in setUp()
84 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
137 EasyMock.expect(mMockBuildInfo.getTestTag()).andReturn(TEST_TAG); in testRun()
138 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(3); in testRun()
139 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn(BUILD_FLAVOR).times(2); in testRun()
141 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File("")); in testRun()
142 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn(BUILD_ID).times(3); in testRun()
143 mMockBuildInfo.addBuildAttribute(SubprocessTfLauncher.PARENT_PROC_TAG_NAME, "true"); in testRun()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleDefinitionTest.java111 private IBuildInfo mMockBuildInfo; field in ModuleDefinitionTest
319 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
332 .addDeviceBuildInfo(DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp()
420 mModule.setBuild(mMockBuildInfo); in testRun()
424 mMockTest.setBuild(EasyMock.eq(mMockBuildInfo)); in testRun()
472 mModule.setBuild(mMockBuildInfo); in testRun_tearDownException()
476 mMockTest.setBuild(EasyMock.eq(mMockBuildInfo)); in testRun_tearDownException()
518 .addDeviceBuildInfo(DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_aggregateRunFailures()
523 mModule.setBuild(mMockBuildInfo); in testRun_aggregateRunFailures()
597 .addDeviceBuildInfo(DEFAULT_DEVICE_NAME, mMockBuildInfo); in testParseTokens()
[all …]
DITestSuiteIntegrationTest.java102 private IBuildInfo mMockBuildInfo; field in ITestSuiteIntegrationTest
165 mMockBuildInfo = mock(IBuildInfo.class); in setUp()
169 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp()
238 suite.setBuild(mMockBuildInfo); in testSimplePassRun()
278 suite.setBuild(mMockBuildInfo); in testSimplePassRun_withLoggedFile()
334 suite.setBuild(mMockBuildInfo); in testSimpleRun_withFail()
362 suite.setBuild(mMockBuildInfo); in testRun_incomplete()
389 suite.setBuild(mMockBuildInfo); in testRun_DeviceNotAvailable()
522 mMockBuildInfo = new BuildInfo("9999", "test-target"); in testRun_sharding_firstModuleRunsAll()
525 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_firstModuleRunsAll()
[all …]
DSuiteModuleLoaderTest.java99 private IBuildInfo mMockBuildInfo; field in SuiteModuleLoaderTest
113 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
114 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andStubReturn("branch"); in setUp()
115 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andStubReturn("flavor"); in setUp()
116 EasyMock.expect(mMockBuildInfo.getBuildId()).andStubReturn("id"); in setUp()
117 EasyMock.replay(mMockBuildInfo); in setUp()
118 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp()
778 EasyMock.verify(mMockBuildInfo); in testLoadParameterizedMainlineModules()
818 EasyMock.verify(mMockBuildInfo); in testLoadParameterizedMainlineModule_WithFilters()
852 EasyMock.verify(mMockBuildInfo); in testLoadParameterizedMainlineModule_WithModuleArgs()
[all …]
DITestSuiteTest.java119 private IBuildInfo mMockBuildInfo; field in ITestSuiteTest
302 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
303 EasyMock.expect(mMockBuildInfo.getRemoteFiles()).andReturn(null).once(); in setUp()
310 mTestSuite.setBuild(mMockBuildInfo); in setUp()
315 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp()
374 EasyMock.replay(mMockListener, mMockDevice, mMockBuildInfo, mMockSysChecker); in replayMocks()
381 EasyMock.verify(mMockListener, mMockDevice, mMockBuildInfo, mMockSysChecker); in verifyMocks()
677 mTestSuite.setBuild(mMockBuildInfo); in testRun_unresponsiveDevice()
736 mTestSuite.setBuild(mMockBuildInfo); in testRun_deviceUnavailable()
805 mTestSuite.setBuild(mMockBuildInfo); in testRun_runtimeException()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java70 private IBuildInfo mMockBuildInfo; field in PythonBinaryHostTestTest
81 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
98 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
146 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun()
148 EasyMock.verify(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun()
182 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_failWithIncludeFilters()
184 EasyMock.verify(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_failWithIncludeFilters()
244 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_withIncludeFilters()
246 EasyMock.verify(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_withIncludeFilters()
305 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_withExcludeFilters()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/params/
DMainlineModuleHandlerTest.java45 private IBuildInfo mMockBuildInfo; field in MainlineModuleHandlerTest
52 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
55 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andStubReturn("flavor"); in setUp()
56 EasyMock.expect(mMockBuildInfo.getBuildId()).andStubReturn("id"); in setUp()
57 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp()
63 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andStubReturn("branch"); in testApplySetup()
64 EasyMock.replay(mMockBuildInfo); in testApplySetup()
72 EasyMock.verify(mMockBuildInfo); in testApplySetup()
78 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andStubReturn("branch"); in testApplySetup_MultipleMainlineModules()
79 EasyMock.replay(mMockBuildInfo); in testApplySetup_MultipleMainlineModules()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DBundletoolUtilTest.java41 private IBuildInfo mMockBuildInfo; field in BundletoolUtilTest
49 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
132 EasyMock.replay(mMockDevice, mMockBuildInfo); in testextractSplitsFromApks()
135 fakeApks, "/tmp/serial.json", mMockDevice, mMockBuildInfo); in testextractSplitsFromApks()
137 EasyMock.verify(mMockDevice, mMockBuildInfo); in testextractSplitsFromApks()
164 EasyMock.replay(mMockBuildInfo, mMockDevice); in test_extractSplitsFromApksFail()
167 fakeApks, "/tmp/serial.json", mMockDevice, mMockBuildInfo); in test_extractSplitsFromApksFail()
169 EasyMock.verify(mMockBuildInfo, mMockDevice); in test_extractSplitsFromApksFail()

12