/tools/tradefederation/core/tests/src/com/android/tradefed/retry/ |
D | ResultAggregatorTest.java | 100 TestDescription test1 = new TestDescription("classname", "test1"); in testForwarding() local 120 mDetailedListener.testStarted(EasyMock.eq(test1), EasyMock.anyLong()); in testForwarding() 123 EasyMock.eq(test1), in testForwarding() 151 mAggListener.testStarted(EasyMock.eq(test1), EasyMock.anyLong()); in testForwarding() 154 EasyMock.eq(test1), in testForwarding() 186 mAggregator.testStarted(test1); in testForwarding() 188 mAggregator.testEnded(test1, new HashMap<String, Metric>()); in testForwarding() 216 TestDescription test1 = new TestDescription("classname", "test1"); in testForwarding_runFailure() local 239 mDetailedListener.testStarted(EasyMock.eq(test1), EasyMock.anyLong()); in testForwarding_runFailure() 241 EasyMock.eq(test1), in testForwarding_runFailure() [all …]
|
D | BaseRetryDecisionTest.java | 260 TestDescription test1 = new TestDescription("class", "method"); in createResult() local 261 result.testStarted(test1); in createResult() 263 result.testFailed(test1, failure1); in createResult() 265 result.testEnded(test1, new HashMap<String, Metric>()); in createResult()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | HostTestTest.java | 616 TestDescription test1 = new TestDescription(SuccessTestCase.class.getName(), "testPass"); in testRun_testcase() local 619 mListener.testStarted(EasyMock.eq(test1)); in testRun_testcase() 620 mListener.testEnded(EasyMock.eq(test1), (HashMap<String, Metric>) EasyMock.anyObject()); in testRun_testcase() 635 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase() local 639 mListener.testStarted(EasyMock.eq(test1)); in testRun_MetricTestCase() 643 mListener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metric1)); in testRun_MetricTestCase() 661 TestDescription test1 = new TestDescription(LogMetricTestCase.class.getName(), "testPass"); in testRun_LogMetricTestCase() local 664 mListener.testStarted(EasyMock.eq(test1)); in testRun_LogMetricTestCase() 666 mListener.testEnded(test1, new HashMap<String, Metric>()); in testRun_LogMetricTestCase() 693 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase_withOption() local [all …]
|
D | DeviceTestCaseTest.java | 49 public void test1() { in test1() method in DeviceTestCaseTest.MockTest 60 public void test1() {} in test1() method in DeviceTestCaseTest.MockAnnotatedTest 68 public void test1() { in test1() method in DeviceTestCaseTest.DuplicateTest 69 test1(""); in test1() 72 private void test1(String arg) { in test1() method in DeviceTestCaseTest.DuplicateTest 98 public void test1() throws DeviceNotAvailableException { in test1() method in DeviceTestCaseTest.MockAbortTest 117 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() local 119 listener.testStarted(test1); in testRun_suite() 122 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); in testRun_suite() 142 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_includeFilter() local [all …]
|
D | InstrumentationFileTestTest.java | 168 final TestDescription test1 = new TestDescription("ClassFoo1", "methodBar1"); in testRun_reRunOneFailedToCompleteTest() local 171 testsList.add(test1); in testRun_reRunOneFailedToCompleteTest() 183 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_reRunOneFailedToCompleteTest() 185 TestDescription.convertToIdentifier(test1), Collections.emptyMap()); in testRun_reRunOneFailedToCompleteTest() 238 mMockListener.testStarted(EasyMock.eq(test1), EasyMock.anyLong()); in testRun_reRunOneFailedToCompleteTest() 240 EasyMock.eq(test1), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testRun_reRunOneFailedToCompleteTest() 268 final TestDescription test1 = new TestDescription("ClassFoo1", "methodBar1"); in testRun_serialReRunOfTwoFailedToCompleteTests() local 270 testsList.add(test1); in testRun_serialReRunOfTwoFailedToCompleteTests() 281 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_serialReRunOfTwoFailedToCompleteTests() 298 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_serialReRunOfTwoFailedToCompleteTests() [all …]
|
D | GTestTest.java | 146 final String test1 = "test1"; in testRun() local 148 final String testPath1 = String.format("%s/%s", nativeTestPath, test1); in testRun() 152 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun() 165 EasyMock.contains(test1), in testRun() 186 final String test1 = "arm/test1"; in testRunFilterAbiPath() local 189 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRunFilterAbiPath() 248 final String test1 = "test1"; in testRun_nested() local 252 FileListingService.FILE_SEPARATOR, test1); in testRun_nested() 253 MockFileUtil.setMockDirPath(mMockITestDevice, nativeTestPath, subFolderName, test1); in testRun_nested() 462 final String test1 = "test1"; in testRunXml() local [all …]
|
D | GoogleBenchmarkTestTest.java | 105 final String test1 = "test1"; in testRun() local 107 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun() 116 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun() 132 mMockInvocationListener.testRunStarted(test1, 3); in testRun() 187 final String test1 = "test1"; in testRun_withModuleName() local 189 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun_withModuleName() 198 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withModuleName() 212 mMockInvocationListener.testRunStarted(test1, 3); in testRun_withModuleName() 234 final String test1 = "test1"; in testRun_withRunReportName() local 237 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1); in testRun_withRunReportName() [all …]
|
D | DeviceSuiteTest.java | 175 TestDescription test1 = in testRunDeviceSuite() local 179 mListener.testStarted(EasyMock.eq(test1)); in testRunDeviceSuite() 180 mListener.testEnded(EasyMock.eq(test1), EasyMock.eq(new HashMap<String, Metric>())); in testRunDeviceSuite() 204 TestDescription test1 = in testRun_withFiltering() local 206 mListener.testStarted(EasyMock.eq(test1)); in testRun_withFiltering() 207 mListener.testEnded(EasyMock.eq(test1), EasyMock.eq(new HashMap<String, Metric>())); in testRun_withFiltering() 223 TestDescription test1 = in testRun_withOption() local 227 mListener.testStarted(EasyMock.eq(test1)); in testRun_withOption() 231 EasyMock.eq(test1), EasyMock.eq(TfMetricProtoUtil.upgradeConvert(expected))); in testRun_withOption() 248 TestDescription test1 = in testRunDeviceSuite_junit3() local [all …]
|
D | DeviceTestSuiteTest.java | 42 public void test1() { in test1() method in DeviceTestSuiteTest.MockTest 54 public void test1() throws DeviceNotAvailableException { in test1() method in DeviceTestSuiteTest.MockAbortTest 74 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() local 76 listener.testStarted(test1); in testRun_suite() 79 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); in testRun_suite() 98 final TestDescription test1 = new TestDescription(MockAbortTest.class.getName(), "test1"); in testRun_deviceNotAvail() local 100 listener.testStarted(test1); in testRun_deviceNotAvail() 101 listener.testFailed(EasyMock.eq(test1), in testRun_deviceNotAvail() 103 listener.testEnded(test1, new HashMap<String, Metric>()); in testRun_deviceNotAvail()
|
D | DeviceJUnit4ClassRunnerTest.java | 127 TestDescription test1 = new TestDescription(Junit4TestClass.class.getName(), "testPass"); in testDynamicDownload() local 129 mListener.testStarted(EasyMock.eq(test1)); in testDynamicDownload() 130 mListener.testEnded(EasyMock.eq(test1), EasyMock.<HashMap<String, Metric>>anyObject()); in testDynamicDownload()
|
D | GTestListTestParserTest.java | 112 TestDescription test1 = in testParseSimpleList_withSpecialChar() local 116 mockRunListener.testStarted(test1); in testParseSimpleList_withSpecialChar() 118 EasyMock.eq(test1), EasyMock.<HashMap<String, Metric>>anyObject()); in testParseSimpleList_withSpecialChar()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 326 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeFailByName() local 328 test1.merge(test2); in testMergeFailByName() 337 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeFailByHostOnly() local 339 test1.merge(test2); in testMergeFailByHostOnly() 349 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeSuccess() local 352 test1.merge(test2); in testMergeSuccess() 353 assertTrue(test1.getOptions().isEmpty()); in testMergeSuccess() 354 assertFalse(test1.getHostOnly()); in testMergeSuccess() 356 test1 = new TestInfo("test1", "folder1", false); in testMergeSuccess() 358 test1.addOption(new TestOption("include-filter", "value")); in testMergeSuccess() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 143 TestDescription test1 = new TestDescription("class1", "test1"); in testEvents() local 157 mMockListener.testStarted(test1, 5L); in testEvents() 158 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testEvents() 199 mTestParser.testStarted(test1, 5L); in testEvents() 200 mTestParser.testEnded(test1, 10L, new HashMap<String, Metric>()); in testEvents() 328 TestDescription test1 = new TestDescription("class1", "test1"); in testRunFail_interleavedWithTest() local 335 mMockListener.testStarted(test1, 5L); in testRunFail_interleavedWithTest() 336 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testRunFail_interleavedWithTest() 349 mTestParser.testStarted(test1, 5L); in testRunFail_interleavedWithTest() 353 mTestParser.testEnded(test1, 10L, new HashMap<String, Metric>()); in testRunFail_interleavedWithTest() [all …]
|
D | StreamProtoResultReporterTest.java | 71 TestDescription test1 = new TestDescription("class1", "test1"); in testStream() local 81 mMockListener.testStarted(test1, 5L); in testStream() 82 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream() 102 mReporter.testStarted(test1, 5L); in testStream() 103 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream() 163 TestDescription test1 = new TestDescription("class1", "test1"); in testStream_noInvocationReporting() local 171 mMockListener.testStarted(test1, 5L); in testStream_noInvocationReporting() 172 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream_noInvocationReporting() 190 mReporter.testStarted(test1, 5L); in testStream_noInvocationReporting() 191 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream_noInvocationReporting()
|
D | FileProtoResultReporterTest.java | 100 TestDescription test1 = new TestDescription("class1", "test1"); in testWriteResults_periodic() local 107 mReporter.testStarted(test1); in testWriteResults_periodic() 108 mReporter.testEnded(test1, new HashMap<String, Metric>()); in testWriteResults_periodic() 115 mReporter.testStarted(test1); in testWriteResults_periodic() 116 mReporter.testEnded(test1, new HashMap<String, Metric>()); in testWriteResults_periodic() 130 mMockListener.testStarted(EasyMock.eq(test1), EasyMock.anyLong()); in testWriteResults_periodic() 132 EasyMock.eq(test1), in testWriteResults_periodic() 141 mMockListener.testStarted(EasyMock.eq(test1), EasyMock.anyLong()); in testWriteResults_periodic() 143 EasyMock.eq(test1), in testWriteResults_periodic()
|
D | ProtoResultReporterTest.java | 77 TestDescription test1 = new TestDescription("class1", "test1"); in testFinalizeProto() local 78 mReporter.testStarted(test1, 5L); in testFinalizeProto() 79 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testFinalizeProto() 137 TestDescription test1 = new TestDescription("class1", "test1"); in testRunFail_interleavedWithTest() local 138 mReporter.testStarted(test1, 5L); in testRunFail_interleavedWithTest() 142 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testRunFail_interleavedWithTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryTestTest.java | 213 final String test1 = "test1"; in testRun() local 215 final String testPath1 = String.format("%s/%s", testPath, test1); in testRun() 217 final String[] files = new String[] {test1, test2}; in testRun() 220 MockFileUtil.setMockDirContents(mMockITestDevice, testPath, test1, test2); in testRun() 231 mockShellCommand(test1); in testRun() 271 final String test1 = "test1"; in testRun_nested() local 279 test1); in testRun_nested() 280 MockFileUtil.setMockDirPath(mMockITestDevice, testPath, subFolderName, test1); in testRun_nested() 307 final String test1 = "test1"; in testNativeCoverageAllProcesses() local 309 final String testPath1 = String.format("%s/%s", testPath, test1); in testNativeCoverageAllProcesses() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | JUnitXmlParserTest.java | 67 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParse() local 68 mMockListener.testStarted(test1); in testParse() 69 mMockListener.testEnded(test1, new HashMap<String, Metric>()); in testParse() 91 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParseErrorAndSkipped() local 92 mMockListener.testStarted(test1); in testParseErrorAndSkipped() 93 mMockListener.testEnded(test1, new HashMap<String, Metric>()); in testParseErrorAndSkipped() 118 TestDescription test1 = new TestDescription("JUnitXmlParser", "normal_integration_tests"); in testParseError_format() local 119 mMockListener.testStarted(test1); in testParseError_format() 120 mMockListener.testFailed(EasyMock.eq(test1), EasyMock.eq("exited with error code 134.")); in testParseError_format() 121 mMockListener.testEnded(test1, new HashMap<String, Metric>()); in testParseError_format()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/ |
D | DeviceParameterizedRunnerTest.java | 120 TestDescription test1 = in testRun() local 122 mListener.testStarted(test1); in testRun() 123 mListener.testEnded(test1, new HashMap<String, Metric>()); in testRun() 150 TestDescription test1 = in testRun_collectOnly() local 152 mListener.testStarted(test1); in testRun_collectOnly() 153 mListener.testEnded(test1, new HashMap<String, Metric>()); in testRun_collectOnly() 223 TestDescription test1 = in testRun_excludeFilter_paramMethod() local 225 mListener.testStarted(test1); in testRun_excludeFilter_paramMethod() 226 mListener.testEnded(test1, new HashMap<String, Metric>()); in testRun_excludeFilter_paramMethod()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessorTest.java | 267 TestDescription test1 = new TestDescription("class", "test1"); in testRunLevelPostProcessing_processRunLogsOnly() local 276 listener.testStarted(test1); in testRunLevelPostProcessing_processRunLogsOnly() 281 listener.testEnded(test1, 0L, new HashMap<String, Metric>()); in testRunLevelPostProcessing_processRunLogsOnly() 441 TestDescription test1 = new TestDescription("class", "test1"); in testPerTestPostProcessing_logToTestAssociation() local 453 listener.testStarted(test1); in testPerTestPostProcessing_logToTestAssociation() 458 listener.testEnded(test1, 0L, new HashMap<String, Metric>()); in testPerTestPostProcessing_logToTestAssociation() 555 TestDescription test1 = new TestDescription("class", "test1"); in testAllTestLogsPostProcessing() local 564 listener.testStarted(test1); in testAllTestLogsPostProcessing() 569 listener.testEnded(test1, 0L, new HashMap<String, Metric>()); in testAllTestLogsPostProcessing() 588 && e.getKey().contains(test1.toString()) in testAllTestLogsPostProcessing()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollectorTest.java | 447 TestDescription test1 = new TestDescription(TestRunAnnotated.class.getName(), "testOne"); in testActualRunAnnotated_include() local 451 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test1), Mockito.anyLong()); in testActualRunAnnotated_include() 453 .testEnded(Mockito.eq(test1), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include() 500 TestDescription test1 = new TestDescription(TestRunAnnotated.class.getName(), "testOne"); in testActualRunAnnotated_exclude() local 504 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test1), Mockito.anyLong()); in testActualRunAnnotated_exclude() 506 .testEnded(Mockito.eq(test1), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | CollectingTestListenerTest.java | 104 final TestDescription test1 = injectTestRun("run1", "testFoo1", METRIC_VALUE, 0); in testTwoRuns() local 117 assertThat(runResult1.getTestResults().get(test1).getStatus()).isEqualTo(TestStatus.PASSED); in testTwoRuns() 120 assertThat(runResult1.getTestResults().get(test1).getMetrics().get(TEST_KEY)) in testTwoRuns() 129 final TestDescription test1 = injectTestRun("run", "testFoo1", METRIC_VALUE, 0); in testReRun() local 136 assertThat(runResult.getCompletedTests()).contains(test1); in testReRun()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteMultiTest.java | 153 TestDescription test1 = in testMultiDeviceITestSuite() local 155 mMockListener.testStarted(test1, 0l); in testMultiDeviceITestSuite() 156 mMockListener.testEnded(test1, 5l, new HashMap<String, Metric>()); in testMultiDeviceITestSuite()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/ |
D | RetryReschedulerTest.java | 624 TestDescription test1 = in populateFakeResults() local 626 reporter.testStarted(test1); in populateFakeResults() 627 reporter.testEnded(test1, new HashMap<String, Metric>()); in populateFakeResults()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationTest.java | 255 IRemoteTest test1 = EasyMock.createMock(IRemoteTest.class); in testGetTests() local 256 mConfig.setTest(test1); in testGetTests() 257 assertEquals(test1, mConfig.getTests().get(0)); in testGetTests()
|