Home
last modified time | relevance | path

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

12345678910>>...14

/tools/tradefederation/core/src/com/android/tradefed/result/
DResultForwarder.java31 public class ResultForwarder implements ITestInvocationListener {
33 private List<ITestInvocationListener> mListeners;
48 public ResultForwarder(List<ITestInvocationListener> listeners) { in ResultForwarder()
57 public ResultForwarder(ITestInvocationListener... listeners) { in ResultForwarder()
66 protected void setListeners(List<ITestInvocationListener> listeners) { in setListeners()
75 protected void setListeners(ITestInvocationListener... listeners) { in setListeners()
84 protected List<ITestInvocationListener> getListeners() { in getListeners()
93 for (ITestInvocationListener listener : mListeners) { in invocationStarted()
110 for (ITestInvocationListener listener : mListeners) { in invocationFailed()
125 for (ITestInvocationListener listener : mListeners) { in invocationFailed()
[all …]
DJUnitToInvocationResultForwarder.java43 private final List<ITestInvocationListener> mInvocationListeners;
46 public JUnitToInvocationResultForwarder(ITestInvocationListener invocationListener) { in JUnitToInvocationResultForwarder()
47 mInvocationListeners = new ArrayList<ITestInvocationListener>(1); in JUnitToInvocationResultForwarder()
51 public JUnitToInvocationResultForwarder(List<ITestInvocationListener> invocationListeners) { in JUnitToInvocationResultForwarder()
52 mInvocationListeners = new ArrayList<ITestInvocationListener>(invocationListeners.size()); in JUnitToInvocationResultForwarder()
61 for (ITestInvocationListener listener : mInvocationListeners) { in addError()
71 for (ITestInvocationListener listener : mInvocationListeners) { in addFailure()
93 for (ITestInvocationListener listener : mInvocationListeners) { in endTest()
115 for (ITestInvocationListener listener : mInvocationListeners) { in testLog()
125 for (ITestInvocationListener listener : mInvocationListeners) { in startTest()
DResultAndLogForwarder.java27 public ResultAndLogForwarder(List<ITestInvocationListener> listeners) { in ResultAndLogForwarder()
31 public ResultAndLogForwarder(ITestInvocationListener... listeners) { in ResultAndLogForwarder()
49 for (ITestInvocationListener listener : getListeners()) { in testLogSaved()
63 for (ITestInvocationListener listener : getListeners()) { in logAssociation()
78 for (ITestInvocationListener listener : getListeners()) { in setLogSaver()
DLogSaverResultForwarder.java40 List<ITestInvocationListener> listeners) { in LogSaverResultForwarder()
43 for (ITestInvocationListener listener : listeners) { in LogSaverResultForwarder()
83 List<ITestInvocationListener> listeners, in logFile()
91 for (ITestInvocationListener listener : listeners) { in logFile()
109 List<ITestInvocationListener> listeners, ILogSaver saver, String name) { in reportEndHostLog()
171 for (ITestInvocationListener listener : getListeners()) { in testLog()
200 for (ITestInvocationListener listener : getListeners()) { in testLogSaved()
215 for (ITestInvocationListener listener : getListeners()) { in logAssociation()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGTestResultParserTest.java26 import com.android.tradefed.result.ITestInvocationListener;
45 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile()
65 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFileNoTimes()
87 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseNoTests()
101 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseLargerFile()
123 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithFailures()
150 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithErrors()
172 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseNonAlignedTag()
196 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_AltFormat()
218 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_LinkError()
[all …]
DDeviceTestCaseTest.java27 import com.android.tradefed.result.ITestInvocationListener;
112 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_suite()
138 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_includeFilter()
161 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_excludeFilter()
182 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_includeAnnotationFiltering()
199 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_checkAnnotation()
226 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_excludeAnnotationFiltering()
245 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_singleTest()
265 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_deviceNotAvail()
290 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testRun_testcaseCollectMode()
[all …]
DGoogleBenchmarkResultParserTest.java27 import com.android.tradefed.result.ITestInvocationListener;
94 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParseSimpleFile()
150 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParseSimpleFile_twoTests()
178 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_contextError()
193 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_noBenchmarkResults()
208 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_benchmarkError()
231 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testJsonParse()
248 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParseSimpleFile_withWarning()
275 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_ignore()
307 ITestInvocationListener mMockInvocationListener = mock(ITestInvocationListener.class); in testParse_aborted()
[all …]
DGTestXmlResultParserTest.java25 import com.android.tradefed.result.ITestInvocationListener;
88 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile()
117 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseLargerFile()
147 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithFailures()
179 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithEmptyFile()
201 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseUnexpectedNumberTest()
234 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_badXmltag()
273 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseWithEmptyFile_AdditionalOutput()
295 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleFile_skipped()
DGTestListTestParserTest.java27 import com.android.tradefed.result.ITestInvocationListener;
47 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleList()
68 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseMultiClassList()
88 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseMalformedList()
103 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseSimpleList_withSpecialChar()
139 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParseParameterized()
DMockInstrumentationTest.java21 import com.android.tradefed.result.ITestInvocationListener;
28 private ITestInvocationListener mListener = null;
33 public void run(TestInformation testInfo, final ITestInvocationListener listener) in run()
41 public ITestInvocationListener getListener() { in getListener()
/tools/tradefederation/core/javatests/com/android/tradefed/device/helper/
DTelephonyHelperTest.java28 import com.android.tradefed.result.ITestInvocationListener;
60 Mockito.any(), (ITestInvocationListener) Mockito.any())) in testGetSimInfo()
63 ITestInvocationListener collector = in testGetSimInfo()
64 (ITestInvocationListener) invocation.getArguments()[1]; in testGetSimInfo()
99 Mockito.any(), (ITestInvocationListener) Mockito.any())) in testGetSimInfo_instrumentationFailed()
102 ITestInvocationListener collector = in testGetSimInfo_instrumentationFailed()
103 (ITestInvocationListener) invocation.getArguments()[1]; in testGetSimInfo_instrumentationFailed()
119 Mockito.any(), (ITestInvocationListener) Mockito.any())) in testGetSimInfo_simTest_not_run()
122 ITestInvocationListener collector = in testGetSimInfo_simTest_not_run()
123 (ITestInvocationListener) invocation.getArguments()[1]; in testGetSimInfo_simTest_not_run()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBenchmarkResultParser.java21 import com.android.tradefed.result.ITestInvocationListener;
70 private Collection<ITestInvocationListener> mListeners = new ArrayList<>();
92 public RustBenchmarkResultParser(ITestInvocationListener listener, String runName) { in RustBenchmarkResultParser()
104 Collection<ITestInvocationListener> listeners, String runName) { in RustBenchmarkResultParser()
122 for (ITestInvocationListener listener : mListeners) { in processNewLines()
130 for (ITestInvocationListener listener : mListeners) { in processNewLines()
138 for (ITestInvocationListener listener : mListeners) { in processNewLines()
160 for (ITestInvocationListener listener : mListeners) { in done()
169 for (ITestInvocationListener listener : mListeners) { in done()
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/
DBazelTestListener.java19 import com.android.tradefed.result.ITestInvocationListener;
36 private final ITestInvocationListener mDelegate;
37 private final ImmutableList<Consumer<ITestInvocationListener>> mExtraModuleLogCalls;
42 ITestInvocationListener delegate, in BazelTestListener()
43 List<Consumer<ITestInvocationListener>> extraModuleLogCalls, in BazelTestListener()
52 protected ITestInvocationListener delegate() { in delegate()
99 for (Consumer<ITestInvocationListener> c : mExtraModuleLogCalls) { in replayExtraModuleLogCalls()
DInvocationLogCollector.java21 import com.android.tradefed.result.ITestInvocationListener;
32 private final List<Consumer<ITestInvocationListener>> mLogCalls;
39 public List<Consumer<ITestInvocationListener>> getLogCalls() { in getLogCalls()
49 (ITestInvocationListener l) -> { in testLog()
72 (ITestInvocationListener l) -> { in testLogSaved()
83 (ITestInvocationListener l) -> { in logAssociation()
DSparseTestListener.java19 import com.android.tradefed.result.ITestInvocationListener;
24 private final ITestInvocationListener mDelegate;
26 public SparseTestListener(ITestInvocationListener delegate) { in SparseTestListener()
30 private ITestInvocationListener delegate() { in delegate()
DTestListeners.java20 import com.android.tradefed.result.ITestInvocationListener;
33 ITestInvocationListener listener, in testLogSaved()
46 static void logAssociation(ITestInvocationListener listener, String dataName, LogFile logFile) { in logAssociation()
54 static void setLogSaver(ITestInvocationListener listener, ILogSaver logSaver) { in setLogSaver()
62 static boolean supportGranularResults(ITestInvocationListener listener) { in supportGranularResults()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestXmlResultParser.java21 import com.android.tradefed.result.ITestInvocationListener;
59 private final Collection<ITestInvocationListener> mTestListeners;
74 public GTestXmlResultParser(String testRunName, Collection<ITestInvocationListener> listeners) { in GTestXmlResultParser()
86 public GTestXmlResultParser(String testRunName, ITestInvocationListener listener) { in GTestXmlResultParser()
110 for (ITestInvocationListener listener : mTestListeners) { in parseResult()
143 for (ITestInvocationListener listener : mTestListeners) { in parseResult()
149 for (ITestInvocationListener listener : mTestListeners) { in parseResult()
164 for (ITestInvocationListener listener : mTestListeners) { in reportTestRunStarted()
196 for (ITestInvocationListener listener : mTestListeners) { in processTestResult()
201 for (ITestInvocationListener listener : mTestListeners) { in processTestResult()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java34 import com.android.tradefed.result.ITestInvocationListener;
92 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_randomEvents()
131 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_invalidEventOrder()
167 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_testNotStarted()
205 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_noTimeStamp()
247 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_invocationFailed()
279 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParser_receiveFromSocket()
324 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParser_failToJoin()
339 ITestInvocationListener listener = mock(ITestInvocationListener.class); in testParser_noConnection()
355 ITestInvocationListener mockRunListener = mock(ITestInvocationListener.class); in testParse_testTag()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTestTest.java43 import com.android.tradefed.result.ITestInvocationListener;
154 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withPythonBinariesOption()
166 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withPythonBinariesOption_binaryNotFound()
195 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withParFileNameOption()
209 ITestInvocationListener mockListener = Mockito.mock(ITestInvocationListener.class); in testRun_withParFileNameOption_binaryNotFound()
244 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_withStdLogOption()
265 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_testResultIsMissing()
307 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet()
337 mSpyTest.run(mTestInfo, Mockito.mock(ITestInvocationListener.class)); in testRun_shouldNotActivateVenv_whenVenvIsNotSet()
362 ITestInvocationListener mockListener = Mockito.mock(ITestInvocationListener.class); in testRun_exitSuccess_withTestResultFileComplete()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/service/management/
DScheduledInvocationForwarder.java23 import com.android.tradefed.result.ITestInvocationListener;
32 ScheduledInvocationForwarder(ITestInvocationListener... listeners) { in ScheduledInvocationForwarder()
38 for (ITestInvocationListener listener : getListeners()) { in invocationInitiated()
55 for (ITestInvocationListener listener : getListeners()) { in invocationComplete()
71 public List<ITestInvocationListener> getListeners() { in getListeners()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DInvocationSummaryHelper.java33 List<ITestInvocationListener> listeners, IInvocationContext context) { in reportInvocationStarted()
35 for (ITestInvocationListener listener : listeners) { in reportInvocationStarted()
58 public static void reportInvocationEnded(List<ITestInvocationListener> listeners, in reportInvocationEnded()
61 for (ITestInvocationListener listener : listeners) { in reportInvocationEnded()
89 for (ITestInvocationListener listener : listeners) { in reportInvocationEnded()
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DUnexecutedTestReporterThreadTest.java21 import com.android.tradefed.result.ITestInvocationListener;
40 private ITestInvocationListener mMockListener;
46 mMockListener = Mockito.mock(ITestInvocationListener.class); in setUp()
82 public void run(TestInformation testInfo, ITestInvocationListener listener) in run()
86 public void reportNotExecuted(ITestInvocationListener listener) { in reportNotExecuted()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DIReportNotExecuted.java18 import com.android.tradefed.result.ITestInvocationListener;
34 public default void reportNotExecuted(ITestInvocationListener listener) {} in reportNotExecuted()
43 public default void reportNotExecuted(ITestInvocationListener listener, String message) { in reportNotExecuted()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapper.java38 import com.android.tradefed.result.ITestInvocationListener;
96 private List<ITestInvocationListener> mModuleLevelListeners;
97 private ITestInvocationListener mRemoteTestTimeOutEnforcer;
110 ITestInvocationListener mainListener, in GranularRetriableTestWrapper()
111 List<ITestInvocationListener> moduleLevelListeners, in GranularRetriableTestWrapper()
119 ITestInvocationListener mainListener, in GranularRetriableTestWrapper()
120 List<ITestInvocationListener> moduleLevelListeners, in GranularRetriableTestWrapper()
204 ITestInvocationListener listener, IInvocationContext moduleContext) { in initializeGranularRunListener()
233 private ITestInvocationListener initializeListeners() throws DeviceNotAvailableException { in initializeListeners()
234 List<ITestInvocationListener> currentTestListener = new ArrayList<>(); in initializeListeners()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DIPostProcessor.java20 import com.android.tradefed.result.ITestInvocationListener;
36 public interface IPostProcessor extends ITestInvocationListener, ILogSaverListener, IDisableable {
42 public ITestInvocationListener init(ITestInvocationListener listener); in init()

12345678910>>...14