Home
last modified time | relevance | path

Searched refs:mTest (Results 1 – 15 of 15) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestResultListenerTest.java37 private TestDescription mTest; field in TestResultListenerTest
50 mTest = new TestDescription("FooTest", "testFoo"); in setUp()
55 mResultListener.testStarted(mTest); in testPassed()
56 mResultListener.testEnded(mTest, Collections.emptyMap()); in testPassed()
57 Truth.assertThat(mResults).containsEntry(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
63 mResultListener.testStarted(mTest); in testFailed()
64 mResultListener.testFailed(mTest, "foo"); in testFailed()
65 mResultListener.testEnded(mTest, Collections.emptyMap()); in testFailed()
68 Truth.assertThat(mResults).containsEntry(mTest, result); in testFailed()
76 mResultListener.testStarted(mTest); in missingTestEnded()
[all …]
DCountingTestResultListenerTest.java32 private TestDescription mTest; field in CountingTestResultListenerTest
37 mTest = new TestDescription("FooTest", "testFoo"); in setUp()
42 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
50 mResultListener.testResult(mTest, createTestResult(TestStatus.FAILURE)); in testFailed()
58 mResultListener.testResult(mTest, createTestResult(TestStatus.INCOMPLETE)); in duplicateResults()
60 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in duplicateResults()
69 mResultListener.testResult(mTest, createTestResult(TestStatus.INCOMPLETE)); in hasFailedTests()
71 mResultListener.testResult(mTest, createTestResult(TestStatus.FAILURE)); in hasFailedTests()
73 mResultListener.testResult(mTest, createTestResult(TestStatus.ASSUMPTION_FAILURE)); in hasFailedTests()
75 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in hasFailedTests()
DConsoleResultReporterTest.java42 private TestDescription mTest; field in ConsoleResultReporterTest
48 mTest = new TestDescription("FooTest", "testFoo"); in setUp()
55 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
62 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed_suppressedPassed()
70 mResultReporter.testResult(mTest, result); in testFailed()
81 mResultReporter.testResult(mTest, result); in testFailed_suppressPassed()
89 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testSummary()
DPassingTestFileReporterTest.java40 private TestDescription mTest; field in PassingTestFileReporterTest
49 mTest = new TestDescription("FooTest", "testFoo"); in setUp()
60 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.PASSED)); in testPassed()
69 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.FAILURE)); in testFailed()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJarHostTestTest.java67 private HostTest mTest; field in JarHostTestTest
75 mTest = new HostTest(); in setUp()
78 OptionSetter setter = new OptionSetter(mTest); in setUp()
137 mTest = new HostTestLoader(testJar); in testSplit_withJar()
138 mTest.setBuild(mStubBuildInfo); in testSplit_withJar()
140 mTest.setDevice(device); in testSplit_withJar()
141 OptionSetter setter = new OptionSetter(mTest); in testSplit_withJar()
145 mTest.setTestInformation(mTestInfo); in testSplit_withJar()
146 assertEquals(238, mTest.countTestCases()); in testSplit_withJar()
148 List<IRemoteTest> tests = new ArrayList<>(mTest.split(5, mTestInfo)); in testSplit_withJar()
[all …]
DFakeTestTest.java44 private FakeTest mTest = null; field in FakeTestTest
53 mTest = new FakeTest(); in setUp()
54 mOption = new OptionSetter(mTest); in setUp()
61 assertEquals(55, mTest.toIntOrDefault(null, 55)); in testIntOrDefault()
62 assertEquals(45, mTest.toIntOrDefault("45", 55)); in testIntOrDefault()
63 assertEquals(-13, mTest.toIntOrDefault("-13", 55)); in testIntOrDefault()
65 mTest.toIntOrDefault("thirteen", 55); in testIntOrDefault()
84 assertEquals(output, mTest.decodeRle(input)); in testDecodeRle()
90 mTest.decodeRle(error); in testDecodeRle()
123 assertEquals(output, mTest.decode(input)); in testDecode()
[all …]
DUsbResetTestTest.java45 private UsbResetTest mTest; field in UsbResetTestTest
57 mTest = in setUp()
76 mTest.run(mTestInfo, null); in testReset()
89 mTest.run(mTestInfo, null); in testReset_recovery()
101 mTest.run(mTestInfo, null); in testReset_noDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DDeviceParameterizedRunnerTest.java90 private HostTest mTest; field in DeviceParameterizedRunnerTest
101 mTest = new HostTest(); in setUp()
102 mTest.setDevice(mDevice); in setUp()
103 mTest.setBuild(mBuild); in setUp()
104 OptionSetter setter = new OptionSetter(mTest); in setUp()
116 OptionSetter setter = new OptionSetter(mTest); in testRun()
138 mTest.run(mTestInfo, mListener); in testRun()
145 OptionSetter setter = new OptionSetter(mTest); in testRun_collectOnly()
147 mTest.setCollectTestsOnly(true); in testRun_collectOnly()
168 mTest.run(mTestInfo, mListener); in testRun_collectOnly()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DHostStatsdMetricCollectorTest.java67 private TestDescription mTest = new TestDescription("Foo", "Bar"); field in HostStatsdMetricCollectorTest
94 mCollector.testStarted(mTest); in testCollect_perTest()
95 mCollector.testEnded(mTest, mMetrics); in testCollect_perTest()
96 mCollector.testStarted(mTest); in testCollect_perTest()
97 mCollector.testEnded(mTest, mMetrics); in testCollect_perTest()
117 mCollector.testStarted(mTest); in testCollect_testFail()
118 mCollector.testFailed(mTest, "Test Failed"); in testCollect_testFail()
119 mCollector.testEnded(mTest, mMetrics); in testCollect_testFail()
120 mCollector.testStarted(mTest); in testCollect_testFail()
121 mCollector.testEnded(mTest, mMetrics); in testCollect_testFail()
[all …]
DLogcatTimingMetricCollectorTest.java67 private TestDescription mTest; field in LogcatTimingMetricCollectorTest
73 mTest = new TestDescription("HelloTest", "testDrive"); in setup()
96 mCollector.testStarted(mTest); in testCollect_oneDevice_perRun()
97 mCollector.testEnded(mTest, metrics); in testCollect_oneDevice_perRun()
131 mCollector.testStarted(mTest); in testCollect_multipleDevice_perRun()
132 mCollector.testEnded(mTest, metrics); in testCollect_multipleDevice_perRun()
155 mCollector.testStarted(mTest); in testCollect_onDevice_twoTests()
156 mCollector.testEnded(mTest, metrics); in testCollect_onDevice_twoTests()
166 mCollector.testStarted(mTest); in testCollect_onDevice_twoTests()
167 mCollector.testEnded(mTest, metrics); in testCollect_onDevice_twoTests()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java68 private PythonBinaryHostTest mTest; field in PythonBinaryHostTestTest
84 mTest = in setUp()
118 OptionSetter setter = new OptionSetter(mTest); in testRun()
142 mTest.run(mTestInfo, mMockListener); in testRun()
154 OptionSetter setter = new OptionSetter(mTest); in testRun_failWithIncludeFilters()
156 mTest.addIncludeFilter("test1"); in testRun_failWithIncludeFilters()
178 mTest.run(mTestInfo, mMockListener); in testRun_failWithIncludeFilters()
193 OptionSetter setter = new OptionSetter(mTest); in testRun_withIncludeFilters()
195 mTest.addIncludeFilter("__main__.Class1#test_1"); in testRun_withIncludeFilters()
240 mTest.run(mTestInfo, mMockListener); in testRun_withIncludeFilters()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DSuiteTestFilter.java28 private final String mTest; field in SuiteTestFilter
83 mTest = test; in SuiteTestFilter()
106 if (mTest != null) { in toString()
108 sb.append(mTest.trim()); in toString()
138 return mTest; in getTest()
DGranularRetriableTestWrapper.java74 private IRemoteTest mTest; field in GranularRetriableTestWrapper
97 mTest = test; in GranularRetriableTestWrapper()
229 mTest, 0, mMainGranularRunListener.getTestRunForAttempts(0))) { in run()
243 mTest, in run()
271 if (mTest instanceof IMetricCollectorReceiver) { in intraModuleRun()
272 ((IMetricCollectorReceiver) mTest).setMetricCollectors(clonedCollectors); in intraModuleRun()
274 mTest.run(testInfo, runListener); in intraModuleRun()
286 mTest.run(testInfo, runListener); in intraModuleRun()
289 CLog.e("Module '%s' - test '%s' threw exception:", mModuleId, mTest.getClass()); in intraModuleRun()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryHostTestTest.java42 private RustBinaryHostTest mTest; field in RustBinaryHostTestTest
54 mTest = in setUp()
61 mTest.setBuild(mMockBuildInfo); in setUp()
117 mTest.run(mTestInfo, mMockListener); in callReplayRunVerify()
126 OptionSetter setter = new OptionSetter(mTest); in testRun()
148 mTest.setBuild(mMockBuildInfo); in testRun_withAdbPath()
152 OptionSetter setter = new OptionSetter(mTest); in testRun_withAdbPath()
172 OptionSetter setter = new OptionSetter(mTest); in testRunFail_exception()
191 OptionSetter setter = new OptionSetter(mTest); in testRunFail_list()
226 OptionSetter setter = new OptionSetter(mTest); in testRunFail_failureOnly()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/
DRetryReschedulerTest.java58 private RetryRescheduler mTest; field in RetryReschedulerTest
73 mTest = new RetryRescheduler(); in setUp()
90 mTest.setConfiguration(mTopConfiguration); in setUp()
91 mTest.setRescheduler(mMockRescheduler); in setUp()
92 mTest.setConfigurationFactory(mMockFactory); in setUp()
128 mTest.run(null, null); in testReschedule_onlyPassTests()
172 mTest.run(null, null); in testReschedule_carryShardCount()
209 mTest.run(null, null); in testReschedule_someFailedTests()
248 mTest.run(null, null); in testReschedule_someAssumptionFailures()
287 mTest.run(null, null); in testReschedule_mixedFailedAssumptionFailures()
[all …]