/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | InstrumentationFileTestTest.java | 37 import com.android.tradefed.result.TestDescription; 108 final Collection<TestDescription> testsList = new ArrayList<>(1); in testRun_singleSuccessfulTest() 109 final TestDescription test = new TestDescription("ClassFoo", "methodBar"); in testRun_singleSuccessfulTest() 119 listener.testStarted(TestDescription.convertToIdentifier(test)); in testRun_singleSuccessfulTest() 121 TestDescription.convertToIdentifier(test), Collections.emptyMap()); in testRun_singleSuccessfulTest() 171 final Collection<TestDescription> testsList = new ArrayList<>(1); in testRun_reRunOneFailedToCompleteTest() 172 final TestDescription test1 = new TestDescription("ClassFoo1", "methodBar1"); in testRun_reRunOneFailedToCompleteTest() 173 final TestDescription test2 = new TestDescription("ClassFoo2", "methodBar2"); in testRun_reRunOneFailedToCompleteTest() 174 final TestDescription test3 = new TestDescription("ClassFoo3", "methodBar3"); in testRun_reRunOneFailedToCompleteTest() 187 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_reRunOneFailedToCompleteTest() [all …]
|
D | PythonUnitTestResultParserTest.java | 26 import com.android.tradefed.result.TestDescription; 148 TestDescription id = new TestDescription("a", "b"); in testParseSingleTestPass() 188 TestDescription id = new TestDescription("a", "b"); in testParseSingleTestPassWithExpectedFailure() 210 TestDescription id = new TestDescription("__main__.MyExampleTest", "test_1_pass"); in testParseSingleWithModuleClass() 233 TestDescription id = new TestDescription("a", "b"); in testParseMultiTestPass() 234 TestDescription id2 = new TestDescription("c", "d"); in testParseMultiTestPass() 260 TestDescription id = new TestDescription("a", "b"); in testParseMultiTestPassWithOneExpectedFailure() 261 TestDescription id2 = new TestDescription("c", "d"); in testParseMultiTestPassWithOneExpectedFailure() 287 TestDescription id = new TestDescription("a", "b"); in testParseMultiTestPassWithAllExpectedFailure() 288 TestDescription id2 = new TestDescription("c", "d"); in testParseMultiTestPassWithAllExpectedFailure() [all …]
|
D | HostTestTest.java | 50 import com.android.tradefed.result.TestDescription; 638 TestDescription test1 = new TestDescription(SuccessTestCase.class.getName(), "testPass"); in testRun_testcase() 639 TestDescription test2 = new TestDescription(SuccessTestCase.class.getName(), "testPass2"); in testRun_testcase() 658 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase() 659 TestDescription test2 = in testRun_MetricTestCase() 660 new TestDescription(TestMetricTestCase.class.getName(), "testPass2"); in testRun_MetricTestCase() 685 TestDescription test1 = new TestDescription(LogMetricTestCase.class.getName(), "testPass"); in testRun_LogMetricTestCase() 686 TestDescription test2 = new TestDescription(LogMetricTestCase.class.getName(), "testPass2"); in testRun_LogMetricTestCase() 718 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase_withOption() 719 TestDescription test2 = in testRun_MetricTestCase_withOption() [all …]
|
D | GTestListTestParserTest.java | 28 import com.android.tradefed.result.TestDescription; 55 verify(mockRunListener, times(24)).testStarted((TestDescription) Mockito.any()); in testParseSimpleList() 57 .testEnded((TestDescription) Mockito.any(), Mockito.<HashMap<String, Metric>>any()); in testParseSimpleList() 76 verify(mockRunListener, times(127)).testStarted((TestDescription) Mockito.any()); in testParseMultiClassList() 78 .testEnded((TestDescription) Mockito.any(), Mockito.<HashMap<String, Metric>>any()); in testParseMultiClassList() 105 TestDescription test1 = in testParseSimpleList_withSpecialChar() 106 new TestDescription( in testParseSimpleList_withSpecialChar() 110 TestDescription test2 = in testParseSimpleList_withSpecialChar() 111 new TestDescription( in testParseSimpleList_withSpecialChar() 147 verify(mockRunListener, times(41)).testStarted((TestDescription) Mockito.any()); in testParseParameterized() [all …]
|
D | DeviceTestCaseTest.java | 28 import com.android.tradefed.result.TestDescription; 114 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() 115 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() 140 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_includeFilter() 163 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_excludeFilter() 184 final TestDescription test1 = in testRun_includeAnnotationFiltering() 185 new TestDescription(MockAnnotatedTest.class.getName(), "test1"); in testRun_includeAnnotationFiltering() 201 ArgumentCaptor<TestDescription> capture = ArgumentCaptor.forClass(TestDescription.class); in testRun_checkAnnotation() 211 List<TestDescription> descriptions = capture.getAllValues(); in testRun_checkAnnotation() 213 for (TestDescription desc : descriptions) { in testRun_checkAnnotation() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | ReportPassedTestsTest.java | 73 TestDescription tid = new TestDescription("class", "testName"); in testReport() 110 TestDescription testPass = new TestDescription("class", "testName1"); in testReport_withTestFailure() 113 TestDescription testFailed = new TestDescription("class", "testName0"); in testReport_withTestFailure() 129 TestDescription tid = new TestDescription("class", "testName"); in testReport_runFailure_withPassedTestCases() 130 TestDescription tid2 = new TestDescription("class", "testName2"); in testReport_runFailure_withPassedTestCases() 131 TestDescription failed = new TestDescription("class", "testName3"); in testReport_runFailure_withPassedTestCases() 132 TestDescription assum = new TestDescription("class", "testName4"); in testReport_runFailure_withPassedTestCases() 202 TestDescription tid = new TestDescription("class", "testName"); in testReport_moduleFailure_withPassedTestCases_shards() 203 TestDescription tid2 = new TestDescription("class", "testName2"); in testReport_moduleFailure_withPassedTestCases_shards() 204 TestDescription failed = new TestDescription("class", "testName3"); in testReport_moduleFailure_withPassedTestCases_shards() [all …]
|
D | TestDescriptionTest.java | 33 private TestDescription mDescription; 77 new TestDescription( in testCreateDescription() 90 mDescription = new TestDescription("className", "testName"); in testCreateDescription_noAnnotation() 100 mDescription = new TestDescription("className", "testName[0]"); in testCreateDescription_parameterized() 105 mDescription = new TestDescription("className", "testName[key=value]"); in testCreateDescription_parameterized() 109 mDescription = new TestDescription("className", "testName[key=\"quoted value\"]"); in testCreateDescription_parameterized() 113 mDescription = new TestDescription("className", "testName[key:22]"); in testCreateDescription_parameterized() 118 new TestDescription( in testCreateDescription_parameterized() 128 TestDescription td = new TestDescription("classname", "testname"); in testFromString() 129 TestDescription fromString = TestDescription.fromString(td.toString()); in testFromString()
|
D | TestRunResultTest.java | 43 TestDescription test = new TestDescription("FooTest", "testBar"); in testGetNumTestsInState() 59 TestDescription test = new TestDescription("FooTest", "testBar"); in testGetNumTestsInState_failed() 81 TestDescription test = new TestDescription("FooTest", "testBar"); in testSpecifyElapsedTime() 123 TestDescription test1 = new TestDescription("FooTest1", "testBar1"); in testMultiRun_WithTestCases() 124 TestDescription test2 = new TestDescription("FooTest2", "testBar2"); in testMultiRun_WithTestCases() 164 TestDescription test = new TestDescription("FooTest", "testBar"); in testLogSavedFile_testCases() 190 TestDescription test = new TestDescription("FooTest", "testBar"); in testLogSavedFile_runLogs() 239 TestDescription testcase1 = new TestDescription("Foo", "foo"); in testMergeRetriedRunResults_fullMergeLogicCheck() 240 TestDescription testcase2 = new TestDescription("Bar", "bar"); in testMergeRetriedRunResults_fullMergeLogicCheck() 241 TestDescription testcase3 = new TestDescription("Baz", "baz"); in testMergeRetriedRunResults_fullMergeLogicCheck() [all …]
|
D | TestDescriptionsFileTest.java | 46 TestDescription td = new TestDescription("classname", "testname"); in getFile_oneEntry() 58 TestDescription td = new TestDescription("classname", "testname"); in getFile_caching() 66 TestDescription td2 = new TestDescription("classname", "test2"); in getFile_caching() 90 List<TestDescription> tests = tdfFromFile.getTests(); in fromFile_empty() 98 TestDescription td = new TestDescription("classname", "testname"); in fromFile() 105 List<TestDescription> tests = tdfFromFile.getTests(); in fromFile()
|
D | TestResultListenerTest.java | 35 private LinkedHashMap<TestDescription, TestResult> mResults; 37 private TestDescription mTest; 41 mResults = new LinkedHashMap<TestDescription, TestResult>(); in setUp() 45 public void testResult(TestDescription test, TestResult result) { in setUp() 50 mTest = new TestDescription("FooTest", "testFoo"); in setUp() 74 TestDescription incompleteTest = new TestDescription("FooTest", "testFoo2"); in missingTestEnded() 86 TestDescription incompleteTest = new TestDescription("FooTest", "testFoo2"); in incompleteDueToCrash()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | FilteredResultForwarder.java | 30 private final Collection<TestDescription> mAllowedTests; 33 Collection<TestDescription> allowedTests, ITestInvocationListener... listeners) { in FilteredResultForwarder() 39 public void testStarted(TestDescription test) { in testStarted() 47 public void testStarted(TestDescription test, long startTime) { in testStarted() 55 public void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) { in testEnded() 63 public void testEnded(TestDescription test, long endTime, HashMap<String, Metric> testMetrics) { in testEnded() 71 public void testEnded(TestDescription test, long endTime, Map<String, String> testMetrics) { in testEnded() 79 public void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() 87 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() 95 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() [all …]
|
D | TestResultListener.java | 35 private TestDescription mCurrentTest; 38 public abstract void testResult(TestDescription test, TestResult result); in testResult() 41 public final void testStarted(TestDescription test, long startTime) { in testStarted() 52 public final void testStarted(TestDescription test) { in testStarted() 57 public final void testFailed(TestDescription test, String trace) { in testFailed() 63 public final void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() 69 public void testSkipped(TestDescription test, SkipReason reason) { in testSkipped() 75 public final void testIgnored(TestDescription test) { in testIgnored() 80 public final void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() 86 public final void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) { in testEnded() [all …]
|
D | NameMangleListener.java | 48 protected TestDescription mangleTestId(TestDescription test) { in mangleTestId() 70 public void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) { in testEnded() 71 final TestDescription mangledTestId = mangleTestId(test); in testEnded() 77 public void testFailed(TestDescription test, String trace) { in testFailed() 78 final TestDescription mangledTestId = mangleTestId(test); in testFailed() 84 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() 85 final TestDescription mangledTestId = mangleTestId(test); in testAssumptionFailure() 91 public void testIgnored(TestDescription test) { in testIgnored() 92 final TestDescription mangledTestId = mangleTestId(test); in testIgnored() 129 public void testStarted(TestDescription test) { in testStarted() [all …]
|
D | TestDescriptionsFile.java | 45 private Set<TestDescription> mTests = null; 55 public static TestDescriptionsFile fromTests(List<TestDescription> shardTests) { in fromTests() 84 private static void populateTestFile(List<TestDescription> tests, File testFile) { in populateTestFile() 88 for (TestDescription test : tests) { in populateTestFile() 98 public List<TestDescription> getTests() { in getTests() 102 public void add(TestDescription test) { in add() 108 public void addAll(List<TestDescription> test) { in addAll() 118 public void remove(TestDescription test) { in remove() 123 private Collection<TestDescription> getOrBuildTests() { in getOrBuildTests() 133 private static void readTestsFromFile(Collection<TestDescription> tests, File testFile) { in readTestsFromFile() [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | ITestLifeCycleReceiver.java | 134 public default void testStarted(TestDescription test) {} in testStarted() 143 default void testStarted(TestDescription test, long startTime) { in testStarted() 155 public default void testFailed(TestDescription test, String trace) {} in testFailed() 165 public default void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 175 public default void testAssumptionFailure(TestDescription test, String trace) {} in testAssumptionFailure() 183 public default void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() 193 public default void testIgnored(TestDescription test) {} in testIgnored() 202 public default void testSkipped(TestDescription test, SkipReason reason) {} in testSkipped() 213 public default void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() 226 public default void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) {} in testEnded() [all …]
|
D | TestDescription.java | 28 public final class TestDescription implements Serializable, Comparable<TestDescription> { class 44 public TestDescription(String className, String testName) { in TestDescription() method in TestDescription 68 public TestDescription(String className, String testName, Annotation... annotations) { in TestDescription() method in TestDescription 80 public TestDescription(String className, String testName, Collection<Annotation> annotations) { in TestDescription() method in TestDescription 140 TestDescription other = (TestDescription) obj; in equals() 149 public int compareTo(TestDescription o) { in compareTo() 164 public static TestDescription fromString(String data) { in fromString() 167 return new TestDescription(segments[0], segments[1]); in fromString() 179 public static TestDescription createFromTestIdentifier(TestIdentifier testId) { in createFromTestIdentifier() 180 return new TestDescription(testId.getClassName(), testId.getTestName()); in createFromTestIdentifier() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | JUnitXmlParserTest.java | 26 import com.android.tradefed.result.TestDescription; 75 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParse() 76 TestDescription test2 = new TestDescription("PassTest", "testPass2"); in testParse() 77 TestDescription test3 = new TestDescription("FailTest", "testFail"); in testParse() 97 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParseErrorAndSkipped() 98 TestDescription test2 = new TestDescription("SkippedTest", "testSkip"); in testParseErrorAndSkipped() 99 TestDescription test3 = new TestDescription("ErrorTest", "testFail"); in testParseErrorAndSkipped() 122 TestDescription test1 = new TestDescription("JUnitXmlParser", "normal_integration_tests"); in testParseError_format() 139 TestDescription test = in testParseBazelShTestXml() 140 new TestDescription( in testParseBazelShTestXml()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | GranularRetriableTestWrapperTest.java | 51 import com.android.tradefed.result.TestDescription; 91 protected ArrayList<TestDescription> mTestCases; 92 protected Map<TestDescription, Integer> mBecomePass = new HashMap<>(); 93 protected Map<TestDescription, Boolean> mShouldFail; 100 TestDescription defaultTestCase = new TestDescription("ClassFoo", "TestFoo"); in BasicFakeTest() 102 mShouldFail = new HashMap<TestDescription, Boolean>(); in BasicFakeTest() 106 public BasicFakeTest(ArrayList<TestDescription> testCases) { in BasicFakeTest() 108 mShouldFail = new HashMap<TestDescription, Boolean>(); in BasicFakeTest() 109 for (TestDescription testCase : testCases) { in BasicFakeTest() 115 public void addFailedTestCase(TestDescription testCase) { in addFailedTestCase() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/junit4/ |
D | DeviceParameterizedRunnerTest.java | 31 import com.android.tradefed.result.TestDescription; 132 TestDescription test1 = in testRun() 133 new TestDescription(TestJUnitParamsClass.class.getName(), "testOne"); in testRun() 135 TestDescription test2_p1 = in testRun() 136 new TestDescription(TestJUnitParamsClass.class.getName(), "testTwo[0]"); in testRun() 138 TestDescription test2_2 = in testRun() 139 new TestDescription(TestJUnitParamsClass.class.getName(), "testTwo[1]"); in testRun() 164 TestDescription test1 = in testRun_collectOnly() 165 new TestDescription(TestJUnitParamsClass.class.getName(), "testOne"); in testRun_collectOnly() 167 TestDescription test2_p1 = in testRun_collectOnly() [all …]
|
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/ |
D | NullTestListener.java | 27 import com.android.tradefed.result.TestDescription; 84 public void testStarted(TestDescription test) { in testStarted() 89 public void testStarted(TestDescription test, long startTime) { in testStarted() 94 public void testFailed(TestDescription test, String trace) { in testFailed() 99 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 104 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() 109 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() 114 public void testIgnored(TestDescription test) { in testIgnored() 119 public void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() 124 public void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) { in testEnded() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayerTest.java | 36 import com.android.tradefed.result.TestDescription; 92 TestDescription test = new TestDescription("test.class", "method0"); in testReplay() 93 TestDescription testFail = new TestDescription("test.class", "fail0"); in testReplay() 147 TestDescription test = new TestDescription("test.class", "method0"); in testReplayModules() 148 TestDescription testFail = new TestDescription("test.class", "fail0"); in testReplayModules() 150 test = new TestDescription("test.class", "method0"); in testReplayModules() 151 testFail = new TestDescription("test.class", "fail0"); in testReplayModules() 181 TestDescription test = new TestDescription("test.class", "method0"); in testReplay_oneTest() 188 Entry<TestDescription, TestResult> entry = new SimpleEntry<>(test, result); in testReplay_oneTest() 211 TestDescription test = new TestDescription("test.class", "method0"); in testReplay_MultiTest() [all …]
|
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/ |
D | MetricsTest.java | 24 import com.android.tradefed.result.TestDescription; 62 TestDescription id1 = new TestDescription("class", "test1"); in testAddTestMetrics() 64 TestDescription id2 = new TestDescription("class", "test2"); in testAddTestMetrics() 85 TestDescription id1 = new TestDescription("class", "test1"); in testValidate() 87 TestDescription id2 = new TestDescription("class", "test2"); in testValidate() 105 TestDescription id1 = new TestDescription("class", "test1"); in testCrossValidate() 113 TestDescription id2 = new TestDescription("class", "test2"); in testCrossValidate()
|
D | MetricsXmlParserTest.java | 34 import com.android.tradefed.result.TestDescription; 94 final TestDescription testId0 = new TestDescription("Test", "pass1"); in testSimpleParse() 97 final TestDescription testId1 = new TestDescription("Test", "pass2"); in testSimpleParse() 100 final TestDescription testId2 = new TestDescription("Test", "pass3"); in testSimpleParse() 123 final TestDescription testId0 = new TestDescription("Test", "pass1"); in testParse() 129 final TestDescription testId1 = new TestDescription("Test", "pass2"); in testParse() 158 final TestDescription testId0 = new TestDescription("Test", "pass1"); in testParseBlacklist() 164 final TestDescription testId1 = new TestDescription("Test", "pass2"); in testParseBlacklist()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/binary/ |
D | ExecutableTargetTestTest.java | 30 import com.android.tradefed.result.TestDescription; 90 TestDescription description) {} in testRun_cmdSuccess() 100 TestDescription testDescription = new TestDescription(testName1, testName1); in testRun_cmdSuccess() 107 TestDescription testDescription2 = new TestDescription(testName2, testName2); in testRun_cmdSuccess() 133 TestDescription description) {} in testRun_pathNotExist() 150 Mockito.eq(new TestDescription(testName1, testName1)), in testRun_pathNotExist() 160 Mockito.eq(new TestDescription(testName2, testName2)), in testRun_pathNotExist() 182 TestDescription description) { in testRun_cmdFailed() 194 TestDescription testDescription = new TestDescription(testName1, testName1); in testRun_cmdFailed() 202 TestDescription testDescription2 = new TestDescription(testName2, testName2); in testRun_cmdFailed() [all …]
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestRunResult.java | 46 private Map<TestDescription, TestResult> mTestResults = 47 new LinkedHashMap<TestDescription, TestResult>(); 86 public Map<TestDescription, TestResult> getTestResults() { in getTestResults() 101 public Set<TestDescription> getCompletedTests() { in getCompletedTests() 112 public Set<TestDescription> getFailedTests() { in getFailedTests() 117 public Set<TestDescription> getPassedTests() { in getPassedTests() 122 public Set<TestDescription> getTestsInState(List<TestStatus> statuses) { in getTestsInState() 123 Set<TestDescription> tests = new LinkedHashSet<>(); in getTestsInState() 124 for (Map.Entry<TestDescription, TestResult> testEntry : getTestResults().entrySet()) { in getTestsInState() 294 public void testStarted(TestDescription test) { in testStarted() [all …]
|