Home
last modified time | relevance | path

Searched refs:ITestInvocationListener (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/tools/tradefederation/core/src/com/android/tradefed/result/
DResultForwarder.java30 public class ResultForwarder implements ITestInvocationListener {
32 private List<ITestInvocationListener> mListeners;
47 public ResultForwarder(List<ITestInvocationListener> listeners) { in ResultForwarder()
56 public ResultForwarder(ITestInvocationListener... listeners) { in ResultForwarder()
65 protected void setListeners(List<ITestInvocationListener> listeners) { in setListeners()
74 protected void setListeners(ITestInvocationListener... listeners) { in setListeners()
83 protected List<ITestInvocationListener> getListeners() { in getListeners()
92 for (ITestInvocationListener listener : mListeners) { in invocationStarted()
109 for (ITestInvocationListener listener : mListeners) { in invocationFailed()
124 for (ITestInvocationListener listener : mListeners) { in invocationFailed()
[all …]
DJUnitToInvocationResultForwarder.java42 private final List<ITestInvocationListener> mInvocationListeners;
44 public JUnitToInvocationResultForwarder(ITestInvocationListener invocationListener) { in JUnitToInvocationResultForwarder()
45 mInvocationListeners = new ArrayList<ITestInvocationListener>(1); in JUnitToInvocationResultForwarder()
49 public JUnitToInvocationResultForwarder(List<ITestInvocationListener> invocationListeners) { in JUnitToInvocationResultForwarder()
50 mInvocationListeners = new ArrayList<ITestInvocationListener>(invocationListeners.size()); in JUnitToInvocationResultForwarder()
59 for (ITestInvocationListener listener : mInvocationListeners) { in addError()
69 for (ITestInvocationListener listener : mInvocationListeners) { in addFailure()
80 for (ITestInvocationListener listener : mInvocationListeners) { in endTest()
92 for (ITestInvocationListener listener : mInvocationListeners) { in endTest()
110 for (ITestInvocationListener listener : mInvocationListeners) { in testLog()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java31 import com.android.tradefed.result.ITestInvocationListener;
91 ITestInvocationListener mockRunListener = in testParse_randomEvents()
92 EasyMock.createMock(ITestInvocationListener.class); in testParse_randomEvents()
134 ITestInvocationListener mockRunListener = in testParse_invalidEventOrder()
135 EasyMock.createMock(ITestInvocationListener.class); in testParse_invalidEventOrder()
175 ITestInvocationListener mockRunListener = in testParse_testNotStarted()
176 EasyMock.createMock(ITestInvocationListener.class); in testParse_testNotStarted()
214 ITestInvocationListener mockRunListener = in testParse_noTimeStamp()
215 EasyMock.createMock(ITestInvocationListener.class); in testParse_noTimeStamp()
257 ITestInvocationListener mockRunListener = in testParse_invocationFailed()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestResultParserTest.java22 import com.android.tradefed.result.ITestInvocationListener;
41 ITestInvocationListener mockRunListener = in testParseSimpleFile()
42 EasyMock.createMock(ITestInvocationListener.class); in testParseSimpleFile()
65 ITestInvocationListener mockRunListener = in testParseSimpleFileNoTimes()
66 EasyMock.createMock(ITestInvocationListener.class); in testParseSimpleFileNoTimes()
90 ITestInvocationListener mockRunListener = in testParseNoTests()
91 EasyMock.createMock(ITestInvocationListener.class); in testParseNoTests()
105 ITestInvocationListener mockRunListener = in testParseLargerFile()
106 EasyMock.createMock(ITestInvocationListener.class); in testParseLargerFile()
131 ITestInvocationListener mockRunListener = in testParseWithFailures()
[all …]
DDeviceTestCaseTest.java24 import com.android.tradefed.result.ITestInvocationListener;
115 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_suite()
140 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_includeFilter()
162 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_excludeFilter()
184 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_includeAnnotationFiltering()
201 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_checkAnnotation()
232 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_excludeAnnotationFiltering()
251 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_singleTest()
270 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_deviceNotAvail()
296 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class); in testRun_testcaseCollectMode()
[all …]
DGTestXmlResultParserTest.java21 import com.android.tradefed.result.ITestInvocationListener;
83 ITestInvocationListener mockRunListener = in testParseSimpleFile()
84 EasyMock.createMock(ITestInvocationListener.class); in testParseSimpleFile()
114 ITestInvocationListener mockRunListener = in testParseLargerFile()
115 EasyMock.createMock(ITestInvocationListener.class); in testParseLargerFile()
144 ITestInvocationListener mockRunListener = in testParseWithFailures()
145 EasyMock.createMock(ITestInvocationListener.class); in testParseWithFailures()
181 ITestInvocationListener mockRunListener = in testParseWithEmptyFile()
182 EasyMock.createMock(ITestInvocationListener.class); in testParseWithEmptyFile()
204 ITestInvocationListener mockRunListener = in testParseUnexpectedNumberTest()
[all …]
DGoogleBenchmarkResultParserTest.java23 import com.android.tradefed.result.ITestInvocationListener;
87 ITestInvocationListener mMockInvocationListener = in testParseSimpleFile()
88 EasyMock.createMock(ITestInvocationListener.class); in testParseSimpleFile()
149 ITestInvocationListener mMockInvocationListener = in testParseSimpleFile_twoTests()
150 EasyMock.createMock(ITestInvocationListener.class); in testParseSimpleFile_twoTests()
179 ITestInvocationListener mMockInvocationListener = in testParse_contextError()
180 EasyMock.createMock(ITestInvocationListener.class); in testParse_contextError()
193 ITestInvocationListener mMockInvocationListener = in testParse_noBenchmarkResults()
194 EasyMock.createMock(ITestInvocationListener.class); in testParse_noBenchmarkResults()
207 ITestInvocationListener mMockInvocationListener = in testParse_benchmarkError()
[all …]
DGTestListTestParserTest.java24 import com.android.tradefed.result.ITestInvocationListener;
44 ITestInvocationListener mockRunListener = in testParseSimpleList()
45 EasyMock.createMock(ITestInvocationListener.class); in testParseSimpleList()
69 ITestInvocationListener mockRunListener = in testParseMultiClassList()
70 EasyMock.createMock(ITestInvocationListener.class); in testParseMultiClassList()
93 ITestInvocationListener mockRunListener = in testParseMalformedList()
94 EasyMock.createMock(ITestInvocationListener.class); in testParseMalformedList()
109 ITestInvocationListener mockRunListener = in testParseSimpleList_withSpecialChar()
110 EasyMock.createMock(ITestInvocationListener.class); in testParseSimpleList_withSpecialChar()
146 ITestInvocationListener mockRunListener = in testParseParameterized()
[all …]
DInstrumentationTestFuncTest.java34 import com.android.tradefed.result.ITestInvocationListener;
62 private ITestInvocationListener mMockListener;
93 mMockListener = EasyMock.createStrictMock(ITestInvocationListener.class); in setUp()
131 new ITestInvocationListener() { in testRun_testFailed() method
197 new ITestInvocationListener() { in testRun_testTimeout() method
250 new ITestInvocationListener() { in testRun_deviceReboot() method
279 new ITestInvocationListener() { in testRun_maxTimeout() method
333 new ITestInvocationListener() { in testRun_deviceRuntimeReset() method
/tools/tradefederation/core/tests/src/com/android/tradefed/device/helper/
DTelephonyHelperTest.java28 import com.android.tradefed.result.ITestInvocationListener;
63 (ITestInvocationListener) EasyMock.anyObject())) in testGetSimInfo()
69 ITestInvocationListener collector = in testGetSimInfo()
70 (ITestInvocationListener) getCurrentArguments()[1]; in testGetSimInfo()
112 (ITestInvocationListener) EasyMock.anyObject())) in testGetSimInfo_instrumentationFailed()
118 ITestInvocationListener collector = in testGetSimInfo_instrumentationFailed()
119 (ITestInvocationListener) getCurrentArguments()[1]; in testGetSimInfo_instrumentationFailed()
140 (ITestInvocationListener) EasyMock.anyObject())) in testGetSimInfo_simTest_not_run()
146 ITestInvocationListener collector = in testGetSimInfo_simTest_not_run()
147 (ITestInvocationListener) getCurrentArguments()[1]; in testGetSimInfo_simTest_not_run()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestResultParser.java23 import com.android.tradefed.result.ITestInvocationListener;
103 private final Collection<ITestInvocationListener> mTestListeners;
233 public GTestResultParser(String testRunName, Collection<ITestInvocationListener> listeners) { in GTestResultParser()
245 public GTestResultParser(String testRunName, ITestInvocationListener listener) { in GTestResultParser()
436 for (ITestInvocationListener listener : mTestListeners) { in reportTestRunStarted()
448 for (ITestInvocationListener listener : mTestListeners) { in reportTestRunEnded()
585 for (ITestInvocationListener listener : mTestListeners) { in processTestStartedTag()
650 for (ITestInvocationListener listener : mTestListeners) { in doTestEnded()
654 for (ITestInvocationListener listener : mTestListeners) { in doTestEnded()
658 for (ITestInvocationListener listener : mTestListeners) { in doTestEnded()
[all …]
DGTestXmlResultParser.java21 import com.android.tradefed.result.ITestInvocationListener;
57 private final Collection<ITestInvocationListener> mTestListeners;
66 public GTestXmlResultParser(String testRunName, Collection<ITestInvocationListener> listeners) { in GTestXmlResultParser()
78 public GTestXmlResultParser(String testRunName, ITestInvocationListener listener) { in GTestXmlResultParser()
100 for (ITestInvocationListener listener : mTestListeners) { in parseResult()
132 for (ITestInvocationListener listener : mTestListeners) { in parseResult()
138 for (ITestInvocationListener listener : mTestListeners) { in parseResult()
153 for (ITestInvocationListener listener : mTestListeners) { in reportTestRunStarted()
175 for (ITestInvocationListener listener : mTestListeners) { in processTestResult()
180 for (ITestInvocationListener listener : mTestListeners) { in processTestResult()
[all …]
DInstrumentationTest.java47 import com.android.tradefed.result.ITestInvocationListener;
790 public void run(TestInformation testInfo, final ITestInvocationListener listener) in run()
878 private void doTestRun(TestInformation testInfo, ITestInvocationListener listener) in doTestRun()
979 ITestInvocationListener addBugreportListenerIfEnabled(ITestInvocationListener listener) { in addBugreportListenerIfEnabled()
997 ITestInvocationListener addJavaCoverageListenerIfEnabled(ITestInvocationListener listener) { in addJavaCoverageListenerIfEnabled()
1016 ITestInvocationListener addGcovCoverageListenerIfEnabled(ITestInvocationListener listener) { in addGcovCoverageListenerIfEnabled()
1034 ITestInvocationListener addClangCoverageListenerIfEnabled(ITestInvocationListener listener) { in addClangCoverageListenerIfEnabled()
1056 final ITestInvocationListener listener, in runWithRerun()
1113 final ITestInvocationListener listener) in rerunTests()
1171 final IRemoteAndroidTestRunner runner, final ITestInvocationListener listener) in collectTestsToRun()
[all …]
DGTest.java33 import com.android.tradefed.result.ITestInvocationListener;
169 String root, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory()
377 ITestInvocationListener listener) in runTestXml()
414 public void run(TestInformation testInfo, ITestInvocationListener listener) in run()
471 private ITestInvocationListener addNativeCoverageListenerIfEnabled( in addNativeCoverageListenerIfEnabled()
472 ITestInvocationListener listener) { in addNativeCoverageListenerIfEnabled()
488 private ITestInvocationListener addClangCoverageListenerIfEnabled( in addClangCoverageListenerIfEnabled()
489 ITestInvocationListener listener) { in addClangCoverageListenerIfEnabled()
DUiAutomatorTest.java30 import com.android.tradefed.result.ITestInvocationListener;
210 public void run(TestInformation testInfo, ITestInvocationListener listener) in run()
340 protected void onScreenshotAndBugreport(ITestDevice device, ITestInvocationListener listener, in onScreenshotAndBugreport()
345 protected void onScreenshotAndBugreport(ITestDevice device, ITestInvocationListener listener, in onScreenshotAndBugreport()
382 private void logTraceFiles(ITestInvocationListener listener, String traceSrcDirectory) in logTraceFiles()
426 private class LoggingWrapper implements ITestInvocationListener {
428 ITestInvocationListener mListener;
432 public LoggingWrapper(ITestInvocationListener listener) { in LoggingWrapper()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java67 import com.android.tradefed.result.ITestInvocationListener;
211 ITestInvocationListener listener, in performInvocation()
435 ITestInvocationListener listener) in prepareAndRun()
458 ITestInvocationListener listener) { in startInvocation()
464 private void reportFailure(FailureDescription failure, ITestInvocationListener listener) { in reportFailure()
498 private void reportHostLog(ITestInvocationListener listener, IConfiguration config) { in reportHostLog()
507 ITestInvocationListener listener, IConfiguration config, String name) { in reportHostLog()
529 ITestDevice device, ITestInvocationListener listener, String bugreportName) { in takeBugreport()
621 ITestInvocationListener listener, in invokeFetchBuild()
673 ITestInvocationListener listener, in invokeRemoteDynamic()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java52 import com.android.tradefed.result.ITestInvocationListener;
305 public final void run(TestInformation moduleInfo, ITestInvocationListener listener) in run()
321 ITestInvocationListener listener, in run()
322 List<ITestInvocationListener> moduleLevelListeners, in run()
341 ITestInvocationListener listener, in run()
342 List<ITestInvocationListener> moduleLevelListeners, in run()
600 ITestInvocationListener listener, in prepareGranularRetriableWrapper()
602 List<ITestInvocationListener> moduleLevelListeners, in prepareGranularRetriableWrapper()
647 ITestInvocationListener listener, in reportFinalResults()
745 Map<TestDescription, TestResult> testResults, ITestInvocationListener listener) { in forwardTestResults()
[all …]
DGranularRetriableTestWrapper.java32 import com.android.tradefed.result.ITestInvocationListener;
81 private List<ITestInvocationListener> mModuleLevelListeners;
93 ITestInvocationListener mainListener, in GranularRetriableTestWrapper()
95 List<ITestInvocationListener> moduleLevelListeners, in GranularRetriableTestWrapper()
175 private ITestInvocationListener initializeListeners() { in initializeListeners()
176 List<ITestInvocationListener> currentTestListener = new ArrayList<>(); in initializeListeners()
184 ITestInvocationListener runListener = mRetryAttemptForwarder; in initializeListeners()
211 public void run(TestInformation testInfo, ITestInvocationListener listener) in run()
214 ITestInvocationListener allListeners = initializeListeners(); in run()
267 private final void intraModuleRun(TestInformation testInfo, ITestInvocationListener runListener) in intraModuleRun()
DITestSuite.java49 import com.android.tradefed.result.ITestInvocationListener;
598 public final void run(TestInformation testInfo, ITestInvocationListener listener) in run()
637 List<ITestInvocationListener> moduleListeners = createModuleListeners(); in run()
701 protected List<ITestInvocationListener> createModuleListeners() { in createModuleListeners()
746 ITestInvocationListener listener, in runSingleModule()
747 List<ITestInvocationListener> moduleListeners, in runSingleModule()
808 ITestInvocationListener listener) in runPreModuleCheck()
859 ITestInvocationListener listener) in runPostModuleCheck()
905 ITestInvocationListener listener) { in reportModuleCheckerResult()
1123 public void reportNotExecuted(ITestInvocationListener listener) { in reportNotExecuted()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardHelper.java36 import com.android.tradefed.result.ITestInvocationListener;
321 private static List<ITestInvocationListener> buildMainShardListeners( in buildMainShardListeners()
323 List<ITestInvocationListener> newListeners = new ArrayList<ITestInvocationListener>(); in buildMainShardListeners()
324 for (ITestInvocationListener l : config.getTestInvocationListeners()) { in buildMainShardListeners()
338 private static List<ITestInvocationListener> buildShardListeners( in buildShardListeners()
339 ITestInvocationListener resultCollector, in buildShardListeners()
341 List<ITestInvocationListener> origListeners) { in buildShardListeners()
342 List<ITestInvocationListener> shardListeners = new ArrayList<ITestInvocationListener>(); in buildShardListeners()
343 for (ITestInvocationListener l : origListeners) { in buildShardListeners()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DBasePostProcessorTest.java26 import com.android.tradefed.result.ITestInvocationListener;
158 private ITestInvocationListener mMockListener;
167 mMockListener = EasyMock.createMock(ITestInvocationListener.class); in setUp()
199 ITestInvocationListener listener = mProcessor.init(mMockListener); in testRunLevelPostProcessing()
226 mMockListener = EasyMock.createNiceMock(ITestInvocationListener.class); in testRunLogsPostProcessing_processRunLogs()
260 mMockListener = EasyMock.createNiceMock(ITestInvocationListener.class); in testRunLevelPostProcessing_processRunLogsOnly()
311 ITestInvocationListener listener = mProcessor.init(mMockListener); in testPerTestPostProcessing()
341 mMockListener = EasyMock.createNiceMock(ITestInvocationListener.class); in testPerTestLogPostProcessing_processTestLogs()
393 mMockListener = EasyMock.createNiceMock(ITestInvocationListener.class); in testPerTestLogPostProcessing_processTestLogsOnly()
436 mMockListener = EasyMock.createNiceMock(ITestInvocationListener.class); in testPerTestPostProcessing_logToTestAssociation()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationMultiTest.java43 import com.android.tradefed.result.ITestInvocationListener;
67 private ITestInvocationListener mMockTestListener;
94 mMockTestListener = EasyMock.createMock(ITestInvocationListener.class); in setUp()
168 List<ITestInvocationListener> configListener = new ArrayList<>(); in testRunBuildProvider_oneMiss()
233 mContext, mMockConfig, mMockRescheduler, new ITestInvocationListener[] {}); in testRunBuildProvider_oneMiss()
264 List<ITestInvocationListener> configListener = new ArrayList<>(); in testResolveDynamicFails()
330 mContext, mMockConfig, mMockRescheduler, new ITestInvocationListener[] {}); in testResolveDynamicFails()
346 List<ITestInvocationListener> configListener = new ArrayList<>(); in testRunBuildProvider_oneThrow()
414 mContext, mMockConfig, mMockRescheduler, new ITestInvocationListener[] {}); in testRunBuildProvider_oneThrow()
436 List<ITestInvocationListener> configListener = new ArrayList<>(); in testRunBuildProvider_cleanUpThrow()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraTestBase.java30 import com.android.tradefed.result.ITestInvocationListener;
156 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException { in run()
166 protected void runInstrumentationTest(ITestInvocationListener listener) in runInstrumentationTest()
183 protected void runInstrumentationTest(ITestInvocationListener listener, in runInstrumentationTest()
241 private ITestInvocationListener mListener = null;
248 public AbstractCollectingListener(ITestInvocationListener listener) { in AbstractCollectingListener()
277 abstract public void handleTestRunEnded(ITestInvocationListener listener, in handleTestRunEnded()
390 public ITestInvocationListener getListeners() { in getListeners()
421 public DefaultCollectingListener(ITestInvocationListener listener) { in DefaultCollectingListener()
434 public void handleTestRunEnded(ITestInvocationListener listener, long elapsedTime, in handleTestRunEnded()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java59 import com.android.tradefed.result.ITestInvocationListener;
117 private ITestInvocationListener mMockListener;
218 public void run(TestInformation testInfo, ITestInvocationListener listener) in run()
298 mMockListener = EasyMock.createMock(ITestInvocationListener.class); in setUp()
385 private void expectTestRun(ITestInvocationListener listener) { in expectTestRun()
390 private void expectTestRun(ITestInvocationListener listener, boolean testFailed) { in expectTestRun()
396 ITestInvocationListener listener, String message, boolean testFailed) { in expectTestRun()
412 ITestInvocationListener listener, int totalAttempt, boolean testFailed) { in expectIntraModuleTestRun()
1447 ITestInvocationListener moduleListener = EasyMock.createMock(ITestInvocationListener.class); in testRun_withModuleListener()
1451 protected List<ITestInvocationListener> createModuleListeners() { in testRun_withModuleListener()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableTargetTestTest.java29 import com.android.tradefed.result.ITestInvocationListener;
57 private ITestInvocationListener mListener = null;
66 mListener = Mockito.mock(ITestInvocationListener.class); in setUp()
87 ITestInvocationListener listener, in testRun_cmdSuccess()
131 ITestInvocationListener listener, in testRun_pathNotExist()
175 ITestInvocationListener listener, in testRun_cmdFailed()
224 ITestInvocationListener listener, in testRun_addExcludeFilter()
280 ITestInvocationListener listener, in testRun_addIncludeFilter()
335 ITestInvocationListener listener, in testRun_add_description_IncludeFilter()

12345678910>>...13