/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestResultParserTest.java | 20 import com.android.tradefed.result.TestDescription; 43 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleFile() 45 (TestDescription) EasyMock.anyObject(), in testParseSimpleFile() 69 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleFileNoTimes() 71 (TestDescription) EasyMock.anyObject(), in testParseSimpleFileNoTimes() 112 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseLargerFile() 114 (TestDescription) EasyMock.anyObject(), in testParseLargerFile() 139 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() 141 (TestDescription) EasyMock.anyObject(), in testParseWithFailures() 144 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() [all …]
|
D | InstrumentationFileTestTest.java | 28 import com.android.tradefed.result.TestDescription; 90 final Collection<TestDescription> testsList = new ArrayList<>(1); in testRun_singleSuccessfulTest() 91 final TestDescription test = new TestDescription("ClassFoo", "methodBar"); in testRun_singleSuccessfulTest() 101 listener.testStarted(TestDescription.convertToIdentifier(test)); in testRun_singleSuccessfulTest() 103 TestDescription.convertToIdentifier(test), Collections.emptyMap()); in testRun_singleSuccessfulTest() 146 final Collection<TestDescription> testsList = new ArrayList<>(1); in testRun_reRunOneFailedToCompleteTest() 147 final TestDescription test1 = new TestDescription("ClassFoo1", "methodBar1"); in testRun_reRunOneFailedToCompleteTest() 148 final TestDescription test2 = new TestDescription("ClassFoo2", "methodBar2"); in testRun_reRunOneFailedToCompleteTest() 149 final TestDescription test3 = new TestDescription("ClassFoo3", "methodBar3"); in testRun_reRunOneFailedToCompleteTest() 162 listener.testStarted(TestDescription.convertToIdentifier(test1)); in testRun_reRunOneFailedToCompleteTest() [all …]
|
D | HostTestTest.java | 29 import com.android.tradefed.result.TestDescription; 461 TestDescription test1 = new TestDescription(SuccessTestCase.class.getName(), "testPass"); in testRun_testcase() 462 TestDescription test2 = new TestDescription(SuccessTestCase.class.getName(), "testPass2"); in testRun_testcase() 480 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase() 481 TestDescription test2 = in testRun_MetricTestCase() 482 new TestDescription(TestMetricTestCase.class.getName(), "testPass2"); in testRun_MetricTestCase() 506 TestDescription test1 = new TestDescription(LogMetricTestCase.class.getName(), "testPass"); in testRun_LogMetricTestCase() 507 TestDescription test2 = new TestDescription(LogMetricTestCase.class.getName(), "testPass2"); in testRun_LogMetricTestCase() 538 TestDescription test1 = new TestDescription(TestMetricTestCase.class.getName(), "testPass"); in testRun_MetricTestCase_withOption() 539 TestDescription test2 = in testRun_MetricTestCase_withOption() [all …]
|
D | DeviceTestCaseTest.java | 24 import com.android.tradefed.result.TestDescription; 108 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() 109 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() 133 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_includeFilter() 155 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_excludeFilter() 177 final TestDescription test1 = in testRun_includeAnnotationFiltering() 178 new TestDescription(MockAnnotatedTest.class.getName(), "test1"); in testRun_includeAnnotationFiltering() 194 Capture<TestDescription> capture = new Capture<>(); in testRun_checkAnnotation() 207 List<TestDescription> descriptions = capture.getValues(); in testRun_checkAnnotation() 209 for (TestDescription desc : descriptions) { in testRun_checkAnnotation() [all …]
|
D | GTestListTestParserTest.java | 20 import com.android.tradefed.result.TestDescription; 43 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleList() 45 (TestDescription) EasyMock.anyObject(), in testParseSimpleList() 69 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseMultiClassList() 71 (TestDescription) EasyMock.anyObject(), in testParseMultiClassList() 107 TestDescription test1 = in testParseSimpleList_withSpecialChar() 108 new TestDescription( in testParseSimpleList_withSpecialChar() 115 TestDescription test2 = in testParseSimpleList_withSpecialChar() 116 new TestDescription( in testParseSimpleList_withSpecialChar() 133 private void verifyTestDescriptions(List<TestDescription> tests, int classesExpected) in verifyTestDescriptions() [all …]
|
D | GTestFuncTest.java | 23 import com.android.tradefed.result.TestDescription; 78 TestDescription id = new TestDescription(testClass, testName); in testRun() 101 private void doNativeTestAppRunSingleTestFailure(TestDescription testId) { in doNativeTestAppRunSingleTestFailure() 120 TestDescription testId = in testRun_testCrash() 121 new TestDescription( in testRun_testCrash() 137 TestDescription testId = in testRun_deviceReboot() 138 new TestDescription( in testRun_deviceReboot() 175 TestDescription testId = in testRun_timeout() 176 new TestDescription( in testRun_timeout()
|
D | DeviceTestSuiteTest.java | 23 import com.android.tradefed.result.TestDescription; 65 final TestDescription test1 = new TestDescription(MockTest.class.getName(), "test1"); in testRun_suite() 66 final TestDescription test2 = new TestDescription(MockTest.class.getName(), "test2"); in testRun_suite() 89 final TestDescription test1 = new TestDescription(MockAbortTest.class.getName(), "test1"); in testRun_deviceNotAvail()
|
D | InstrumentationSerialTestTest.java | 26 import com.android.tradefed.result.TestDescription; 61 final TestDescription test = new TestDescription("FooTest", "testFoo"); in testRun() 62 final Collection<TestDescription> testList = new ArrayList<TestDescription>(1); in testRun() 108 final TestDescription test = new TestDescription("FooTest", "testFoo"); in testRun_runFailure() 110 final Collection<TestDescription> testList = new ArrayList<TestDescription>(1); in testRun_runFailure() 160 new InstrumentationTest(), new ArrayList<TestDescription>()); in testRun_noDevice()
|
D | GTestXmlResultParserTest.java | 22 import com.android.tradefed.result.TestDescription; 85 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseSimpleFile() 87 (TestDescription) EasyMock.anyObject(), in testParseSimpleFile() 114 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseLargerFile() 116 (TestDescription) EasyMock.anyObject(), in testParseLargerFile() 145 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() 147 (TestDescription) EasyMock.anyObject(), in testParseWithFailures() 151 mockRunListener.testStarted((TestDescription) EasyMock.anyObject()); in testParseWithFailures() 153 (TestDescription) EasyMock.anyObject(), EasyMock.eq(expectedMessage)); in testParseWithFailures() 155 (TestDescription) EasyMock.anyObject(), in testParseWithFailures() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | GranularRetriableTestWrapperTest.java | 33 import com.android.tradefed.result.TestDescription; 55 protected ArrayList<TestDescription> mTestCases; 56 private Map<TestDescription, Boolean> mShouldFail; 60 TestDescription defaultTestCase = new TestDescription("ClassFoo", "TestFoo"); in BasicFakeTest() 62 mShouldFail = new HashMap<TestDescription, Boolean>(); in BasicFakeTest() 66 public BasicFakeTest(ArrayList<TestDescription> testCases) { in BasicFakeTest() 68 mShouldFail = new HashMap<TestDescription, Boolean>(); in BasicFakeTest() 69 for (TestDescription testCase : testCases) { in BasicFakeTest() 74 public void setFailedTestCase(TestDescription testCase) { in setFailedTestCase() 81 for (TestDescription td : mTestCases) { in run() [all …]
|
D | ModuleListenerTest.java | 23 import com.android.tradefed.result.TestDescription; 51 TestDescription tid = new TestDescription("class", "test" + i); in testRegularExecution() 65 TestDescription tid = new TestDescription("class", "test" + numTests); in testRun_missingTests() 83 TestDescription tid = new TestDescription("class", "test" + numTests); in testInternalRerun() 92 TestDescription tid2 = new TestDescription("class", "test" + i); in testInternalRerun() 108 TestDescription tid = new TestDescription("class", "test" + i); in testMultiTestRun() 116 TestDescription tid = new TestDescription("class2", "test" + i); in testMultiTestRun()
|
D | TestSuiteStub.java | 25 import com.android.tradefed.result.TestDescription; 76 protected List<TestDescription> mShardedTestToRun; 82 TestDescription tid = new TestDescription("TestStub", "test1"); in testAttempt() 94 TestDescription tid2 = new TestDescription("TestStub", "test2"); in testAttempt() 108 TestDescription tid3 = new TestDescription("TestStub", "test3"); in testAttempt() 153 for (TestDescription tid : mShardedTestToRun) { in run() 158 TestDescription tid = mShardedTestToRun.get(0); in run() 164 TestDescription tid = new TestDescription("TestStub", "failed" + mShardIndex); in run() 180 for (TestDescription id : mShardedTestToRun) { in split()
|
/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 | ITestLifeCycleReceiver.java | 94 public default void testStarted(TestDescription test) {} in testStarted() 103 default void testStarted(TestDescription test, long startTime) { in testStarted() 115 public default void testFailed(TestDescription test, String trace) {} in testFailed() 123 public default void testAssumptionFailure(TestDescription test, String trace) {} in testAssumptionFailure() 131 public default void testIgnored(TestDescription test) {} in testIgnored() 142 public default void testEnded(TestDescription test, Map<String, String> testMetrics) { in testEnded() 155 public default void testEnded(TestDescription test, HashMap<String, Metric> testMetrics) {} in testEnded() 166 TestDescription test, long endTime, Map<String, String> testMetrics) { in testEnded() 179 TestDescription test, long endTime, HashMap<String, Metric> testMetrics) { in testEnded()
|
D | TestDescription.java | 28 public final class TestDescription implements Serializable { 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() 154 public static TestDescription createFromTestIdentifier(TestIdentifier testId) { in createFromTestIdentifier() 155 return new TestDescription(testId.getClassName(), testId.getTestName()); in createFromTestIdentifier() 165 public static TestIdentifier convertToIdentifier(TestDescription desc) { in convertToIdentifier()
|
D | TestRunResult.java | 42 private Map<TestDescription, TestResult> mTestResults = 43 new LinkedHashMap<TestDescription, TestResult>(); 79 public Map<TestDescription, TestResult> getTestResults() { in getTestResults() 94 public Set<TestDescription> getCompletedTests() { in getCompletedTests() 105 public Set<TestDescription> getFailedTests() { in getFailedTests() 110 private Set<TestDescription> getTestsInState(List<TestStatus> statuses) { in getTestsInState() 111 Set<TestDescription> tests = new LinkedHashSet<>(); in getTestsInState() 112 for (Map.Entry<TestDescription, TestResult> testEntry : getTestResults().entrySet()) { in getTestsInState() 193 public void testStarted(TestDescription test) { in testStarted() 197 public void testStarted(TestDescription test, long startTime) { in testStarted() [all …]
|
/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()
|
D | MetricsXmlParserTest.java | 32 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/tests/src/com/android/tradefed/testtype/junit4/ |
D | DeviceParameterizedRunnerTest.java | 25 import com.android.tradefed.result.TestDescription; 112 TestDescription test1 = in testRun() 113 new TestDescription(TestJUnitParamsClass.class.getName(), "testOne"); in testRun() 117 TestDescription test2_p1 = in testRun() 118 new TestDescription(TestJUnitParamsClass.class.getName(), "testTwo[0]"); in testRun() 122 TestDescription test2_2 = in testRun() 123 new TestDescription(TestJUnitParamsClass.class.getName(), "testTwo[1]"); in testRun() 142 TestDescription test1 = in testRun_collectOnly() 143 new TestDescription(TestJUnitParamsClass.class.getName(), "testOne"); in testRun_collectOnly() 147 TestDescription test2_p1 = in testRun_collectOnly() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | ConsoleResultReporterTest.java | 75 TestDescription testId = new TestDescription("class", "method"); in testGetInvocationSummary_test_metrics() 125 TestDescription run1test1Id = new TestDescription("class1", "method1"); in testGetInvocationSummary_all() 133 TestDescription run1test2Id = new TestDescription("class1", "method2"); in testGetInvocationSummary_all() 140 TestDescription run1test3Id = new TestDescription("class1", "method3"); in testGetInvocationSummary_all() 148 TestDescription run1test4Id = new TestDescription("class1", "method4"); in testGetInvocationSummary_all() 159 TestDescription run2test1Id = new TestDescription("class2", "method1"); in testGetInvocationSummary_all() 164 TestDescription run2test2Id = new TestDescription("class2", "method2"); in testGetInvocationSummary_all() 168 TestDescription run2test3Id = new TestDescription("class2", "method3"); in testGetInvocationSummary_all() 173 TestDescription run2test4Id = new TestDescription("class2", "method4"); in testGetInvocationSummary_all()
|
D | TestDescriptionTest.java | 31 private TestDescription mDescription; 55 new TestDescription( in testCreateDescription() 68 mDescription = new TestDescription("className", "testName"); in testCreateDescription_noAnnotation() 78 mDescription = new TestDescription("className", "testName[0]"); in testCreateDescription_parameterized() 83 mDescription = new TestDescription("className", "testName[key=value]"); in testCreateDescription_parameterized() 87 mDescription = new TestDescription("className", "testName[key=\"quoted value\"]"); in testCreateDescription_parameterized() 91 mDescription = new TestDescription("className", "testName[key:22]"); in testCreateDescription_parameterized()
|
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() 122 TestDescription test = new TestDescription("FooTest", "testBar"); in testLogSavedFile_testCases() 148 TestDescription test = new TestDescription("FooTest", "testBar"); in testLogSavedFile_runLogs() 196 TestDescription testcase1 = new TestDescription("Foo", "foo"); in testMergeRetriedRunResults_fullMergeLogicCheck() 197 TestDescription testcase2 = new TestDescription("Bar", "bar"); in testMergeRetriedRunResults_fullMergeLogicCheck() 198 TestDescription testcase3 = new TestDescription("Baz", "baz"); in testMergeRetriedRunResults_fullMergeLogicCheck() 234 Map<TestDescription, TestResult> testResult = result.getTestResults(); in testMergeRetriedRunResults_fullMergeLogicCheck() 256 TestDescription testcase = new TestDescription("Foo", "foo"); in testMergeRetriedRunResults_checkMergingStackTraces() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/metricregression/ |
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()
|
/tools/tradefederation/core/prod-tests/tests/src/com/android/continuous/ |
D | SmokeTestTest.java | 21 import com.android.tradefed.result.TestDescription; 40 TestDescription in = in testRewrite() 41 new TestDescription( in testRewrite() 44 TestDescription out = in testRewrite() 45 new TestDescription("SmokeFAST", "com.android.voicedialer.VoiceDialerActivity"); in testRewrite()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | InstrumentationFileTest.java | 26 import com.android.tradefed.result.TestDescription; 55 private final Collection<TestDescription> mTests; 74 Collection<TestDescription> testsToRun, in InstrumentationFileTest() 117 Collection<TestDescription> tests, final ITestInvocationListener listener) in writeTestsToFileAndRun() 140 Collection<TestDescription> uniqueMethods = createRerunSet(tests); in writeTestsToFileAndRun() 142 for (TestDescription testToRun : uniqueMethods) { in writeTestsToFileAndRun() 194 Collection<TestDescription> completedTests = in runTests() 228 private Collection<TestDescription> createRerunSet(Collection<TestDescription> tests) { in createRerunSet() 229 Map<String, TestDescription> uniqueMethods = new LinkedHashMap<>(); in createRerunSet() 230 for (TestDescription test : tests) { in createRerunSet()
|