/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | LogcatOnFailureCollectorTest.java | 54 private ILogcatReceiver mMockReceiver; field in LogcatOnFailureCollectorTest 76 return mMockReceiver; in createLogcatReceiver() 90 mMockReceiver = EasyMock.createMock(ILogcatReceiver.class); in setUp() 107 mMockReceiver.start(); in testCollect() 108 mMockReceiver.clear(); in testCollect() 109 mMockReceiver.stop(); in testCollect() 121 EasyMock.expect(mMockReceiver.getLogcatData()) in testCollect() 124 EasyMock.expect(mMockReceiver.getLogcatData(EasyMock.anyInt(), EasyMock.eq(3))) in testCollect() 131 EasyMock.replay(mMockListener, mMockDevice, mMockReceiver, mNullMockDevice); in testCollect() 138 EasyMock.verify(mMockListener, mMockDevice, mMockReceiver, mNullMockDevice); in testCollect() [all …]
|
D | LogcatTimingMetricCollectorTest.java | 64 @Mock private LogcatReceiver mMockReceiver; field in LogcatTimingMetricCollectorTest 82 when(mMockReceiver.getLogcatData()).thenReturn(createInputStreamSource()); in setup() 84 doReturn(mMockReceiver) in setup() 100 verify(mMockReceiver).start(); in testCollect_oneDevice_perRun() 101 verify(mMockReceiver).stop(); in testCollect_oneDevice_perRun() 102 verify(mMockReceiver).clear(); in testCollect_oneDevice_perRun() 135 verify(mMockReceiver).start(); in testCollect_multipleDevice_perRun() 136 verify(mMockReceiver).stop(); in testCollect_multipleDevice_perRun() 137 verify(mMockReceiver).clear(); in testCollect_multipleDevice_perRun() 158 verify(mMockReceiver).start(); in testCollect_onDevice_twoTests() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | BackgroundDeviceActionTest.java | 39 private IShellOutputReceiver mMockReceiver; field in BackgroundDeviceActionTest 51 mMockReceiver = EasyMock.createMock(IShellOutputReceiver.class); in setUp() 52 mMockReceiver.addOutput((byte[])EasyMock.anyObject(), EasyMock.anyInt(), EasyMock.anyInt()); in setUp() 70 mMockIDevice.executeShellCommand(EasyMock.eq(action), EasyMock.same(mMockReceiver), in testBackgroundActionComplete() 73 EasyMock.replay(mMockTestDevice, mMockIDevice, mMockReceiver); in testBackgroundActionComplete() 75 new BackgroundDeviceAction(action, "desc", mMockTestDevice, mMockReceiver, 0); in testBackgroundActionComplete() 92 mMockIDevice.executeShellCommand(EasyMock.eq(action), EasyMock.same(mMockReceiver), in testBackgroundAction_shellException() 95 EasyMock.replay(mMockTestDevice, mMockIDevice, mMockReceiver); in testBackgroundAction_shellException() 97 new BackgroundDeviceAction(action, "desc", mMockTestDevice, mMockReceiver, 0) { in testBackgroundAction_shellException() 124 EasyMock.replay(mMockTestDevice, mMockIDevice, mMockReceiver); in testwaitForDeviceRecovery_online() [all …]
|
D | TestDeviceTest.java | 95 private IShellOutputReceiver mMockReceiver; field in TestDeviceTest 142 mMockReceiver = EasyMock.createMock(IShellOutputReceiver.class); in setUp() 510 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_receiver() 513 mTestDevice.executeShellCommand(testCommand, mMockReceiver); in testExecuteShellCommand_receiver() 539 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_recoveryFail() 547 mRecoveryTestDevice.executeShellCommand(testCommand, mMockReceiver); in testExecuteShellCommand_recoveryFail() 564 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_recoveryUntilOnline() 569 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_recoveryUntilOnline() 572 mRecoveryTestDevice.executeShellCommand(testCommand, mMockReceiver); in testExecuteShellCommand_recoveryUntilOnline() 611 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_recoveryRetry() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestTest.java | 52 private IShellOutputReceiver mMockReceiver = null; field in GTestTest 66 mMockReceiver = EasyMock.createMock(IShellOutputReceiver.class); in setUp() 68 mMockReceiver.flush(); in setUp() 76 return mMockReceiver; in setUp() 108 EasyMock.replay(mMockInvocationListener, mMockITestDevice, mMockReceiver); in replayMocks() 115 EasyMock.verify(mMockInvocationListener, mMockITestDevice, mMockReceiver); in verifyMocks() 166 EasyMock.same(mMockReceiver), in testRun() 172 EasyMock.same(mMockReceiver), in testRun() 208 EasyMock.same(mMockReceiver), in testRunFilterAbiPath() 232 EasyMock.same(mMockReceiver), in testRun_moduleName() [all …]
|
D | GoogleBenchmarkTestTest.java | 45 private CollectingOutputReceiver mMockReceiver = null; field in GoogleBenchmarkTestTest 58 mMockReceiver = new CollectingOutputReceiver(); in setUp() 66 return mMockReceiver; in setUp() 116 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun() 118 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun() 198 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withModuleName() 200 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun_withModuleName() 245 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withRunReportName() 280 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_exceptionDuringExecShell() 433 EasyMock.same(mMockReceiver), in doTestFilter() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryTestTest.java | 51 private IShellOutputReceiver mMockReceiver = null; field in RustBinaryTestTest 63 mMockReceiver = EasyMock.createMock(IShellOutputReceiver.class); in setUp() 65 mMockReceiver.flush(); in setUp() 73 return mMockReceiver; in setUp() 92 EasyMock.replay(mMockInvocationListener, mMockITestDevice, mMockReceiver); in replayMocks() 97 EasyMock.verify(mMockInvocationListener, mMockITestDevice, mMockReceiver); in verifyMocks() 123 EasyMock.same(mMockReceiver), in mockShellCommand()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | RunCommandTargetPreparerTest.java | 152 IShellOutputReceiver mMockReceiver = EasyMock.createMock(IShellOutputReceiver.class); in testBgCmd() local 153 mMockReceiver.addOutput((byte[]) EasyMock.anyObject(), EasyMock.anyInt(), in testBgCmd() 157 mMockIDevice.executeShellCommand(EasyMock.eq(command), EasyMock.same(mMockReceiver), in testBgCmd()
|