/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarderTest.java | 40 private TestRunToTestInvocationForwarder mForwarder; field in TestRunToTestInvocationForwarderTest 46 mForwarder = new TestRunToTestInvocationForwarder(mMockListener); in setUp() 69 mForwarder.testRunStarted(RUN_NAME, 2); in testForwarding() 71 mForwarder.testStarted(tid1); in testForwarding() 72 mForwarder.testFailed(tid1, "I failed"); in testForwarding() 73 mForwarder.testEnded(tid1, new HashMap<>()); in testForwarding() 75 mForwarder.testStarted(tid2); in testForwarding() 76 mForwarder.testFailed(tid2, "I failed"); in testForwarding() 77 mForwarder.testEnded(tid2, new HashMap<>()); in testForwarding() 79 mForwarder.testRunEnded(500L, new HashMap<>()); in testForwarding() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessor.java | 52 private ITestInvocationListener mForwarder; field in BasePostProcessor 86 mForwarder = listener; in init() 101 mForwarder.invocationStarted(context); in invocationStarted() 106 mForwarder.invocationFailed(cause); in invocationFailed() 111 mForwarder.invocationFailed(failure); in invocationFailed() 116 mForwarder.invocationEnded(elapsedTime); in invocationEnded() 121 mForwarder.testLog(dataName, dataType, dataStream); in testLog() 126 mForwarder.testModuleStarted(moduleContext); in testModuleStarted() 131 mForwarder.testModuleEnded(); in testModuleEnded() 137 mForwarder.testRunStarted(runName, testCount); in testRunStarted() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 79 private ITestInvocationListener mForwarder; field in BaseDeviceMetricCollector 97 mForwarder = listener; in init() 151 return mForwarder; in getInvocationListener() 199 mForwarder.invocationStarted(context); in invocationStarted() 204 mForwarder.invocationFailed(cause); in invocationFailed() 209 mForwarder.invocationFailed(failure); in invocationFailed() 214 mForwarder.invocationEnded(elapsedTime); in invocationEnded() 219 mForwarder.testLog(dataName, dataType, dataStream); in testLog() 224 mForwarder.testModuleStarted(moduleContext); in testModuleStarted() 229 mForwarder.testModuleEnded(); in testModuleEnded() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/ |
D | CoverageMeasurementForwarderTest.java | 83 private CoverageMeasurementForwarder mForwarder; field in CoverageMeasurementForwarderTest 133 mForwarder = new CoverageMeasurementForwarder(); in setUp() 138 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME1)); in testForwardSingleJavaArtifact() 139 mForwarder.run(mTestInfo, mMockListener); in testForwardSingleJavaArtifact() 148 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME1, ARTIFACT_NAME2)); in testForwardMultipleJavaArtifacts() 149 mForwarder.run(mTestInfo, mMockListener); in testForwardMultipleJavaArtifacts() 162 mForwarder.setCoverageMeasurements(ImmutableList.of(NONEXISTANT_ARTIFACT1)); in testNoSuchJavaArtifact() 164 mForwarder.run(mTestInfo, mMockListener); in testNoSuchJavaArtifact() 175 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME3)); in testForwardSingleNativeArtifact() 176 mForwarder.setCoverageLogDataType(LogDataType.NATIVE_COVERAGE); in testForwardSingleNativeArtifact() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | JUnitToInvocationResultForwarderTest.java | 46 private JUnitToInvocationResultForwarder mForwarder; field in JUnitToInvocationResultForwarderTest 51 mForwarder = new JUnitToInvocationResultForwarder(mListener); in setUp() 82 mForwarder.addFailure(test, a); in testAddFailure() 96 mForwarder.endTest(test); in testEndTest() 108 mForwarder.startTest(test); in testStartTest() 123 mForwarder.startTest(test); in testStartTest_annotations()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | BugreportzMetricCollectorTest.java | 44 @Mock ITestInvocationListener mForwarder; field in BugreportzMetricCollectorTest 57 mBugreportzMetricCollector.init(mContext, mForwarder); in setup() 65 when(mTestDevice.logBugreport("bugreportz-1", mForwarder)).thenReturn(true); in testCollect_success() 71 verify(mTestDevice).logBugreport(eq("bugreport-1"), eq(mForwarder)); in testCollect_success()
|