Home
last modified time | relevance | path

Searched refs:test2 (Results 1 – 21 of 21) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationFileTestTest.java157 final TestDescription test2 = new TestDescription("ClassFoo2", "methodBar2"); in testRun_reRunOneFailedToCompleteTest() local
160 testsList.add(test2); in testRun_reRunOneFailedToCompleteTest()
176 listener.testStarted(TestDescription.convertToIdentifier(test2)); in testRun_reRunOneFailedToCompleteTest()
195 listener.testStarted(TestDescription.convertToIdentifier(test2)); in testRun_reRunOneFailedToCompleteTest()
197 TestDescription.convertToIdentifier(test2), Collections.emptyMap()); in testRun_reRunOneFailedToCompleteTest()
231 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testRun_reRunOneFailedToCompleteTest()
240 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testRun_reRunOneFailedToCompleteTest()
242 EasyMock.eq(test2), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testRun_reRunOneFailedToCompleteTest()
256 final TestDescription test2 = new TestDescription("ClassFoo2", "methodBar2"); in testRun_serialReRunOfTwoFailedToCompleteTests() local
258 testsList.add(test2); in testRun_serialReRunOfTwoFailedToCompleteTests()
[all …]
DHostTestTest.java550 TestDescription test2 = new TestDescription(SuccessTestCase.class.getName(), "testPass2");
554 mListener.testStarted(EasyMock.eq(test2));
555 mListener.testEnded(EasyMock.eq(test2), (HashMap<String, Metric>) EasyMock.anyObject());
569 TestDescription test2 =
578 mListener.testStarted(EasyMock.eq(test2));
581 mListener.testEnded(test2, TfMetricProtoUtil.upgradeConvert(metric2));
595 TestDescription test2 = new TestDescription(LogMetricTestCase.class.getName(), "testPass2");
601 mListener.testStarted(EasyMock.eq(test2));
606 mListener.testEnded(test2, TfMetricProtoUtil.upgradeConvert(metric2));
627 TestDescription test2 =
[all …]
DDeviceTestCaseTest.java51 public void test2() {} in test2() method in DeviceTestCaseTest.MockTest
60 public void test2() {} in test2() method in DeviceTestCaseTest.MockAnnotatedTest
74 public void test2() {} in test2() method in DeviceTestCaseTest.DuplicateTest
109 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() local
114 listener.testStarted(test2); in testRun_suite()
115 listener.testEnded(test2, new HashMap<String, Metric>()); in testRun_suite()
155 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_excludeFilter() local
156 listener.testStarted(test2); in testRun_excludeFilter()
157 listener.testEnded(test2, new HashMap<String, Metric>()); in testRun_excludeFilter()
331 final TestDescription test2 = new TestDescription(DuplicateTest.class.getName(), "test2"); in testRun_duplicateName() local
[all …]
DGoogleBenchmarkTestTest.java93 final String test2 = "test2"; in testRun() local
94 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun()
105 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun()
122 mMockInvocationListener.testRunStarted(test2, 2); in testRun()
171 final String test2 = "test2"; in testRun_withModuleName() local
172 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun_withModuleName()
183 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun_withModuleName()
198 mMockInvocationListener.testRunStarted(test2, 2); in testRun_withModuleName()
DDeviceSuiteTest.java169 TestDescription test2 = in testRunDeviceSuite() local
173 mListener.testStarted(EasyMock.eq(test2)); in testRunDeviceSuite()
174 mListener.testEnded(EasyMock.eq(test2), EasyMock.eq(new HashMap<String, Metric>())); in testRunDeviceSuite()
217 TestDescription test2 = in testRun_withOption() local
224 mListener.testStarted(EasyMock.eq(test2)); in testRun_withOption()
225 mListener.testEnded(EasyMock.eq(test2), EasyMock.eq(new HashMap<String, Metric>())); in testRun_withOption()
DGTestTest.java127 final String test2 = "test2"; in testRun() local
129 final String testPath2 = String.format("%s/%s", nativeTestPath, test2); in testRun()
131 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun()
146 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), in testRun()
388 final String test2 = "test2"; in testRunXml() local
390 final String testPath2 = String.format("%s/%s", nativeTestPath, test2); in testRunXml()
392 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRunXml()
408 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), in testRunXml()
DDeviceTestSuiteTest.java44 public void test2() {} in test2() method in DeviceTestSuiteTest.MockTest
66 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() local
71 listener.testStarted(test2); in testRun_suite()
72 listener.testEnded(test2, new HashMap<String, Metric>()); in testRun_suite()
DGTestListTestParserTest.java120 TestDescription test2 = in testParseSimpleList_withSpecialChar() local
124 mockRunListener.testStarted(test2); in testParseSimpleList_withSpecialChar()
126 EasyMock.eq(test2), (HashMap<String, Metric>) EasyMock.anyObject()); in testParseSimpleList_withSpecialChar()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java137 TestDescription test2 = new TestDescription("class1", "test2"); in testEvents() local
153 mMockListener.testStarted(test2, 11L); in testEvents()
154 mMockListener.testFailed(test2, "I failed"); in testEvents()
156 mMockListener.testEnded(test2, 60L, metrics); in testEvents()
178 mTestParser.testStarted(test2, 11L); in testEvents()
179 mTestParser.testFailed(test2, "I failed"); in testEvents()
183 mTestParser.testEnded(test2, 60L, metrics); in testEvents()
254 TestDescription test2 = new TestDescription("class1", "test2"); in testEvents_finaleProto() local
269 mMockListener.testStarted(test2, 11L); in testEvents_finaleProto()
270 mMockListener.testFailed(test2, "I failed"); in testEvents_finaleProto()
[all …]
DStreamProtoResultReporterTest.java69 TestDescription test2 = new TestDescription("class1", "test2"); in testStream() local
81 mMockListener.testStarted(test2, 11L); in testStream()
82 mMockListener.testFailed(test2, "I failed"); in testStream()
84 EasyMock.eq(test2), in testStream()
102 mReporter.testStarted(test2, 11L); in testStream()
103 mReporter.testFailed(test2, "I failed"); in testStream()
108 mReporter.testEnded(test2, 60L, metrics); in testStream()
138 TestDescription test2 = new TestDescription("class1", "test2"); in testStream_noInvocationReporting() local
148 mMockListener.testStarted(test2, 11L); in testStream_noInvocationReporting()
149 mMockListener.testFailed(test2, "I failed"); in testStream_noInvocationReporting()
[all …]
DProtoResultReporterTest.java76 TestDescription test2 = new TestDescription("class1", "test2"); in testFinalizeProto() local
77 mReporter.testStarted(test2, 11L); in testFinalizeProto()
78 mReporter.testFailed(test2, "I failed"); in testFinalizeProto()
84 mReporter.testEnded(test2, 60L, metrics); in testFinalizeProto()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/
DTestMappingTest.java237 TestInfo test2 = new TestInfo("test2", "folder1", false); in testMergeFailByName() local
238 test1.merge(test2); in testMergeFailByName()
248 TestInfo test2 = new TestInfo("test2", "folder1", true); in testMergeFailByHostOnly() local
249 test1.merge(test2); in testMergeFailByHostOnly()
260 TestInfo test2 = new TestInfo("test1", "folder1", false); in testMergeSuccess() local
261 test2.addOption(new TestOption("include-filter", "value")); in testMergeSuccess()
262 test1.merge(test2); in testMergeSuccess()
267 test2 = new TestInfo("test1", "folder1", false); in testMergeSuccess()
269 test1.merge(test2); in testMergeSuccess()
274 test2 = new TestInfo("test1", "folder1", true); in testMergeSuccess()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DCollectingTestListenerTest.java105 final TestDescription test2 = injectTestRun("run2", "testFoo2", METRIC_VALUE2, 0); in testTwoRuns() local
118 assertThat(runResult2.getTestResults().get(test2).getStatus()).isEqualTo(TestStatus.PASSED); in testTwoRuns()
122 assertThat(runResult2.getTestResults().get(test2).getMetrics().get(TEST_KEY)) in testTwoRuns()
130 final TestDescription test2 = injectTestRun("run", "testFoo2", METRIC_VALUE2, 0); in testReRun() local
137 assertThat(runResult.getCompletedTests()).contains(test2); in testReRun()
301 final TestDescription test2 = new TestDescription("FooTest", "testName2"); in testSingleRun_multi() local
302 mCollectingTestListener.testStarted(test2); in testSingleRun_multi()
303 mCollectingTestListener.testEnded(test2, new HashMap<String, Metric>()); in testSingleRun_multi()
319 final TestDescription test2 = new TestDescription("FooTest", "testName2"); in testSingleRun_multi_failureRunFirst() local
320 mCollectingTestListener.testStarted(test2); in testSingleRun_multi_failureRunFirst()
[all …]
DTestRunResultTest.java124 TestDescription test2 = new TestDescription("FooTest2", "testBar2"); in testMultiRun_WithTestCases() local
132 result.testStarted(test2); in testMultiRun_WithTestCases()
133 result.testFailed(test2, "failure"); in testMultiRun_WithTestCases()
135 result.testEnded(test2, new HashMap<String, Metric>()); in testMultiRun_WithTestCases()
148 result.testStarted(test2); in testMultiRun_WithTestCases()
149 result.testEnded(test2, new HashMap<String, Metric>()); in testMultiRun_WithTestCases()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DJUnitXmlParserTest.java70 TestDescription test2 = new TestDescription("PassTest", "testPass2"); in testParse() local
71 mMockListener.testStarted(test2); in testParse()
72 mMockListener.testEnded(test2, new HashMap<String, Metric>()); in testParse()
94 TestDescription test2 = new TestDescription("SkippedTest", "testSkip"); in testParseErrorAndSkipped() local
95 mMockListener.testStarted(test2); in testParseErrorAndSkipped()
96 mMockListener.testIgnored(test2); in testParseErrorAndSkipped()
97 mMockListener.testEnded(test2, new HashMap<String, Metric>()); in testParseErrorAndSkipped()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DLogcatOnFailureCollectorTest.java152 TestDescription test2 = new TestDescription("class2", "test2"); in testCollect_multiRun() local
172 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testCollect_multiRun()
173 mMockListener.testFailed(EasyMock.eq(test2), EasyMock.anyObject()); in testCollect_multiRun()
175 EasyMock.eq(test2), in testCollect_multiRun()
199 mTestListener.testStarted(test2); in testCollect_multiRun()
200 mTestListener.testFailed(test2, "I failed"); in testCollect_multiRun()
201 mTestListener.testEnded(test2, new HashMap<String, Metric>()); in testCollect_multiRun()
DBaseDeviceMetricCollectorTest.java411 TestDescription test2 = new TestDescription(TestRunAnnotated.class.getName(), "testTwo"); in testActualRunAnnotated_include() local
418 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test2), Mockito.anyLong()); in testActualRunAnnotated_include()
420 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include()
459 TestDescription test2 = new TestDescription(TestRunAnnotated.class.getName(), "testTwo"); in testActualRunAnnotated_exclude() local
466 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test2), Mockito.anyLong()); in testActualRunAnnotated_exclude()
468 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayerTest.java177 TestDescription test2 = new TestDescription("test.class", "fail0"); in testReplay_MultiTest() local
183 Entry<TestDescription, TestResult> entry2 = new SimpleEntry<>(test2, result2); in testReplay_MultiTest()
194 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testReplay_MultiTest()
195 mMockListener.testFailed(test2, "fail0"); in testReplay_MultiTest()
197 EasyMock.eq(test2), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testReplay_MultiTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteMultiTest.java154 TestDescription test2 = in testMultiDeviceITestSuite() local
156 mMockListener.testStarted(test2, 0l); in testMultiDeviceITestSuite()
157 mMockListener.testEnded(test2, 5l, new HashMap<String, Metric>()); in testMultiDeviceITestSuite()
/tools/tradefederation/core/atest/unittest_data/test_mapping/folder1/
Dtest_mapping_sample4 "name": "test2"
/tools/tradefederation/core/tests/res/testdata/
Dtest_mapping_117 "name": "test2",