/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 236 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeFailByName() local 238 test1.merge(test2); in testMergeFailByName() 247 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeFailByHostOnly() local 249 test1.merge(test2); in testMergeFailByHostOnly() 259 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeSuccess() local 262 test1.merge(test2); in testMergeSuccess() 263 assertTrue(test1.getOptions().isEmpty()); in testMergeSuccess() 264 assertFalse(test1.getHostOnly()); in testMergeSuccess() 266 test1 = new TestInfo("test1", "folder1", false); in testMergeSuccess() 268 test1.addOption(new TestOption("include-filter", "value")); in testMergeSuccess() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 136 TestDescription test1 = new TestDescription("class1", "test1"); in testEvents() local 150 mMockListener.testStarted(test1, 5L); in testEvents() 151 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testEvents() 175 mTestParser.testStarted(test1, 5L); in testEvents() 176 mTestParser.testEnded(test1, 10L, new HashMap<String, Metric>()); in testEvents() 218 TestDescription test1 = new TestDescription("class1", "test1"); in testRunFail_interleavedWithTest() local 225 mMockListener.testStarted(test1, 5L); in testRunFail_interleavedWithTest() 226 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testRunFail_interleavedWithTest() 239 mTestParser.testStarted(test1, 5L); in testRunFail_interleavedWithTest() 243 mTestParser.testEnded(test1, 10L, new HashMap<String, Metric>()); in testRunFail_interleavedWithTest() [all …]
|
D | StreamProtoResultReporterTest.java | 68 TestDescription test1 = new TestDescription("class1", "test1"); in testStream() local 78 mMockListener.testStarted(test1, 5L); in testStream() 79 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream() 99 mReporter.testStarted(test1, 5L); in testStream() 100 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream() 137 TestDescription test1 = new TestDescription("class1", "test1"); in testStream_noInvocationReporting() local 145 mMockListener.testStarted(test1, 5L); in testStream_noInvocationReporting() 146 mMockListener.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream_noInvocationReporting() 164 mReporter.testStarted(test1, 5L); in testStream_noInvocationReporting() 165 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testStream_noInvocationReporting()
|
D | ProtoResultReporterTest.java | 72 TestDescription test1 = new TestDescription("class1", "test1"); in testFinalizeProto() local 73 mReporter.testStarted(test1, 5L); in testFinalizeProto() 74 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testFinalizeProto() 130 TestDescription test1 = new TestDescription("class1", "test1"); in testRunFail_interleavedWithTest() local 131 mReporter.testStarted(test1, 5L); in testRunFail_interleavedWithTest() 135 mReporter.testEnded(test1, 10L, new HashMap<String, Metric>()); in testRunFail_interleavedWithTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | DeviceTestCaseTest.java | 47 public void test1() { in test1() method in DeviceTestCaseTest.MockTest 58 public void test1() {} in test1() method in DeviceTestCaseTest.MockAnnotatedTest 66 public void test1() { in test1() method in DeviceTestCaseTest.DuplicateTest 67 test1(""); in test1() 70 private void test1(String arg) { in test1() method in DeviceTestCaseTest.DuplicateTest 96 public void test1() throws DeviceNotAvailableException { in test1() method in DeviceTestCaseTest.MockAbortTest 108 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() local 110 listener.testStarted(test1); in testRun_suite() 113 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); in testRun_suite() 133 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_includeFilter() local [all …]
|
D | HostTestTest.java | 549 TestDescription test1 = new TestDescription(SuccessTestCase.class.getName(), "testPass"); 552 mListener.testStarted(EasyMock.eq(test1)); 553 mListener.testEnded(EasyMock.eq(test1), (HashMap<String, Metric>) EasyMock.anyObject()); 568 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); 572 mListener.testStarted(EasyMock.eq(test1)); 576 mListener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metric1)); 594 TestDescription test1 = new TestDescription(LogMetricTestCase.class.getName(), "testPass"); 597 mListener.testStarted(EasyMock.eq(test1)); 599 mListener.testEnded(test1, new HashMap<String, Metric>()); 626 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); [all …]
|
D | InstrumentationFileTestTest.java | 156 final TestDescription test1 = new TestDescription("ClassFoo1", "methodBar1"); in testRun_reRunOneFailedToCompleteTest() local 159 testsList.add(test1); in testRun_reRunOneFailedToCompleteTest() 171 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_reRunOneFailedToCompleteTest() 173 TestDescription.convertToIdentifier(test1), Collections.emptyMap()); in testRun_reRunOneFailedToCompleteTest() 226 mMockListener.testStarted(EasyMock.eq(test1), EasyMock.anyLong()); in testRun_reRunOneFailedToCompleteTest() 228 EasyMock.eq(test1), EasyMock.anyLong(), EasyMock.eq(new HashMap<String, Metric>())); in testRun_reRunOneFailedToCompleteTest() 255 final TestDescription test1 = new TestDescription("ClassFoo1", "methodBar1"); in testRun_serialReRunOfTwoFailedToCompleteTests() local 257 testsList.add(test1); in testRun_serialReRunOfTwoFailedToCompleteTests() 268 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_serialReRunOfTwoFailedToCompleteTests() 285 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_serialReRunOfTwoFailedToCompleteTests() [all …]
|
D | GoogleBenchmarkTestTest.java | 92 final String test1 = "test1"; in testRun() local 94 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun() 103 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun() 121 mMockInvocationListener.testRunStarted(test1, 3); in testRun() 170 final String test1 = "test1"; in testRun_withModuleName() local 172 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun_withModuleName() 181 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withModuleName() 197 mMockInvocationListener.testRunStarted(test1, 3); in testRun_withModuleName() 213 final String test1 = "test1"; in testRun_withRunReportName() local 216 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1); in testRun_withRunReportName() [all …]
|
D | DeviceTestSuiteTest.java | 40 public void test1() { in test1() method in DeviceTestSuiteTest.MockTest 52 public void test1() throws DeviceNotAvailableException { in test1() method in DeviceTestSuiteTest.MockAbortTest 65 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() local 67 listener.testStarted(test1); in testRun_suite() 70 listener.testEnded(test1, TfMetricProtoUtil.upgradeConvert(metrics)); in testRun_suite() 89 final TestDescription test1 = new TestDescription(MockAbortTest.class.getName(), "test1"); in testRun_deviceNotAvail() local 91 listener.testStarted(test1); in testRun_deviceNotAvail() 92 listener.testFailed(EasyMock.eq(test1), in testRun_deviceNotAvail() 94 listener.testEnded(test1, new HashMap<String, Metric>()); in testRun_deviceNotAvail()
|
D | DeviceSuiteTest.java | 167 TestDescription test1 = in testRunDeviceSuite() local 171 mListener.testStarted(EasyMock.eq(test1)); in testRunDeviceSuite() 172 mListener.testEnded(EasyMock.eq(test1), EasyMock.eq(new HashMap<String, Metric>())); in testRunDeviceSuite() 196 TestDescription test1 = in testRun_withFiltering() local 198 mListener.testStarted(EasyMock.eq(test1)); in testRun_withFiltering() 199 mListener.testEnded(EasyMock.eq(test1), EasyMock.eq(new HashMap<String, Metric>())); in testRun_withFiltering() 215 TestDescription test1 = in testRun_withOption() local 219 mListener.testStarted(EasyMock.eq(test1)); in testRun_withOption() 223 EasyMock.eq(test1), EasyMock.eq(TfMetricProtoUtil.upgradeConvert(expected))); in testRun_withOption() 240 TestDescription test1 = in testRunDeviceSuite_junit3() local [all …]
|
D | GTestTest.java | 126 final String test1 = "test1"; in testRun() local 128 final String testPath1 = String.format("%s/%s", nativeTestPath, test1); in testRun() 131 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRun() 143 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), in testRun() 185 final String test1 = "test1"; in testRun_nested() local 189 FileListingService.FILE_SEPARATOR, test1); in testRun_nested() 190 MockFileUtil.setMockDirPath(mMockITestDevice, nativeTestPath, subFolderName, test1); in testRun_nested() 387 final String test1 = "test1"; in testRunXml() local 389 final String testPath1 = String.format("%s/%s", nativeTestPath, test1); in testRunXml() 392 MockFileUtil.setMockDirContents(mMockITestDevice, nativeTestPath, test1, test2); in testRunXml() [all …]
|
D | DeviceJUnit4ClassRunnerTest.java | 136 TestDescription test1 = new TestDescription(Junit4TestClass.class.getName(), "testPass"); 138 mListener.testStarted(EasyMock.eq(test1)); 139 mListener.testEnded(EasyMock.eq(test1), EasyMock.<HashMap<String, Metric>>anyObject());
|
D | GTestListTestParserTest.java | 112 TestDescription test1 = in testParseSimpleList_withSpecialChar() local 116 mockRunListener.testStarted(test1); in testParseSimpleList_withSpecialChar() 118 EasyMock.eq(test1), (HashMap<String, Metric>) EasyMock.anyObject()); in testParseSimpleList_withSpecialChar()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/ |
D | DeviceParameterizedRunnerTest.java | 112 TestDescription test1 = in testRun() local 114 mListener.testStarted(test1); in testRun() 115 mListener.testEnded(test1, new HashMap<String, Metric>()); in testRun() 142 TestDescription test1 = in testRun_collectOnly() local 144 mListener.testStarted(test1); in testRun_collectOnly() 145 mListener.testEnded(test1, new HashMap<String, Metric>()); in testRun_collectOnly() 215 TestDescription test1 = in testRun_excludeFilter_paramMethod() local 217 mListener.testStarted(test1); in testRun_excludeFilter_paramMethod() 218 mListener.testEnded(test1, new HashMap<String, Metric>()); in testRun_excludeFilter_paramMethod()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | JUnitXmlParserTest.java | 66 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParse() local 67 mMockListener.testStarted(test1); in testParse() 68 mMockListener.testEnded(test1, new HashMap<String, Metric>()); in testParse() 90 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParseErrorAndSkipped() local 91 mMockListener.testStarted(test1); in testParseErrorAndSkipped() 92 mMockListener.testEnded(test1, new HashMap<String, Metric>()); in testParseErrorAndSkipped()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollectorTest.java | 410 TestDescription test1 = new TestDescription(TestRunAnnotated.class.getName(), "testOne"); in testActualRunAnnotated_include() local 414 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test1), Mockito.anyLong()); in testActualRunAnnotated_include() 416 .testEnded(Mockito.eq(test1), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include() 458 TestDescription test1 = new TestDescription(TestRunAnnotated.class.getName(), "testOne"); in testActualRunAnnotated_exclude() local 462 Mockito.verify(mMockListener, times(1)).testStarted(Mockito.eq(test1), Mockito.anyLong()); in testActualRunAnnotated_exclude() 464 .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()
|
D | TestRunResultTest.java | 123 TestDescription test1 = new TestDescription("FooTest1", "testBar1"); in testMultiRun_WithTestCases() local 130 result.testStarted(test1); in testMultiRun_WithTestCases() 131 result.testEnded(test1, new HashMap<String, Metric>()); in testMultiRun_WithTestCases()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteMultiTest.java | 150 TestDescription test1 = in testMultiDeviceITestSuite() local 152 mMockListener.testStarted(test1, 0l); in testMultiDeviceITestSuite() 153 mMockListener.testEnded(test1, 5l, new HashMap<String, Metric>()); in testMultiDeviceITestSuite()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationTest.java | 232 IRemoteTest test1 = EasyMock.createMock(IRemoteTest.class); in testGetTests() local 233 mConfig.setTest(test1); in testGetTests() 234 assertEquals(test1, mConfig.getTests().get(0)); in testGetTests()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/ |
D | RetryReschedulerTest.java | 551 TestDescription test1 = in populateFakeResults() local 553 reporter.testStarted(test1); in populateFakeResults() 554 reporter.testEnded(test1, new HashMap<String, Metric>()); in populateFakeResults()
|
/tools/tradefederation/core/atest/unittest_data/test_mapping/ |
D | test_mapping_sample | 4 "name": "test1",
|
/tools/tradefederation/core/tests/res/testdata/ |
D | test_mapping_2 | 4 "name": "test1",
|
D | test_mapping_1 | 4 "name": "test1",
|