Home
last modified time | relevance | path

Searched refs:mMockRunUtil (Results 1 – 25 of 34) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java65 private IRunUtil mMockRunUtil; field in GceManagerTest
70 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
84 return mMockRunUtil; in setUp()
254 return mMockRunUtil; in testBuildGceCommandWithEmulatorBuild()
336 return mMockRunUtil; in testStartGce_timeout()
353 mMockRunUtil.runTimedCmd( in testStartGce_timeout()
359 EasyMock.replay(mMockRunUtil); in testStartGce_timeout()
367 EasyMock.verify(mMockRunUtil); in testStartGce_timeout()
423 return mMockRunUtil; in testStartGce()
457 mMockRunUtil.runTimedCmd( in testStartGce()
[all …]
DRemoteFileUtilTest.java44 private IRunUtil mMockRunUtil; field in RemoteFileUtilTest
48 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
59 mMockRunUtil.runTimedCmd( in testFetchRemoteFile()
73 EasyMock.replay(mMockRunUtil); in testFetchRemoteFile()
78 fakeInfo, mOptions, mMockRunUtil, 500L, remotePath); in testFetchRemoteFile()
84 EasyMock.verify(mMockRunUtil); in testFetchRemoteFile()
95 mMockRunUtil.runTimedCmd( in testFetchRemoteFile_fail()
109 EasyMock.replay(mMockRunUtil); in testFetchRemoteFile_fail()
111 RemoteFileUtil.fetchRemoteFile(fakeInfo, mOptions, mMockRunUtil, 500L, remotePath); in testFetchRemoteFile_fail()
113 EasyMock.verify(mMockRunUtil); in testFetchRemoteFile_fail()
[all …]
DRemoteAndroidVirtualDeviceTest.java74 private IRunUtil mMockRunUtil; field in RemoteAndroidVirtualDeviceTest
93 return mMockRunUtil; in getRunUtil()
132 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
162 return mMockRunUtil; in testExceptionFromParser()
189 EasyMock.replay(mMockRunUtil); in testExceptionFromParser()
196 EasyMock.verify(mMockRunUtil); in testExceptionFromParser()
206 EasyMock.replay(mMockRunUtil); in testWaitForTunnelOnline()
208 EasyMock.verify(mMockRunUtil); in testWaitForTunnelOnline()
217 mMockRunUtil.sleep(EasyMock.anyLong()); in testWaitForTunnelOnline_notOnline()
220 EasyMock.replay(mMockRunUtil); in testWaitForTunnelOnline_notOnline()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DGsiDeviceFlashPreparerTest.java64 private IRunUtil mMockRunUtil; field in GsiDeviceFlashPreparerTest
84 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
89 return mMockRunUtil; in setUp()
121 mMockRunUtil.sleep(EasyMock.anyLong()); in doSetupExpectations()
153 EasyMock.replay(mMockDevice, mMockRunUtil); in testSetUp_NoGsiImg()
160 EasyMock.verify(mMockDevice, mMockRunUtil); in testSetUp_NoGsiImg()
171 EasyMock.replay(mMockDevice, mMockRunUtil); in testSetUp_NoSystemImageInGsiZip()
178 EasyMock.verify(mMockDevice, mMockRunUtil); in testSetUp_NoSystemImageInGsiZip()
189 EasyMock.replay(mMockDevice, mMockRunUtil); in testSetUp_NoVbmetaImageInGsiZip()
196 EasyMock.verify(mMockDevice, mMockRunUtil); in testSetUp_NoVbmetaImageInGsiZip()
[all …]
DGkiDeviceFlashPreparerTest.java64 private IRunUtil mMockRunUtil; field in GkiDeviceFlashPreparerTest
84 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
89 return mMockRunUtil; in setUp()
121 mMockRunUtil.sleep(EasyMock.anyLong()); in doSetupExpectations()
133 EasyMock.replay(mMockDevice, mMockRunUtil); in testValidateGkiBootImg_NoBuildInfoFiles()
140 EasyMock.verify(mMockDevice, mMockRunUtil); in testValidateGkiBootImg_NoBuildInfoFiles()
148 EasyMock.replay(mMockDevice, mMockRunUtil); in testValidateGkiBootImg_NoRamdiskRecoveryImg()
155 EasyMock.verify(mMockDevice, mMockRunUtil); in testValidateGkiBootImg_NoRamdiskRecoveryImg()
165 EasyMock.replay(mMockDevice, mMockRunUtil); in testValidateGkiBootImg_NoOtatoolsZip()
172 EasyMock.verify(mMockDevice, mMockRunUtil); in testValidateGkiBootImg_NoOtatoolsZip()
[all …]
DFastbootDeviceFlasherTest.java58 private IRunUtil mMockRunUtil; field in FastbootDeviceFlasherTest
73 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
83 return mMockRunUtil; in setUp()
137 EasyMock.replay(mMockDevice, mMockRunUtil); in testGetImageVersion()
140 EasyMock.verify(mMockDevice, mMockRunUtil); in testGetImageVersion()
155 EasyMock.replay(mMockDevice, mMockRunUtil); in testGetCurrentSlot_fastboot()
158 EasyMock.verify(mMockDevice, mMockRunUtil); in testGetCurrentSlot_fastboot()
168 EasyMock.replay(mMockDevice, mMockRunUtil); in testGetCurrentSlot_adb()
171 EasyMock.verify(mMockDevice, mMockRunUtil); in testGetCurrentSlot_adb()
184 EasyMock.replay(mMockDevice, mMockRunUtil); in testGetCurrentSlot_null()
[all …]
DPythonVirtualenvPreparerTest.java39 private IRunUtil mMockRunUtil; field in PythonVirtualenvPreparerTest
44 mMockRunUtil = createNiceMock(IRunUtil.class); in setUp()
48 mPreparer.mRunUtil = mMockRunUtil; in setUp()
53 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_reqFile_success()
56 replay(mMockRunUtil); in testInstallDeps_reqFile_success()
64 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_depModule_success()
67 replay(mMockRunUtil); in testInstallDeps_depModule_success()
75 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_reqFile_failure()
78 replay(mMockRunUtil); in testInstallDeps_reqFile_failure()
90 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_depModule_failure()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DAtraceCollectorTest.java55 private IRunUtil mMockRunUtil; field in AtraceCollectorTest
69 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
391 mMockRunUtil.runTimedCmd( in testExecutesPostProcessPar()
405 EasyMock.replay(mMockTestLogger, mMockRunUtil, mMockDevice); in testExecutesPostProcessPar()
414 mAtrace.setRunUtil(mMockRunUtil); in testExecutesPostProcessPar()
418 EasyMock.verify(mMockTestLogger, mMockRunUtil); in testExecutesPostProcessPar()
433 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParDifferentFormat()
446 EasyMock.replay(mMockTestLogger, mMockRunUtil, mMockDevice); in testExecutesPostProcessParDifferentFormat()
453 mAtrace.setRunUtil(mMockRunUtil); in testExecutesPostProcessParDifferentFormat()
457 EasyMock.verify(mMockTestLogger, mMockRunUtil); in testExecutesPostProcessParDifferentFormat()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DTradefedSandboxTest.java61 private IRunUtil mMockRunUtil; field in TradefedSandboxTest
65 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
70 return mMockRunUtil; in setUp()
109 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testPrepareEnvironment()
111 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testPrepareEnvironment()
113 mMockRunUtil.setEnvVariable( in testPrepareEnvironment()
115 mMockRunUtil.setEnvVariablePriority(EnvPriority.SET); in testPrepareEnvironment()
123 mMockRunUtil.runTimedCmd( in testPrepareEnvironment()
137 EasyMock.replay(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment()
139 EasyMock.verify(mMockConfig, mMockListener, mMockRunUtil); in testPrepareEnvironment()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java69 private IRunUtil mMockRunUtil; field in PythonBinaryHostTestTest
80 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
88 return mMockRunUtil; in setUp()
101 mMockRunUtil.setEnvVariable(PythonBinaryHostTest.ANDROID_SERIAL_VAR, "SERIAL"); in setUp()
128 mMockRunUtil.runTimedCmd( in testRun()
146 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun()
148 EasyMock.verify(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun()
169 mMockRunUtil.runTimedCmd( in testRun_failWithIncludeFilters()
182 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_failWithIncludeFilters()
184 EasyMock.verify(mMockRunUtil, mMockBuildInfo, mMockListener, mMockDevice); in testRun_failWithIncludeFilters()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java59 private IRunUtil mMockRunUtil; field in ClusterCommandLauncherTest
82 mMockRunUtil = Mockito.mock(IRunUtil.class); in setUp()
138 when(mMockRunUtil.runTimedCmd( in testRun()
144 Mockito.when(mLauncher.getRunUtil()).thenReturn(mMockRunUtil); in testRun()
148 Mockito.verify(mMockRunUtil, Mockito.times(2)).setWorkingDir(mRootDir); in testRun()
149 Mockito.verify(mMockRunUtil).unsetEnvVariable("TF_GLOBAL_CONFIG"); in testRun()
150 Mockito.verify(mMockRunUtil).setEnvVariable("TF_WORK_DIR", mRootDir.getAbsolutePath()); in testRun()
151 Mockito.verify(mMockRunUtil).setEnvVariable("TF_PATH", expandedTfPathValue); in testRun()
152 Mockito.verify(mMockRunUtil) in testRun()
184 when(mMockRunUtil.runTimedCmd( in testRun_withSetupScripts()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DFastbootHelperTest.java42 private IRunUtil mMockRunUtil; field in FastbootHelperTest
47 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
48 mFastbootHelper = new FastbootHelper(mMockRunUtil, "fastboot"); in setUp()
109 new FastbootHelper(mMockRunUtil, null); in testConstructor_badPath()
115 new FastbootHelper(mMockRunUtil, ""); in testConstructor_badPath()
127 EasyMock.expect(mMockRunUtil.runTimedCmdSilently(EasyMock.anyLong(), in testIsFastbootAvailable_oldVersion()
129 EasyMock.replay(mMockRunUtil); in testIsFastbootAvailable_oldVersion()
131 EasyMock.verify(mMockRunUtil); in testIsFastbootAvailable_oldVersion()
139 EasyMock.expect(mMockRunUtil.runTimedCmdSilently(EasyMock.anyLong(), in testIsFastbootAvailable_noBinary()
141 EasyMock.replay(mMockRunUtil); in testIsFastbootAvailable_noBinary()
[all …]
DWaitDeviceRecoveryTest.java44 private IRunUtil mMockRunUtil; field in WaitDeviceRecoveryTest
52 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
58 return mMockRunUtil; in setUp()
78 mMockRunUtil.sleep(EasyMock.anyLong()); in testRecoverDevice_success()
98 mMockRunUtil.sleep(EasyMock.anyLong()); in testRecoverDevice_unavailable()
115 mMockRunUtil.sleep(EasyMock.anyLong()); in testRecoverDevice_unavailable_recovers()
136 mMockRunUtil.sleep(EasyMock.anyLong()); in testRecoverDevice_unavailable_recovery()
161 mMockRunUtil.sleep(EasyMock.anyLong()); in testRecoverDevice_unavailable_recovery_fail()
185 mMockRunUtil.sleep(EasyMock.anyLong()); in testRecoverDevice_unavailable_fastboot()
192 mMockRunUtil.runTimedCmd( in testRecoverDevice_unavailable_fastboot()
[all …]
DAndroidDebugBridgeWrapperTest.java35 private IRunUtil mMockRunUtil; field in AndroidDebugBridgeWrapperTest
39 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
44 return mMockRunUtil; in setUp()
56 mMockRunUtil.runTimedCmd( in testAdbVersionParsing()
59 EasyMock.replay(mMockRunUtil); in testAdbVersionParsing()
62 EasyMock.verify(mMockRunUtil); in testAdbVersionParsing()
75 mMockRunUtil.runTimedCmd( in testAdbVersionParsing_altFormat()
78 EasyMock.replay(mMockRunUtil); in testAdbVersionParsing_altFormat()
81 EasyMock.verify(mMockRunUtil); in testAdbVersionParsing_altFormat()
92 mMockRunUtil.runTimedCmd( in testAdbVersionParse_runFail()
[all …]
DTestDeviceTest.java101 private IRunUtil mMockRunUtil; field in TestDeviceTest
120 return mMockRunUtil; in getRunUtil()
146 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
194 EasyMock.replay(mMockIDevice, mMockRunUtil, mMockStateMonitor); in testEnableAdbRoot_notRoot()
236 EasyMock.replay(mMockIDevice, mMockRunUtil, mMockStateMonitor); in testDisableAdbRoot_unroot()
238 EasyMock.verify(mMockIDevice, mMockRunUtil, mMockStateMonitor); in testDisableAdbRoot_unroot()
265 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in setExecuteAdbCommandExpectations()
287 EasyMock.replay(mMockIDevice, mMockRunUtil, mMockStateMonitor); in testEnableAdbRoot_rootRetry()
321 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String)EasyMock.anyObject(), in testGetProductType_fastboot()
325 EasyMock.replay(mMockIDevice, mMockRunUtil); in testGetProductType_fastboot()
[all …]
DRemoteAndroidDeviceTest.java42 private IRunUtil mMockRunUtil; field in RemoteAndroidDeviceTest
57 return mMockRunUtil; in getRunUtil()
73 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
89 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect()
92 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect()
95 EasyMock.replay(mMockRunUtil); in testAdbConnect()
105 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails()
108 mMockRunUtil.sleep(EasyMock.anyLong()); in testAdbConnect_fails()
110 EasyMock.replay(mMockRunUtil); in testAdbConnect_fails()
124 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails_confirmation()
[all …]
DNativeDeviceTest.java95 private IRunUtil mMockRunUtil; field in NativeDeviceTest
118 return mMockRunUtil; in getRunUtil()
135 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
776 mMockRunUtil.sleep(EasyMock.anyLong()); in testConnectToWifiNetwork_failure()
778 EasyMock.replay(mMockWifi, mMockIDevice, mMockRunUtil); in testConnectToWifiNetwork_failure()
781 EasyMock.verify(mMockWifi, mMockIDevice, mMockRunUtil); in testConnectToWifiNetwork_failure()
922 mMockRunUtil.sleep(EasyMock.anyLong()); in testReconnectToWifiNetwork()
924 EasyMock.replay(mMockWifi, mMockIDevice, mMockRunUtil); in testReconnectToWifiNetwork()
928 EasyMock.verify(mMockWifi, mMockIDevice, mMockRunUtil); in testReconnectToWifiNetwork()
2432 mMockRunUtil.runTimedCmd( in testGetProperty_noOutput()
[all …]
DDeviceManagerTest.java73 private IRunUtil mMockRunUtil; field in DeviceManagerTest
175 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
227 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String) EasyMock.anyObject(), in setUp()
230 mMockRunUtil.runTimedCmdSilently(EasyMock.anyLong(), (String) EasyMock.anyObject(), in setUp()
283 return mMockRunUtil; in createDeviceManagerNoInit()
477 EasyMock.reset(mMockRunUtil); in testAllocateDevice_fastboot()
480 mMockRunUtil.runTimedCmdSilently(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testAllocateDevice_fastboot()
487 mMockRunUtil.runTimedCmdSilently( in testAllocateDevice_fastboot()
775 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("adb"), in testConnectToTcpDevice_connectFailed()
779 mMockRunUtil.sleep(EasyMock.anyLong()); in testConnectToTcpDevice_connectFailed()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparerTest.java47 private IRunUtil mMockRunUtil; field in AdbStopServerPreparerTest
58 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
66 return mMockRunUtil; in setUp()
83 mMockRunUtil.sleep(2000); in setUp()
103 mMockRunUtil.runTimedCmd( in testSetup_tearDown()
107 mMockRunUtil.runTimedCmd( in testSetup_tearDown()
114 EasyMock.replay(mMockRunUtil, mMockManager, mMockDevice); in testSetup_tearDown()
117 EasyMock.verify(mMockRunUtil, mMockManager, mMockDevice); in testSetup_tearDown()
127 mMockRunUtil.runTimedCmd( in testSetup_fail_tearDown()
133 mMockRunUtil.runTimedCmd( in testSetup_fail_tearDown()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DTfTestLauncherTest.java65 private IRunUtil mMockRunUtil; field in TfTestLauncherTest
73 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
78 mTfTestLauncher.setRunUtil(mMockRunUtil); in setUp()
99 mMockRunUtil.runTimedCmd( in testRun()
129 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testRun()
130 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testRun()
131 mMockRunUtil.unsetEnvVariable(SubprocessTfLauncher.ANDROID_SERIAL_VAR); in testRun()
132 mMockRunUtil.unsetEnvVariable(EnvVariable.ANDROID_HOST_OUT_TESTCASES.name()); in testRun()
133 mMockRunUtil.unsetEnvVariable(EnvVariable.ANDROID_TARGET_OUT_TESTCASES.name()); in testRun()
134 mMockRunUtil.setEnvVariablePriority(EnvPriority.SET); in testRun()
[all …]
DNoisyDryRunTestTest.java60 private IRunUtil mMockRunUtil; field in NoisyDryRunTestTest
77 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
257 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testLoading_sandboxed()
259 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testLoading_sandboxed()
260 mMockRunUtil.setEnvVariable( in testLoading_sandboxed()
262 mMockRunUtil.setEnvVariablePriority(EnvPriority.SET); in testLoading_sandboxed()
265 mMockRunUtil.runTimedCmd( in testLoading_sandboxed()
305 return mMockRunUtil; in testLoading_sandboxed()
318 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testLoading_sandboxed_failed()
320 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testLoading_sandboxed_failed()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DSandboxConfigurationFactoryTest.java56 private IRunUtil mMockRunUtil; field in SandboxConfigurationFactoryTest
63 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
78 mMockRunUtil.runTimedCmd( in expectDumpCmd()
107 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testCreateConfigurationFromArgs()
109 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testCreateConfigurationFromArgs()
110 mMockRunUtil.setEnvVariable( in testCreateConfigurationFromArgs()
112 mMockRunUtil.setEnvVariablePriority(EnvPriority.SET); in testCreateConfigurationFromArgs()
116 EasyMock.replay(mFakeSandbox, mMockRunUtil); in testCreateConfigurationFromArgs()
119 args, new StubKeyStoreClient(), mFakeSandbox, mMockRunUtil); in testCreateConfigurationFromArgs()
120 EasyMock.verify(mFakeSandbox, mMockRunUtil); in testCreateConfigurationFromArgs()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryHostTestTest.java44 private IRunUtil mMockRunUtil; field in RustBinaryHostTestTest
52 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
59 return mMockRunUtil; in setUp()
105 mMockRunUtil.runTimedCmdSilently( in mockCountTests()
131 mMockRunUtil.runTimedCmd( in mockTestRunExpect()
144 EasyMock.replay(mMockRunUtil, mMockBuildInfo, mMockListener); in callReplayRunVerify()
146 EasyMock.verify(mMockRunUtil, mMockBuildInfo, mMockListener); in callReplayRunVerify()
222 mMockRunUtil.runTimedCmdSilently( in testRunFail_list()
273 mMockRunUtil.runTimedCmdSilently( in testExcludeFilter()
286 mMockRunUtil.runTimedCmd( in testExcludeFilter()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
DSl4aClientTest.java43 private IRunUtil mMockRunUtil; field in Sl4aClientTest
48 mMockRunUtil = EasyMock.createMock(IRunUtil.class); in setUp()
53 return mMockRunUtil; in setUp()
112 mMockRunUtil.sleep(EasyMock.anyLong()); in testStartSl4A_notRunning()
114 EasyMock.replay(mMockDevice, mMockRunUtil); in testStartSl4A_notRunning()
121 EasyMock.verify(mMockDevice, mMockRunUtil); in testStartSl4A_notRunning()
139 mMockRunUtil.sleep(EasyMock.anyLong()); in setupStartExpectation()
156 EasyMock.replay(mMockDevice, mMockRunUtil); in testStartSl4A()
162 EasyMock.verify(mMockDevice, mMockRunUtil); in testStartSl4A()
173 EasyMock.replay(mMockDevice, mMockRunUtil); in testRpcCall_booleanResponse()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java66 private IRunUtil mMockRunUtil; field in ExecutableHostTestTest
73 mMockRunUtil = Mockito.mock(IRunUtil.class); in setUp()
78 return mMockRunUtil; in setUp()
121 .when(mMockRunUtil) in testRunHostExecutable()
150 .when(mMockRunUtil) in testRunHostExecutable_relativePath()
183 .when(mMockRunUtil) in testRunHostExecutable_dnae()
234 .when(mMockRunUtil) in testRunHostExecutable_search()
267 .when(mMockRunUtil) in testRunHostExecutable_notFound()
310 .when(mMockRunUtil) in testRunHostExecutable_failure()
356 .when(mMockRunUtil) in testRunHostExecutable_timeout()

12