Home
last modified time | relevance | path

Searched refs:mockListener (Results 1 – 4 of 4) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DShardListenerTest.java136 ILogSaverListener mockListener = EasyMock.createStrictMock(ILogSaverListener.class); in testLogOrderingForSharding() local
137 mockListener.setLogSaver(mMockSaver); in testLogOrderingForSharding()
142 mockListener.invocationStarted(mContext); in testLogOrderingForSharding()
143 mockListener.testLog( in testLogOrderingForSharding()
152 mockListener.testLogSaved( in testLogOrderingForSharding()
158 mockListener.testLog( in testLogOrderingForSharding()
167 mockListener.testLogSaved( in testLogOrderingForSharding()
173 mockListener.testRunStarted("run1", 1); in testLogOrderingForSharding()
175 mockListener.testStarted(tid, 0l); in testLogOrderingForSharding()
177 mockListener.logAssociation("test-file", testFile); in testLogOrderingForSharding()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java346 IScheduledInvocationListener mockListener = EasyMock in testExecCommand() local
348 mockListener.invocationInitiated((IInvocationContext) EasyMock.anyObject()); in testExecCommand()
349 mockListener.invocationComplete((IInvocationContext)EasyMock.anyObject(), in testExecCommand()
352 replayMocks(mockDevice, mockListener); in testExecCommand()
354 mScheduler.execCommand(mockListener, mockDevice, args); in testExecCommand()
357 verifyMocks(mockListener); in testExecCommand()
1068 IScheduledInvocationListener mockListener = EasyMock in testExecCommand_multipleDevices() local
1070 mockListener.invocationInitiated((IInvocationContext) EasyMock.anyObject()); in testExecCommand_multipleDevices()
1071 mockListener.invocationComplete((IInvocationContext)EasyMock.anyObject(), in testExecCommand_multipleDevices()
1073 replayMocks(mockListener); in testExecCommand_multipleDevices()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DCodeCoverageTestBaseTest.java374 ITestInvocationListener mockListener = mock(ITestInvocationListener.class);
388 coverageTest.run(mockListener);
411 ITestInvocationListener mockListener = mock(ITestInvocationListener.class);
422 coverageTest.run(mockListener);
447 ITestInvocationListener mockListener = mock(ITestInvocationListener.class);
461 coverageTest.run(mockListener);
DHostTestTest.java1524 ITestInvocationListener mockListener = EasyMock.createMock(ITestInvocationListener.class); in testGetTestStrictShardable_tooManyShards() local
1525 EasyMock.replay(mockListener); in testGetTestStrictShardable_tooManyShards()
1526 shard3.run(mockListener); in testGetTestStrictShardable_tooManyShards()
1527 EasyMock.verify(mockListener); in testGetTestStrictShardable_tooManyShards()
1563 ITestInvocationListener mockListener = EasyMock.createMock(ITestInvocationListener.class); in testGetTestStrictShardable_tooManyShards_shardUnit_method() local
1564 EasyMock.replay(mockListener); in testGetTestStrictShardable_tooManyShards_shardUnit_method()
1565 lastShard.run(mockListener); in testGetTestStrictShardable_tooManyShards_shardUnit_method()
1566 EasyMock.verify(mockListener); in testGetTestStrictShardable_tooManyShards_shardUnit_method()