/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestResultParserTest.java | 23 import com.android.tradefed.result.TestDescription; 46 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleFile() 48 (TestDescription) EasyMock.anyObject(), in testParseSimpleFile() 70 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleFileNoTimes() 72 (TestDescription) EasyMock.anyObject(), in testParseSimpleFileNoTimes() 110 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseLargerFile() 112 (TestDescription) EasyMock.anyObject(), in testParseLargerFile() 135 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() 137 (TestDescription) EasyMock.anyObject(), in testParseWithFailures() 140 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() [all …]
|
D | InstrumentationFileTestTest.java | 37 import com.android.tradefed.result.TestDescription; 107 final Collection<TestDescription> testsList = new ArrayList<>(1); in testRun_singleSuccessfulTest() 108 final TestDescription test = new TestDescription("ClassFoo", "methodBar"); in testRun_singleSuccessfulTest() 118 listener.testStarted(TestDescription.convertToIdentifier(test)); in testRun_singleSuccessfulTest() 120 TestDescription.convertToIdentifier(test), Collections.emptyMap()); in testRun_singleSuccessfulTest() 167 final Collection<TestDescription> testsList = new ArrayList<>(1); in testRun_reRunOneFailedToCompleteTest() 168 final TestDescription test1 = new TestDescription("ClassFoo1", "methodBar1"); in testRun_reRunOneFailedToCompleteTest() 169 final TestDescription test2 = new TestDescription("ClassFoo2", "methodBar2"); in testRun_reRunOneFailedToCompleteTest() 170 final TestDescription test3 = new TestDescription("ClassFoo3", "methodBar3"); in testRun_reRunOneFailedToCompleteTest() 183 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_reRunOneFailedToCompleteTest() [all …]
|
D | PythonUnitTestResultParserTest.java | 30 import com.android.tradefed.result.TestDescription; 156 TestDescription[] ids = {new TestDescription("a", "b")}; in testParseSingleTestPass() 195 TestDescription[] ids = {new TestDescription("a", "b")}; in testParseSingleTestPassWithExpectedFailure() 216 TestDescription[] ids = {new TestDescription("a", "b"), new TestDescription("c", "d")}; in testParseMultiTestPass() 237 TestDescription[] ids = {new TestDescription("a", "b"), new TestDescription("c", "d")}; in testParseMultiTestPassWithOneExpectedFailure() 258 TestDescription[] ids = {new TestDescription("a", "b"), new TestDescription("c", "d")}; in testParseMultiTestPassWithAllExpectedFailure() 286 TestDescription[] ids = {new TestDescription("a", "b")}; in testParseSingleTestFail() 313 TestDescription[] ids = {new TestDescription("a", "b"), new TestDescription("c", "d")}; in testParseSubtestFailure() 342 TestDescription[] ids = {new TestDescription("a", "b"), new TestDescription("c", "d")}; in testParseMultiTestFailWithExpectedFailure() 362 TestDescription[] ids = {new TestDescription("a", "b")}; in testParseSingleTestUnexpectedSuccess() [all …]
|
D | HostTestTest.java | 39 import com.android.tradefed.result.TestDescription; 613 TestDescription test1 = new TestDescription(SuccessTestCase.class.getName(), "testPass"); in testRun_testcase() 614 TestDescription test2 = new TestDescription(SuccessTestCase.class.getName(), "testPass2"); in testRun_testcase() 632 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase() 633 TestDescription test2 = in testRun_MetricTestCase() 634 new TestDescription(TestMetricTestCase.class.getName(), "testPass2"); in testRun_MetricTestCase() 658 TestDescription test1 = new TestDescription(LogMetricTestCase.class.getName(), "testPass"); in testRun_LogMetricTestCase() 659 TestDescription test2 = new TestDescription(LogMetricTestCase.class.getName(), "testPass2"); in testRun_LogMetricTestCase() 690 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase_withOption() 691 TestDescription test2 = in testRun_MetricTestCase_withOption() [all …]
|
D | GTestListTestParserTest.java | 25 import com.android.tradefed.result.TestDescription; 49 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleList() 51 (TestDescription) EasyMock.anyObject(), in testParseSimpleList() 74 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseMultiClassList() 76 (TestDescription) EasyMock.anyObject(), in testParseMultiClassList() 112 TestDescription test1 = in testParseSimpleList_withSpecialChar() 113 new TestDescription( in testParseSimpleList_withSpecialChar() 120 TestDescription test2 = in testParseSimpleList_withSpecialChar() 121 new TestDescription( in testParseSimpleList_withSpecialChar() 151 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseParameterized() [all …]
|
D | GTestXmlResultParserTest.java | 22 import com.android.tradefed.result.TestDescription; 81 TestDescription firstInFile = new TestDescription("InteropTest", "test_lookup_hit"); in testParseSimpleFile() 91 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleFile() 93 (TestDescription) EasyMock.anyObject(), in testParseSimpleFile() 119 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseLargerFile() 121 (TestDescription) EasyMock.anyObject(), in testParseLargerFile() 149 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() 151 (TestDescription) EasyMock.anyObject(), in testParseWithFailures() 155 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() 157 (TestDescription) EasyMock.anyObject(), EasyMock.eq(expectedMessage)); in testParseWithFailures() [all …]
|
D | DeviceTestCaseTest.java | 25 import com.android.tradefed.result.TestDescription; 117 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() 118 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() 142 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_includeFilter() 164 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_excludeFilter() 186 final TestDescription test1 = in testRun_includeAnnotationFiltering() 187 new TestDescription(MockAnnotatedTest.class.getName(), "test1"); in testRun_includeAnnotationFiltering() 203 Capture<TestDescription> capture = new Capture<>(); in testRun_checkAnnotation() 216 List<TestDescription> descriptions = capture.getValues(); in testRun_checkAnnotation() 218 for (TestDescription desc : descriptions) { in testRun_checkAnnotation() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | TestDescriptionTest.java | 33 private TestDescription mDescription; 57 new TestDescription( in testCreateDescription() 70 mDescription = new TestDescription("className", "testName"); in testCreateDescription_noAnnotation() 80 mDescription = new TestDescription("className", "testName[0]"); in testCreateDescription_parameterized() 85 mDescription = new TestDescription("className", "testName[key=value]"); in testCreateDescription_parameterized() 89 mDescription = new TestDescription("className", "testName[key=\"quoted value\"]"); in testCreateDescription_parameterized() 93 mDescription = new TestDescription("className", "testName[key:22]"); in testCreateDescription_parameterized() 98 new TestDescription( in testCreateDescription_parameterized() 108 TestDescription td = new TestDescription("classname", "testname"); in testFromString() 109 TestDescription fromString = TestDescription.fromString(td.toString()); in testFromString()
|
D | TestRunResultTest.java | 44 TestDescription test = new TestDescription("FooTest", "testBar"); in testGetNumTestsInState() 60 TestDescription test = new TestDescription("FooTest", "testBar"); in testGetNumTestsInState_failed() 82 TestDescription test = new TestDescription("FooTest", "testBar"); in testSpecifyElapsedTime() 124 TestDescription test1 = new TestDescription("FooTest1", "testBar1"); in testMultiRun_WithTestCases() 125 TestDescription test2 = new TestDescription("FooTest2", "testBar2"); in testMultiRun_WithTestCases() 165 TestDescription test = new TestDescription("FooTest", "testBar"); in testLogSavedFile_testCases() 191 TestDescription test = new TestDescription("FooTest", "testBar"); in testLogSavedFile_runLogs() 240 TestDescription testcase1 = new TestDescription("Foo", "foo"); in testMergeRetriedRunResults_fullMergeLogicCheck() 241 TestDescription testcase2 = new TestDescription("Bar", "bar"); in testMergeRetriedRunResults_fullMergeLogicCheck() 242 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/tests/src/com/android/tradefed/util/ |
D | JUnitXmlParserTest.java | 23 import com.android.tradefed.result.TestDescription; 67 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParse() 71 TestDescription test2 = new TestDescription("PassTest", "testPass2"); in testParse() 75 TestDescription test3 = new TestDescription("FailTest", "testFail"); in testParse() 91 TestDescription test1 = new TestDescription("PassTest", "testPass"); in testParseErrorAndSkipped() 95 TestDescription test2 = new TestDescription("SkippedTest", "testSkip"); in testParseErrorAndSkipped() 100 TestDescription test3 = new TestDescription("ErrorTest", "testFail"); in testParseErrorAndSkipped() 118 TestDescription test1 = new TestDescription("JUnitXmlParser", "normal_integration_tests"); in testParseError_format() 132 TestDescription test = new TestDescription( in testParseBazelShTestXml()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | GranularRetriableTestWrapperTest.java | 42 import com.android.tradefed.result.TestDescription; 79 protected ArrayList<TestDescription> mTestCases; 81 protected Map<TestDescription, Integer> mBecomePass = new HashMap<>(); 82 protected Map<TestDescription, Boolean> mShouldFail; 89 TestDescription defaultTestCase = new TestDescription("ClassFoo", "TestFoo"); in BasicFakeTest() 91 mShouldFail = new HashMap<TestDescription, Boolean>(); in BasicFakeTest() 95 public BasicFakeTest(ArrayList<TestDescription> testCases) { in BasicFakeTest() 97 mShouldFail = new HashMap<TestDescription, Boolean>(); in BasicFakeTest() 98 for (TestDescription testCase : testCases) { in BasicFakeTest() 104 public void addFailedTestCase(TestDescription testCase) { in addFailedTestCase() [all …]
|
D | ModuleListenerTest.java | 25 import com.android.tradefed.result.TestDescription; 55 TestDescription tid = new TestDescription("class", "test" + i); in testRegularExecution() 69 TestDescription tid = new TestDescription("class", "test" + numTests); in testRun_missingTests() 89 TestDescription tid = new TestDescription("class", "test" + numTests); in testInternalRerun() 98 TestDescription tid2 = new TestDescription("class", "test" + i); in testInternalRerun() 116 TestDescription tid = new TestDescription("class", "test" + i); in testMultiTestRun() 124 TestDescription tid = new TestDescription("class2", "test" + i); in testMultiTestRun() 169 TestDescription test = new TestDescription("ApexServiceTest", "Activate"); in testRetryInvalid()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | NameMangleListener.java | 46 protected TestDescription mangleTestId(TestDescription test) { in mangleTestId() 68 public void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) { in testEnded() 69 final TestDescription mangledTestId = mangleTestId(test); in testEnded() 75 public void testFailed(TestDescription test, String trace) { in testFailed() 76 final TestDescription mangledTestId = mangleTestId(test); in testFailed() 82 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() 83 final TestDescription mangledTestId = mangleTestId(test); in testAssumptionFailure() 89 public void testIgnored(TestDescription test) { in testIgnored() 90 final TestDescription mangledTestId = mangleTestId(test); in testIgnored() 127 public void testStarted(TestDescription test) { in testStarted() [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 final void testIgnored(TestDescription test) { in testIgnored() 74 public final void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() 80 public final void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) { in testEnded() 87 TestDescription test, long endTime, Map<String, String> testMetrics) { in testEnded() [all …]
|
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 testIgnored(TestDescription test) { in testIgnored()
|
D | TestDescriptionsFile.java | 45 private Set<TestDescription> mTests = null; 55 public static TestDescriptionsFile fromTests(List<TestDescription> shardTests) { in fromTests() 85 public List<TestDescription> getTests() { in getTests() 89 public void add(TestDescription test) { in add() 95 public void addAll(List<TestDescription> test) { in addAll() 105 public void remove(TestDescription test) { in remove() 110 private Collection<TestDescription> getOrBuildTests() { in getOrBuildTests() 120 private static void readTestsFromFile(Collection<TestDescription> tests, File testFile) { in readTestsFromFile() 124 TestDescription test = TestDescription.fromString(line); in readTestsFromFile() 134 private static void populateTestFile(List<TestDescription> tests, File testFile) { in populateTestFile() [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | ITestLifeCycleReceiver.java | 133 public default void testStarted(TestDescription test) {} in testStarted() 142 default void testStarted(TestDescription test, long startTime) { in testStarted() 154 public default void testFailed(TestDescription test, String trace) {} in testFailed() 164 public default void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 174 public default void testAssumptionFailure(TestDescription test, String trace) {} in testAssumptionFailure() 182 public default void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() 192 public default void testIgnored(TestDescription test) {} in testIgnored() 203 public default void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() 216 public default void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) {} in testEnded() 227 TestDescription test, long endTime, Map<String, String> 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 134 TestDescription other = (TestDescription) obj; in equals() 143 public int compareTo(TestDescription o) { in compareTo() 158 public static TestDescription fromString(String data) { in fromString() 161 return new TestDescription(segments[0], segments[1]); in fromString() 173 public static TestDescription createFromTestIdentifier(TestIdentifier testId) { in createFromTestIdentifier() 174 return new TestDescription(testId.getClassName(), testId.getTestName()); in createFromTestIdentifier() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/ |
D | DeviceParameterizedRunnerTest.java | 28 import com.android.tradefed.result.TestDescription; 120 TestDescription test1 = in testRun() 121 new TestDescription(TestJUnitParamsClass.class.getName(), "testOne"); in testRun() 125 TestDescription test2_p1 = in testRun() 126 new TestDescription(TestJUnitParamsClass.class.getName(), "testTwo[0]"); in testRun() 130 TestDescription test2_2 = in testRun() 131 new TestDescription(TestJUnitParamsClass.class.getName(), "testTwo[1]"); in testRun() 150 TestDescription test1 = in testRun_collectOnly() 151 new TestDescription(TestJUnitParamsClass.class.getName(), "testOne"); in testRun_collectOnly() 155 TestDescription test2_p1 = in testRun_collectOnly() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayerTest.java | 31 import com.android.tradefed.result.TestDescription; 87 TestDescription test = new TestDescription("test.class", "method0"); in testReplay() 91 TestDescription testFail = new TestDescription("test.class", "fail0"); in testReplay() 116 TestDescription test = new TestDescription("test.class", "method0"); in testReplayModules() 120 TestDescription testFail = new TestDescription("test.class", "fail0"); in testReplayModules() 132 test = new TestDescription("test.class", "method0"); in testReplayModules() 136 testFail = new TestDescription("test.class", "fail0"); in testReplayModules() 154 TestDescription test = new TestDescription("test.class", "method0"); in testReplay_oneTest() 161 Entry<TestDescription, TestResult> entry = new SimpleEntry<>(test, result); in testReplay_oneTest() 183 TestDescription test = new TestDescription("test.class", "method0"); in testReplay_MultiTest() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableTargetTestTest.java | 28 import com.android.tradefed.result.TestDescription; 82 TestDescription description) {} in testRun_cmdSuccess() 91 TestDescription testDescription = new TestDescription(testName1, testName1); in testRun_cmdSuccess() 99 TestDescription testDescription2 = new TestDescription(testName2, testName2); in testRun_cmdSuccess() 126 TestDescription description) {} in testRun_pathNotExist() 162 TestDescription description) { in testRun_cmdFailed() 173 TestDescription testDescription = new TestDescription(testName1, testName1); in testRun_cmdFailed() 182 TestDescription testDescription2 = new TestDescription(testName2, testName2); in testRun_cmdFailed() 211 TestDescription description) {} in testRun_addExcludeFilter() 219 TestDescription testDescription = new TestDescription(testName1, testName1); in testRun_addExcludeFilter() [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 | 33 import com.android.tradefed.result.TestDescription; 93 final TestDescription testId0 = new TestDescription("Test", "pass1"); in testSimpleParse() 96 final TestDescription testId1 = new TestDescription("Test", "pass2"); in testSimpleParse() 99 final TestDescription testId2 = new TestDescription("Test", "pass3"); in testSimpleParse() 122 final TestDescription testId0 = new TestDescription("Test", "pass1"); in testParse() 128 final TestDescription testId1 = new TestDescription("Test", "pass2"); in testParse() 157 final TestDescription testId0 = new TestDescription("Test", "pass1"); in testParseBlacklist() 163 final TestDescription testId1 = new TestDescription("Test", "pass2"); in testParseBlacklist()
|