Home
last modified time | relevance | path

Searched refs:TestStatus (Results 1 – 17 of 17) sorted by relevance

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DTestStatus.java21 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()
DTestResult.java27 private TestStatus mResult;
68 public TestStatus getResultStatus() { in getResultStatus()
76 public void setResultStatus(TestStatus status) { in setResultStatus()
182 setResultStatus(TestStatus.FAIL); in failed()
199 if (getResultStatus() != TestStatus.FAIL) { in passed()
200 setResultStatus(TestStatus.PASS); in passed()
214 setResultStatus(TestStatus.PASS); in skipped()
265 setResultStatus(TestStatus.FAIL); in removeResult()
DICaseResult.java51 List<ITestResult> getResults(TestStatus status); in getResults()
56 int countResults(TestStatus status); in countResults()
DLightInvocationResult.java44 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()
DITestResult.java39 TestStatus getResultStatus(); in getResultStatus()
46 void setResultStatus(TestStatus status); in setResultStatus()
DCaseResult.java73 public List<ITestResult> getResults(TestStatus status) { in getResults()
97 public int countResults(TestStatus status) { in countResults()
DIModuleResult.java145 int countResults(TestStatus status); in countResults()
DIInvocationResult.java41 int countResults(TestStatus result); in countResults()
DScreenshotsMetadataHandler.java68 TestStatus status = r.getResultStatus(); in writeResults()
DModuleResult.java246 public int countResults(TestStatus status) { in countResults()
DInvocationResult.java71 public int countResults(TestStatus result) { in countResults()
DResultHandler.java278 test.setResultStatus(TestStatus.getStatus(result)); in getResultFromDir()
404 int passed = result.countResults(TestStatus.PASS); in writeResults()
405 int failed = result.countResults(TestStatus.FAIL); in writeResults()
511 Integer.toString(module.countResults(TestStatus.PASS))); in writeResults()
516 TestStatus status = r.getResultStatus(); in writeResults()
DChecksumReporter.java334 .append(module.countResults(TestStatus.FAIL)); in generateModuleResultSignature()
343 .append(module.countResults(TestStatus.FAIL)); in generateModuleSummarySignature()
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DCaseResultTest.java63 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()
DResultHandlerTest.java221 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization()
230 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization()
237 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization()
301 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing()
315 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing()
327 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing()
342 moduleBTest6.setResultStatus(TestStatus.FAIL); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing()
497 assertEquals("Expected 3 passes", 3, lightResult.countResults(TestStatus.PASS)); in checkLightResult()
498 assertEquals("Expected 1 failure", 1, lightResult.countResults(TestStatus.FAIL)); in checkLightResult()
529 assertEquals("Expected 3 passes", 3, result.countResults(TestStatus.PASS)); in checkResult()
[all …]
/platform_testing/host_runners/utils/tests/src/com/android/runner/utils/
DInstrumentationResultProtoParserTest.java28 import com.android.commands.am.InstrumentationData.TestStatus;
766 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildSingleTestMetricSuccessProtoFile()
784 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildRunMetricSuccessProtoFile()
803 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildTestAndRunMetricSuccessProtoFile()
822 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildMultipleTestAndRunMetricSuccessProtoFile()
847 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildSingleTestFailureProtoFile()
866 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildOneTestPassOneTestFailProtoFile()
890 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildTestsIncompleteProtoFile()
903 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildPartialTestsIncompleteProtoFile()
922 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildOneTestNotStarted()
[all …]
/platform_testing/host_runners/utils/src/com/android/runner/utils/
DInstrumentationResultProtoParser.java23 import com.android.commands.am.InstrumentationData.TestStatus;
99 List<TestStatus> multipleTestStatus = instrumentSession.getTestStatusList(); in processProtoFile()
100 for (TestStatus teststatus : multipleTestStatus) { in processProtoFile()
123 public void processTestStatus(TestStatus testStatus) { in processTestStatus()