Home
last modified time | relevance | path

Searched refs:mMockScheduler (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DConsoleTest.java43 private ICommandScheduler mMockScheduler; field in ConsoleTest
65 mMockScheduler = EasyMock.createStrictMock(ICommandScheduler.class); in setUp()
79 mConsole.setCommandScheduler(mMockScheduler); in setUp()
98 mMockScheduler.start(); in testRun_withConsole()
99 mMockScheduler.await(); in testRun_withConsole()
101 mMockScheduler.shutdown(); // after we discover that we can't read console input in testRun_withConsole()
103 EasyMock.replay(mMockScheduler); in testRun_withConsole()
110 EasyMock.verify(mMockScheduler); in testRun_withConsole()
126 mConsole.setCommandScheduler(mMockScheduler); in testRun_withConsoleInteractiveHelp()
131 mMockScheduler.start(); in testRun_withConsoleInteractiveHelp()
[all …]
DCommandRunnerTest.java50 private ICommandScheduler mMockScheduler; field in CommandRunnerTest
64 mMockScheduler = in setUp()
105 return mMockScheduler; in getCommandScheduler()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java48 private ICommandScheduler mMockScheduler; field in RemoteManagerFuncTest
54 mMockScheduler = EasyMock.createMock(ICommandScheduler.class); in setUp()
55 mRemoteMgr = new RemoteManager(mMockDeviceManager, mMockScheduler); in setUp()
96 EasyMock.expect(mMockScheduler.addCommand(EasyMock.aryEq(new String[] {"arg1", "arg2"}))) in testAddCommand()
99 EasyMock.replay(mMockScheduler); in testAddCommand()
106 EasyMock.verify(mMockScheduler); in testAddCommand()
115 mMockScheduler.addCommandFile(EasyMock.eq(cmdFile), EasyMock.eq(extraArgs)); in testAddCommandFile()
117 EasyMock.replay(mMockScheduler); in testAddCommandFile()
124 EasyMock.verify(mMockScheduler); in testAddCommandFile()
258 mMockScheduler.execCommand((IScheduledInvocationListener)EasyMock.anyObject(), in testExecCommand()
[all …]
DRemoteManagerTest.java50 private ICommandScheduler mMockScheduler; field in RemoteManagerTest
56 mMockScheduler = Mockito.mock(ICommandScheduler.class); in setUp()
60 new RemoteManager(mMockDeviceManager, mMockScheduler) { in setUp()
105 verify(mMockScheduler).handoverShutdown(5555); in testProcessClientOperations_initHandover()
111 doReturn(true).when(mMockScheduler).addCommand(Mockito.any()); in testProcessClientOperations_addCommand()
121 verify(mMockScheduler).addCommand(Mockito.any()); in testProcessClientOperations_addCommand()
127 doReturn(false).when(mMockScheduler).addCommand(Mockito.any()); in testProcessClientOperations_addCommand_fail()
137 verify(mMockScheduler).addCommand(Mockito.any()); in testProcessClientOperations_addCommand_fail()
144 .when(mMockScheduler) in testProcessClientOperations_addCommand_config()
158 verify(mMockScheduler).addCommand(Mockito.any()); in testProcessClientOperations_addCommand_config()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DRunConfigDeviceRecoveryTest.java47 private ICommandScheduler mMockScheduler; field in RunConfigDeviceRecoveryTest
54 mMockScheduler = EasyMock.createMock(ICommandScheduler.class); in setup()
66 return mMockScheduler; in setup()
93 mMockScheduler.execCommand(EasyMock.anyObject(), EasyMock.eq(device), EasyMock.anyObject()); in testRecoverDevice_offline()
113 mMockScheduler.execCommand(EasyMock.anyObject(), EasyMock.eq(device), EasyMock.anyObject()); in testRecoverDevice_fastboot()
131 mMockScheduler.execCommand( in testRecoverDevice_run()
143 EasyMock.replay(mMockTestDevice, mMockIDevice, mMockDeviceManager, mMockScheduler); in replay()
148 EasyMock.verify(mMockTestDevice, mMockIDevice, mMockDeviceManager, mMockScheduler); in verify()