Home
last modified time | relevance | path

Searched refs:mForwarder (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/
DTestRunToTestInvocationForwarderTest.java38 private TestRunToTestInvocationForwarder mForwarder; field in TestRunToTestInvocationForwarderTest
44 mForwarder = new TestRunToTestInvocationForwarder(mMockListener); in setUp()
67 mForwarder.testRunStarted(RUN_NAME, 2); in testForwarding()
69 mForwarder.testStarted(tid1); in testForwarding()
70 mForwarder.testFailed(tid1, "I failed"); in testForwarding()
71 mForwarder.testEnded(tid1, new HashMap<>()); in testForwarding()
73 mForwarder.testStarted(tid2); in testForwarding()
74 mForwarder.testFailed(tid2, "I failed"); in testForwarding()
75 mForwarder.testEnded(tid2, new HashMap<>()); in testForwarding()
77 mForwarder.testRunEnded(500L, new HashMap<>()); in testForwarding()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DBasePostProcessor.java50 private ITestInvocationListener mForwarder; field in BasePostProcessor
76 mForwarder = listener; in init()
91 mForwarder.invocationStarted(context); in invocationStarted()
96 mForwarder.invocationFailed(cause); in invocationFailed()
101 mForwarder.invocationEnded(elapsedTime); in invocationEnded()
106 mForwarder.testLog(dataName, dataType, dataStream); in testLog()
112 mForwarder.testRunStarted(runName, testCount); in testRunStarted()
117 mForwarder.testRunStarted(runName, testCount, attemptNumber); in testRunStarted()
122 mForwarder.testRunFailed(errorMessage); in testRunFailed()
127 mForwarder.testRunStopped(elapsedTime); in testRunStopped()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/
DCoverageMeasurementForwarderTest.java77 private CoverageMeasurementForwarder mForwarder; field in CoverageMeasurementForwarderTest
124 mForwarder = new CoverageMeasurementForwarder(); in setUp()
125 mForwarder.setBuild(mMockBuildInfo); in setUp()
130 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME1)); in testForwardSingleJavaArtifact()
131 mForwarder.run(mMockListener); in testForwardSingleJavaArtifact()
140 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME1, ARTIFACT_NAME2)); in testForwardMultipleJavaArtifacts()
141 mForwarder.run(mMockListener); in testForwardMultipleJavaArtifacts()
154 mForwarder.setCoverageMeasurements(ImmutableList.of(NONEXISTANT_ARTIFACT1)); in testNoSuchJavaArtifact()
156 mForwarder.run(mMockListener); in testNoSuchJavaArtifact()
167 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME3)); in testForwardSingleNativeArtifact()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java68 private ITestInvocationListener mForwarder; field in BaseDeviceMetricCollector
82 mForwarder = listener; in init()
98 return mForwarder; in getInvocationListener()
137 mForwarder.invocationStarted(context); in invocationStarted()
142 mForwarder.invocationFailed(cause); in invocationFailed()
147 mForwarder.invocationEnded(elapsedTime); in invocationEnded()
152 mForwarder.testLog(dataName, dataType, dataStream); in testLog()
166 mForwarder.testRunStarted(runName, testCount); in testRunStarted()
171 mForwarder.testRunFailed(errorMessage); in testRunFailed()
176 mForwarder.testRunStopped(elapsedTime); in testRunStopped()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DJUnitToInvocationResultForwarderTest.java46 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/
DBugreportzMetricCollectorTest.java44 @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()