/tools/tradefederation/core/tests/src/com/android/tradefed/retry/ |
D | ResultAggregatorTest.java | 101 TestDescription test2 = new TestDescription("classname", "test2"); in testForwarding() local 126 mDetailedListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testForwarding() 128 mDetailedListener.testFailed(test2, FailureDescription.create("I failed. retry me.")); in testForwarding() 131 EasyMock.eq(test2), in testForwarding() 139 mDetailedListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testForwarding() 141 EasyMock.eq(test2), in testForwarding() 157 mAggListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testForwarding() 161 EasyMock.eq(test2), in testForwarding() 189 mAggregator.testStarted(test2); in testForwarding() 191 mAggregator.testFailed(test2, FailureDescription.create("I failed. retry me.")); in testForwarding() [all …]
|
D | BaseRetryDecisionTest.java | 266 TestDescription test2 = new TestDescription("class", "method2"); in createResult() local 267 result.testStarted(test2); in createResult() 269 result.testFailed(test2, failure2); in createResult() 271 result.testEnded(test2, new HashMap<String, Metric>()); in createResult()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstrumentationFileTestTest.java | 169 final TestDescription test2 = new TestDescription("ClassFoo2", "methodBar2"); in testRun_reRunOneFailedToCompleteTest() local 172 testsList.add(test2); in testRun_reRunOneFailedToCompleteTest() 188 listener.testStarted(TestDescription.convertToIdentifier(test2)); in testRun_reRunOneFailedToCompleteTest() 207 listener.testStarted(TestDescription.convertToIdentifier(test2)); in testRun_reRunOneFailedToCompleteTest() 209 TestDescription.convertToIdentifier(test2), Collections.emptyMap()); in testRun_reRunOneFailedToCompleteTest() 243 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testRun_reRunOneFailedToCompleteTest() 252 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testRun_reRunOneFailedToCompleteTest() 254 EasyMock.eq(test2), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testRun_reRunOneFailedToCompleteTest() 269 final TestDescription test2 = new TestDescription("ClassFoo2", "methodBar2"); in testRun_serialReRunOfTwoFailedToCompleteTests() local 271 testsList.add(test2); in testRun_serialReRunOfTwoFailedToCompleteTests() [all …]
|
D | HostTestTest.java | 617 TestDescription test2 = new TestDescription(SuccessTestCase.class.getName(), "testPass2"); in testRun_testcase() local 621 mListener.testStarted(EasyMock.eq(test2)); in testRun_testcase() 622 mListener.testEnded(EasyMock.eq(test2), (HashMap<String, Metric>) EasyMock.anyObject()); in testRun_testcase() 636 TestDescription test2 = in testRun_MetricTestCase() local 645 mListener.testStarted(EasyMock.eq(test2)); in testRun_MetricTestCase() 648 mListener.testEnded(test2, TfMetricProtoUtil.upgradeConvert(metric2)); in testRun_MetricTestCase() 662 TestDescription test2 = new TestDescription(LogMetricTestCase.class.getName(), "testPass2"); in testRun_LogMetricTestCase() local 668 mListener.testStarted(EasyMock.eq(test2)); in testRun_LogMetricTestCase() 673 mListener.testEnded(test2, TfMetricProtoUtil.upgradeConvert(metric2)); in testRun_LogMetricTestCase() 694 TestDescription test2 = in testRun_MetricTestCase_withOption() local [all …]
|
D | GTestTest.java | 147 final String test2 = "test2"; in testRun() local 149 final String testPath2 = String.format("%s/%s", nativeTestPath, test2); in testRun() 152 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun() 171 EasyMock.contains(test2), in testRun() 187 final String test2 = "arm64/test2"; in testRunFilterAbiPath() local 188 final String testPath2 = String.format("%s/%s", nativeTestPath, test2); in testRunFilterAbiPath() 189 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRunFilterAbiPath() 207 EasyMock.contains(test2), in testRunFilterAbiPath() 463 final String test2 = "test2"; in testRunXml() local 465 final String testPath2 = String.format("%s/%s", nativeTestPath, test2); in testRunXml() [all …]
|
D | DeviceTestCaseTest.java | 53 public void test2() {} in test2() method in DeviceTestCaseTest.MockTest 62 public void test2() {} in test2() method in DeviceTestCaseTest.MockAnnotatedTest 76 public void test2() {} in test2() method in DeviceTestCaseTest.DuplicateTest 118 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() local 123 listener.testStarted(test2); in testRun_suite() 124 listener.testEnded(test2, new HashMap<String, Metric>()); in testRun_suite() 164 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_excludeFilter() local 165 listener.testStarted(test2); in testRun_excludeFilter() 166 listener.testEnded(test2, new HashMap<String, Metric>()); in testRun_excludeFilter() 340 final TestDescription test2 = new TestDescription(DuplicateTest.class.getName(), "test2"); in testRun_duplicateName() local [all …]
|
D | GoogleBenchmarkTestTest.java | 106 final String test2 = "test2"; in testRun() local 107 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun() 118 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun() 136 mMockInvocationListener.testRunStarted(test2, 2); in testRun() 188 final String test2 = "test2"; in testRun_withModuleName() local 189 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun_withModuleName() 200 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun_withModuleName() 216 mMockInvocationListener.testRunStarted(test2, 2); in testRun_withModuleName()
|
D | DeviceSuiteTest.java | 177 TestDescription test2 = in testRunDeviceSuite() local 181 mListener.testStarted(EasyMock.eq(test2)); in testRunDeviceSuite() 182 mListener.testEnded(EasyMock.eq(test2), EasyMock.eq(new HashMap<String, Metric>())); in testRunDeviceSuite() 225 TestDescription test2 = in testRun_withOption() local 232 mListener.testStarted(EasyMock.eq(test2)); in testRun_withOption() 233 mListener.testEnded(EasyMock.eq(test2), EasyMock.eq(new HashMap<String, Metric>())); in testRun_withOption()
|
D | DeviceTestSuiteTest.java | 46 public void test2() {} in test2() method in DeviceTestSuiteTest.MockTest 75 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() local 80 listener.testStarted(test2); in testRun_suite() 81 listener.testEnded(test2, new HashMap<String, Metric>()); in testRun_suite()
|
D | GTestListTestParserTest.java | 120 TestDescription test2 = in testParseSimpleList_withSpecialChar() local 124 mockRunListener.testStarted(test2); in testParseSimpleList_withSpecialChar() 126 EasyMock.eq(test2), EasyMock.<HashMap<String, Metric>>anyObject()); in testParseSimpleList_withSpecialChar()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 144 TestDescription test2 = new TestDescription("class1", "test2"); in testEvents() local 160 mMockListener.testStarted(test2, 11L); in testEvents() 161 mMockListener.testFailed(test2, FailureDescription.create("I failed")); in testEvents() 163 mMockListener.testEnded(test2, 60L, metrics); in testEvents() 202 mTestParser.testStarted(test2, 11L); in testEvents() 203 mTestParser.testFailed(test2, "I failed"); in testEvents() 207 mTestParser.testEnded(test2, 60L, metrics); in testEvents() 364 TestDescription test2 = new TestDescription("class1", "test2"); in testEvents_finaleProto() local 379 mMockListener.testStarted(test2, 11L); in testEvents_finaleProto() 380 mMockListener.testFailed(test2, FailureDescription.create("I failed")); in testEvents_finaleProto() [all …]
|
D | StreamProtoResultReporterTest.java | 72 TestDescription test2 = new TestDescription("class1", "test2"); in testStream() local 84 mMockListener.testStarted(test2, 11L); in testStream() 85 mMockListener.testFailed(test2, FailureDescription.create("I failed")); in testStream() 87 EasyMock.eq(test2), in testStream() 105 mReporter.testStarted(test2, 11L); in testStream() 106 mReporter.testFailed(test2, "I failed"); in testStream() 111 mReporter.testEnded(test2, 60L, metrics); in testStream() 164 TestDescription test2 = new TestDescription("class1", "test2"); in testStream_noInvocationReporting() local 174 mMockListener.testStarted(test2, 11L); in testStream_noInvocationReporting() 175 mMockListener.testFailed(test2, FailureDescription.create("I failed")); in testStream_noInvocationReporting() [all …]
|
D | ProtoResultReporterTest.java | 81 TestDescription test2 = new TestDescription("class1", "test2"); in testFinalizeProto() local 82 mReporter.testStarted(test2, 11L); in testFinalizeProto() 83 mReporter.testFailed(test2, "I failed"); in testFinalizeProto() 89 mReporter.testEnded(test2, 60L, metrics); in testFinalizeProto()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 327 TestInfo test2 = new TestInfo("test2", "folder1", false); in testMergeFailByName() local 328 test1.merge(test2); in testMergeFailByName() 338 TestInfo test2 = new TestInfo("test2", "folder1", true); in testMergeFailByHostOnly() local 339 test1.merge(test2); in testMergeFailByHostOnly() 350 TestInfo test2 = new TestInfo("test1", "folder1", false); in testMergeSuccess() local 351 test2.addOption(new TestOption("include-filter", "value")); in testMergeSuccess() 352 test1.merge(test2); in testMergeSuccess() 357 test2 = new TestInfo("test1", "folder1", false); in testMergeSuccess() 359 test1.merge(test2); in testMergeSuccess() 364 test2 = new TestInfo("test1", "folder1", true); in testMergeSuccess() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | CollectingTestListenerTest.java | 105 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 …]
|
D | TestRunResultTest.java | 125 TestDescription test2 = new TestDescription("FooTest2", "testBar2"); in testMultiRun_WithTestCases() local 133 result.testStarted(test2); in testMultiRun_WithTestCases() 134 result.testFailed(test2, "failure"); in testMultiRun_WithTestCases() 136 result.testEnded(test2, new HashMap<String, Metric>()); in testMultiRun_WithTestCases() 149 result.testStarted(test2); in testMultiRun_WithTestCases() 150 result.testEnded(test2, new HashMap<String, Metric>()); in testMultiRun_WithTestCases()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryTestTest.java | 214 final String test2 = "test2"; in testRun() local 216 final String testPath2 = String.format("%s/%s", testPath, test2); in testRun() 217 final String[] files = new String[] {test1, test2}; in testRun() 220 MockFileUtil.setMockDirContents(mMockITestDevice, testPath, test1, test2); in testRun() 236 mockShellCommand(test2); in testRun() 308 final String test2 = "test2"; in testNativeCoverageAllProcesses() local 310 final String testPath2 = String.format("%s/%s", testPath, test2); in testNativeCoverageAllProcesses() 313 MockFileUtil.setMockDirContents(mMockITestDevice, testPath, test1, test2); in testNativeCoverageAllProcesses() 381 mockShellCommand(test2); in testNativeCoverageAllProcesses() 402 final String test2 = "test2"; in testNativeCoverageSpecificProcesses() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessorTest.java | 268 TestDescription test2 = new TestDescription("class", "test2"); in testRunLevelPostProcessing_processRunLogsOnly() local 286 listener.testStarted(test2); in testRunLevelPostProcessing_processRunLogsOnly() 291 listener.testEnded(test2, 0L, new HashMap<String, Metric>()); in testRunLevelPostProcessing_processRunLogsOnly() 442 TestDescription test2 = new TestDescription("class", "test2"); in testPerTestPostProcessing_logToTestAssociation() local 459 listener.testStarted(test2); in testPerTestPostProcessing_logToTestAssociation() 464 listener.testEnded(test2, 0L, new HashMap<String, Metric>()); in testPerTestPostProcessing_logToTestAssociation() 556 TestDescription test2 = new TestDescription("class", "test2"); in testAllTestLogsPostProcessing() local 570 listener.testStarted(test2); in testAllTestLogsPostProcessing() 575 listener.testEnded(test2, 0L, new HashMap<String, Metric>()); in testAllTestLogsPostProcessing() 601 && e.getKey().contains(test2.toString()) in testAllTestLogsPostProcessing()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | JUnitXmlParserTest.java | 71 TestDescription test2 = new TestDescription("PassTest", "testPass2"); in testParse() local 72 mMockListener.testStarted(test2); in testParse() 73 mMockListener.testEnded(test2, new HashMap<String, Metric>()); in testParse() 95 TestDescription test2 = new TestDescription("SkippedTest", "testSkip"); in testParseErrorAndSkipped() local 96 mMockListener.testStarted(test2); in testParseErrorAndSkipped() 97 mMockListener.testIgnored(test2); in testParseErrorAndSkipped() 98 mMockListener.testEnded(test2, new HashMap<String, Metric>()); in testParseErrorAndSkipped()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | LogcatOnFailureCollectorTest.java | 202 TestDescription test2 = new TestDescription("class2", "test2"); in testCollect_multiRun() local 223 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testCollect_multiRun() 224 mMockListener.testFailed(EasyMock.eq(test2), (String) EasyMock.anyObject()); in testCollect_multiRun() 226 EasyMock.eq(test2), in testCollect_multiRun() 250 mTestListener.testStarted(test2); in testCollect_multiRun() 251 mTestListener.testFailed(test2, "I failed"); in testCollect_multiRun() 252 mTestListener.testEnded(test2, new HashMap<String, Metric>()); in testCollect_multiRun()
|
D | BaseDeviceMetricCollectorTest.java | 448 TestDescription test2 = new TestDescription(TestRunAnnotated.class.getName(), "testTwo"); in testActualRunAnnotated_include() local 455 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test2), Mockito.anyLong()); in testActualRunAnnotated_include() 457 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include() 501 TestDescription test2 = new TestDescription(TestRunAnnotated.class.getName(), "testTwo"); in testActualRunAnnotated_exclude() local 508 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test2), Mockito.anyLong()); in testActualRunAnnotated_exclude() 510 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayerTest.java | 192 TestDescription test2 = new TestDescription("test.class", "fail0"); in testReplay_MultiTest() local 198 Entry<TestDescription, TestResult> entry2 = new SimpleEntry<>(test2, result2); in testReplay_MultiTest() 209 mMockListener.testStarted(EasyMock.eq(test2), EasyMock.anyLong()); in testReplay_MultiTest() 210 mMockListener.testFailed(test2, "fail0"); in testReplay_MultiTest() 212 EasyMock.eq(test2), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testReplay_MultiTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteMultiTest.java | 157 TestDescription test2 = in testMultiDeviceITestSuite() local 159 mMockListener.testStarted(test2, 0l); in testMultiDeviceITestSuite() 160 mMockListener.testEnded(test2, 5l, new HashMap<String, Metric>()); in testMultiDeviceITestSuite()
|
/tools/tradefederation/core/atest/unittest_data/test_mapping/folder1/ |
D | test_mapping_sample | 4 "name": "test2"
|
/tools/asuite/atest/unittest_data/test_mapping/folder1/ |
D | test_mapping_sample | 4 "name": "test2"
|