Home
last modified time | relevance | path

Searched refs:mMockScheduler (Results 1 – 4 of 4) 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[] { in testAddCommand()
100 EasyMock.replay(mMockScheduler); in testAddCommand()
107 EasyMock.verify(mMockScheduler); in testAddCommand()
116 mMockScheduler.addCommandFile(EasyMock.eq(cmdFile), EasyMock.eq(extraArgs)); in testAddCommandFile()
118 EasyMock.replay(mMockScheduler); in testAddCommandFile()
125 EasyMock.verify(mMockScheduler); in testAddCommandFile()
259 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(), Mockito.anyLong()); in testProcessClientOperations_addCommand()
121 verify(mMockScheduler).addCommand(Mockito.any(), Mockito.eq(5l)); in testProcessClientOperations_addCommand()
127 doReturn(false).when(mMockScheduler).addCommand(Mockito.any(), Mockito.anyLong()); in testProcessClientOperations_addCommand_fail()
137 verify(mMockScheduler).addCommand(Mockito.any(), Mockito.eq(5l)); in testProcessClientOperations_addCommand_fail()
144 .when(mMockScheduler) in testProcessClientOperations_addCommand_config()
158 verify(mMockScheduler).addCommand(Mockito.any(), Mockito.eq(5l)); in testProcessClientOperations_addCommand_config()