/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/ |
D | ResultReporterTest.java | 26 import com.android.compatibility.common.util.TestStatus; 160 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testResultReporting() 161 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testResultReporting() 174 assertEquals(String.format("Expected pass for %s", TEST_1), TestStatus.PASS, in testResultReporting() 178 assertEquals(String.format("Expected fail for %s", TEST_2), TestStatus.FAIL, in testResultReporting() 182 assertEquals(String.format("Expected fail for %s", TEST_3), TestStatus.FAIL, in testResultReporting() 215 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testRepeatedExecutions() 216 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testRepeatedExecutions() 230 assertEquals(String.format("Expected pass for %s", TEST_1), TestStatus.PASS, in testRepeatedExecutions() 236 assertEquals(String.format("Expected fail for %s", TEST_2), TestStatus.FAIL, in testRepeatedExecutions() [all …]
|
D | SubPlanHelperTest.java | 29 import com.android.compatibility.common.util.TestStatus; 176 moduleATest1.setResultStatus(TestStatus.PASS); in populateResults() 184 moduleBTest3.setResultStatus(TestStatus.FAIL); in populateResults() 186 moduleBTest4.setResultStatus(TestStatus.PASS); in populateResults()
|
D | ChecksumReporterTest.java | 26 import com.android.compatibility.common.util.TestStatus; 132 mFailedTest.setResultStatus(TestStatus.PASS); in testInvalidChecksums()
|
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | TestStatus.java | 21 public enum TestStatus { enum 27 private TestStatus(String storedValue) { in TestStatus() method in TestStatus 47 static TestStatus getStatus(String value) { in getStatus() 48 for (TestStatus status : TestStatus.values()) { in getStatus()
|
D | TestResult.java | 27 private TestStatus mResult; 67 public TestStatus getResultStatus() { in getResultStatus() 75 public void setResultStatus(TestStatus status) { in setResultStatus() 181 setResultStatus(TestStatus.FAIL); in failed() 198 if (getResultStatus() != TestStatus.FAIL) { in passed() 199 setResultStatus(TestStatus.PASS); in passed() 213 setResultStatus(TestStatus.PASS); in skipped() 263 setResultStatus(TestStatus.FAIL); in removeResult()
|
D | LightInvocationResult.java | 44 private Map<TestStatus, Integer> mResultCounts; 66 mResultCounts = new HashMap<TestStatus, Integer>(); in LightInvocationResult() 67 for (TestStatus status : TestStatus.values()) { in LightInvocationResult() 88 public int countResults(TestStatus result) { in countResults()
|
D | ICaseResult.java | 51 List<ITestResult> getResults(TestStatus status); in getResults() 56 int countResults(TestStatus status); in countResults()
|
D | ITestResult.java | 39 TestStatus getResultStatus(); in getResultStatus() 46 void setResultStatus(TestStatus status); in setResultStatus()
|
D | CaseResult.java | 73 public List<ITestResult> getResults(TestStatus status) { in getResults() 97 public int countResults(TestStatus status) { in countResults()
|
D | IModuleResult.java | 145 int countResults(TestStatus status); in countResults()
|
D | IInvocationResult.java | 41 int countResults(TestStatus result); in countResults()
|
D | ResultHandler.java | 265 test.setResultStatus(TestStatus.getStatus(result)); in getResultFromDir() 391 int passed = result.countResults(TestStatus.PASS); in writeResults() 392 int failed = result.countResults(TestStatus.FAIL); in writeResults() 498 Integer.toString(module.countResults(TestStatus.PASS))); in writeResults() 503 TestStatus status = r.getResultStatus(); in writeResults()
|
D | ChecksumReporter.java | 334 .append(module.countResults(TestStatus.FAIL)); in generateModuleResultSignature() 343 .append(module.countResults(TestStatus.FAIL)); in generateModuleSummarySignature()
|
D | InvocationResult.java | 71 public int countResults(TestStatus result) { in countResults()
|
D | ModuleResult.java | 246 public int countResults(TestStatus status) { in countResults()
|
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/ |
D | CaseResultTest.java | 63 assertEquals("Expected status to be set", TestStatus.FAIL, testResult.getResultStatus()); in testResultReporting() 68 assertEquals("Expected status to be set", TestStatus.PASS, testResult.getResultStatus()); in testResultReporting() 76 assertEquals("Expected two failures", 2, mResult.countResults(TestStatus.FAIL)); in testCountResults() 77 assertEquals("Expected one pass", 1, mResult.countResults(TestStatus.PASS)); in testCountResults() 92 assertEquals("Expected one failures", 1, mResult.countResults(TestStatus.FAIL)); in testMergeCase() 93 assertEquals("Expected two pass", 2, mResult.countResults(TestStatus.PASS)); in testMergeCase() 108 assertEquals("Expected one failures", 1, mResult.countResults(TestStatus.FAIL)); in testMergeCase_passToFail() 109 assertEquals("Expected two pass", 2, mResult.countResults(TestStatus.PASS)); in testMergeCase_passToFail()
|
D | ResultHandlerTest.java | 218 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization() 227 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization() 234 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization() 298 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing() 312 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing() 323 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing() 484 assertEquals("Expected 3 passes", 3, lightResult.countResults(TestStatus.PASS)); in checkLightResult() 485 assertEquals("Expected 1 failure", 1, lightResult.countResults(TestStatus.FAIL)); in checkLightResult() 516 assertEquals("Expected 3 passes", 3, result.countResults(TestStatus.PASS)); in checkResult() 517 assertEquals("Expected 1 failure", 1, result.countResults(TestStatus.FAIL)); in checkResult() [all …]
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/ |
D | SubPlanHelper.java | 29 import com.android.compatibility.common.util.TestStatus; 71 private static final Map<String, TestStatus> STATUS_MAP; 73 Map<String, TestStatus> statusMap = new HashMap<String, TestStatus>(); 74 statusMap.put(PASSED, TestStatus.PASS); in statusMap.put() 75 statusMap.put(FAILED, TestStatus.FAIL); in statusMap.put() 230 Set<TestStatus> statusesToRun = getStatusesToRun(); in createSubPlan() 318 for (TestStatus status : getStatusesToRun()) { in shouldRunModule() 337 Set<TestStatus> statusesToRun = getStatusesToRun(); in shouldRunEntireModule() 338 for (TestStatus status : TestStatus.values()) { in shouldRunEntireModule() 355 private Set<TestStatus> getStatusesToRun() { in getStatusesToRun() [all …]
|
D | ResultReporter.java | 35 import com.android.compatibility.common.util.TestStatus; 374 if (mCurrentResult.getResultStatus() == TestStatus.FAIL) { in testEnded() 660 mResult.countResults(TestStatus.PASS), in finalizeResults() 661 mResult.countResults(TestStatus.FAIL), in finalizeResults()
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ |
D | IntegrationTest.java | 25 import com.android.compatibility.common.util.TestStatus; 214 assertEquals(2, result.countResults(TestStatus.PASS)); in testSingleModuleRun() 215 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun() 317 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete() 318 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_incomplete() 347 assertEquals(2, result.countResults(TestStatus.PASS)); in testSingleModuleRun_completeAfterInternalRetry() 348 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_completeAfterInternalRetry() 386 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete_rerun_incomplete() 387 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_incomplete_rerun_incomplete() 416 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete_rerun_incomplete() [all …]
|
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/ |
D | ModuleResultTest.java | 74 assertEquals("Expected two failures", 2, mResult.countResults(TestStatus.FAIL)); in testCountResults() 75 assertEquals("Expected one pass", 1, mResult.countResults(TestStatus.PASS)); in testCountResults()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/ |
D | CertificationChecksumHelper.java | 19 import com.android.ddmlib.testrunner.TestResult.TestStatus; 200 .append(module.getNumTestsInState(TestStatus.FAILURE)); in generateModuleResultSignature() 209 .append(module.getNumTestsInState(TestStatus.FAILURE)); in generateModuleSummarySignature()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
D | ApkInstrumentationPreparer.java | 20 import com.android.ddmlib.testrunner.TestResult.TestStatus; 139 if (TestStatus.FAILURE.equals(results.getValue().getStatus())) { in instrument()
|