/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | MultiFailureDescriptionTest.java | 32 FailureDescription failure1 = FailureDescription.create("error message 1"); in testCreation() 33 FailureDescription failure2 = FailureDescription.create("error message 2"); in testCreation() 43 FailureDescription failure1 = FailureDescription.create("error message 1"); in testCreation_nested() 44 FailureDescription failure2 = FailureDescription.create("error message 2"); in testCreation_nested() 55 FailureDescription failure1 = FailureDescription.create("error message 1"); in testFormat() 56 FailureDescription failure2 = FailureDescription.create("error message 2"); in testFormat()
|
D | LogcatCrashResultForwarderTest.java | 70 FailureDescription.create( in testCaptureTestCrash_noCrashInLogcat() 109 ArgumentCaptor<FailureDescription> captured_1 = in testCaptureTestCrash_oneCrashingLogcat() 110 ArgumentCaptor.forClass(FailureDescription.class); in testCaptureTestCrash_oneCrashingLogcat() 114 ArgumentCaptor<FailureDescription> captured_2 = in testCaptureTestCrash_oneCrashingLogcat() 115 ArgumentCaptor.forClass(FailureDescription.class); in testCaptureTestCrash_oneCrashingLogcat() 171 verify(mMockListener).testFailed(test, FailureDescription.create("Something went wrong.")); in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded() 174 ArgumentCaptor<FailureDescription> captured = in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded() 175 ArgumentCaptor.forClass(FailureDescription.class); in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded() 219 verify(mMockListener).testFailed(test, FailureDescription.create("Something went wrong.")); in testCaptureTestCrash_duplicateStack() 222 ArgumentCaptor<FailureDescription> captured = in testCaptureTestCrash_duplicateStack() [all …]
|
D | SubprocessResultsReporterTest.java | 120 ArgumentCaptor<FailureDescription> captured = in testPrintEvent_printToSocket() 121 ArgumentCaptor.forClass(FailureDescription.class); in testPrintEvent_printToSocket() 140 FailureDescription capturedFailure = captured.getValue(); in testPrintEvent_printToSocket() 157 ArgumentCaptor<FailureDescription> captured = in testPrintEvent_printToSocket_StructuredFailures() 158 ArgumentCaptor.forClass(FailureDescription.class); in testPrintEvent_printToSocket_StructuredFailures() 159 ArgumentCaptor<FailureDescription> invocationFailureCaptured = in testPrintEvent_printToSocket_StructuredFailures() 160 ArgumentCaptor.forClass(FailureDescription.class); in testPrintEvent_printToSocket_StructuredFailures() 167 FailureDescription runFailure = in testPrintEvent_printToSocket_StructuredFailures() 168 FailureDescription.create("no reason") in testPrintEvent_printToSocket_StructuredFailures() 174 FailureDescription invocationFailure = in testPrintEvent_printToSocket_StructuredFailures() [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | FailureDescription.java | 28 public class FailureDescription { class 51 FailureDescription() {} in FailureDescription() method in FailureDescription 57 public FailureDescription setFailureStatus(TestRecordProto.FailureStatus status) { in setFailureStatus() 76 public FailureDescription setActionInProgress(ActionInProgress action) { in setActionInProgress() 87 public FailureDescription setDebugHelpMessage(String message) { in setDebugHelpMessage() 98 public FailureDescription setCause(Throwable cause) { in setCause() 109 public FailureDescription setRetriable(boolean retriable) { in setRetriable() 120 public FailureDescription setFullRerun(boolean fullRerun) { in setFullRerun() 131 public FailureDescription setErrorIdentifier(ErrorIdentifier errorId) { in setErrorIdentifier() 145 public FailureDescription setOrigin(String origin) { in setOrigin() [all …]
|
D | MultiFailureDescription.java | 32 public final class MultiFailureDescription extends FailureDescription { 34 private List<FailureDescription> mFailures = new ArrayList<>(); 36 public MultiFailureDescription(List<FailureDescription> failures) { in MultiFailureDescription() 41 public MultiFailureDescription(FailureDescription... failures) { in MultiFailureDescription() 51 public MultiFailureDescription addFailure(FailureDescription failure) { in addFailure() 64 public List<FailureDescription> getFailures() { in getFailures() 106 for (FailureDescription desc : mFailures) { in isRetriable() 123 for (FailureDescription f : mFailures) { in toString() 153 private void addMultiFailures(List<FailureDescription> failures) { in addMultiFailures() 154 for (FailureDescription failure : failures) { in addMultiFailures()
|
/tools/tradefederation/core/javatests/com/android/tradefed/retry/ |
D | BaseRetryDecisionTest.java | 33 import com.android.tradefed.result.FailureDescription; 140 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_failure() 151 FailureDescription.create("failure"), in testShouldRetry_failure_nonRetriable() 152 FailureDescription.create("failure2").setRetriable(false)); in testShouldRetry_failure_nonRetriable() 161 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_success() 174 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure() 184 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_noFullRetry() 186 TestRunResult result = createResult(FailureDescription.create("failure"), null, failure); in testShouldRetry_runFailure_noFullRetry() 197 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_nonRetriable() 201 FailureDescription failure2 = FailureDescription.create("run failure2"); in testShouldRetry_runFailure_nonRetriable() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | ConditionFailureMonitor.java | 18 import com.android.tradefed.result.FailureDescription; 37 public void invocationFailed(FailureDescription failure) { in invocationFailed() 47 public void testRunFailed(FailureDescription failure) { in testRunFailed() 59 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed()
|
D | DeviceUnavailableMonitor.java | 22 import com.android.tradefed.result.FailureDescription; 45 public void testRunFailed(FailureDescription failure) { in testRunFailed() 53 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 61 public void invocationFailed(FailureDescription failure) { in invocationFailed() 79 private DeviceNotAvailableException analyzeFailure(FailureDescription failure) { in analyzeFailure()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarderTest.java | 22 import com.android.tradefed.result.FailureDescription; 75 verify(mMockListener).testFailed(td1, FailureDescription.create("I failed")); in testForwarding() 78 verify(mMockListener).testFailed(td2, FailureDescription.create("I failed")); in testForwarding() 91 FailureDescription expectedFailure = in testForwarding_null() 92 FailureDescription.create( in testForwarding_null() 115 inOrder.verify(mMockListener).testFailed(td1, FailureDescription.create("I failed")); in testForwarding_null() 145 inOrder.verify(mMockListener).testFailed(td1, FailureDescription.create("I failed")); in testForwarding_null_ignored() 162 FailureDescription expectedFailure = in testForwarding_initError() 163 FailureDescription.create( in testForwarding_initError() 185 verify(mMockListener).testFailed(td1, FailureDescription.create("I failed")); in testForwarding_initError()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParser.java | 21 import com.android.tradefed.result.FailureDescription; 77 FailureDescription failure = in parse() 78 FailureDescription.create(errorMessage) in parse() 82 FailureDescription failure; in parse() 85 FailureDescription.create("Test timed out.") in parse() 89 FailureDescription.create(cmd_result.getStderr()) in parse() 97 FailureDescription failure = in parse() 98 FailureDescription.create(parserFailedMessage) in parse()
|
D | TestTimeoutEnforcer.java | 20 import com.android.tradefed.result.FailureDescription; 91 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 105 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() 130 FailureDescription failure = in testEnded() 131 FailureDescription.create( in testEnded()
|
D | GTestListener.java | 19 import com.android.tradefed.result.FailureDescription; 69 FailureDescription error = FailureDescription.create(errorMessage.toString()); in testRunEnded()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | JUnitXmlParserTest.java | 24 import com.android.tradefed.result.FailureDescription; 54 @Captor ArgumentCaptor<FailureDescription> failureCaptor; 88 FailureDescription failure = failureCaptor.getValue(); in testParse() 102 FailureDescription failure = in testParseErrorAndSkipped() 103 FailureDescription.create( in testParseErrorAndSkipped() 125 FailureDescription failure = in testParseError_format() 126 FailureDescription.create( in testParseError_format()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DeviceBatteryLevelChecker.java | 28 import com.android.tradefed.result.FailureDescription; 137 FailureDescription failure = in run() 138 FailureDescription.create(e.getMessage()) in run() 153 FailureDescription failure = in run() 154 FailureDescription.create("No battery charge information"); in run() 182 FailureDescription.create("Failed to determine battery level")); in runTest() 269 test, FailureDescription.create("Failed to read battery level")); in runBatteryCharging() 291 FailureDescription.create( in checkChargingSpeed()
|
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/ |
D | NullTestListener.java | 22 import com.android.tradefed.result.FailureDescription; 64 public void testRunFailed(FailureDescription failure) { in testRunFailed() 99 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 109 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() 154 public void invocationFailed(FailureDescription failure) { in invocationFailed()
|
D | ForwardingTestListener.java | 22 import com.android.tradefed.result.FailureDescription; 71 public void testRunFailed(FailureDescription failure) { in testRunFailed() 106 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 116 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() 161 public void invocationFailed(FailureDescription failure) { in invocationFailed()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestRunResult.java | 64 private FailureDescription mRunFailureError = null; 242 public FailureDescription getRunFailureDescription() { in getRunFailureDescription() 312 FailureDescription failure) { in updateTestResult() 319 FailureDescription failure, in updateTestResult() 340 FailureDescription.create(trace)); in testFailed() 343 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 351 FailureDescription.create(trace)); in testAssumptionFailure() 354 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() 388 testRunFailed((FailureDescription) null); in testRunFailed() 390 testRunFailed(FailureDescription.create(errorMessage)); in testRunFailed() [all …]
|
D | TestResult.java | 37 private FailureDescription mFailureDescription; 79 public FailureDescription getFailure() { in getFailure() 154 mFailureDescription = FailureDescription.create(stackTrace); in setStackTrace() 158 public void setFailure(FailureDescription failureDescription) { in setFailure() 223 List<FailureDescription> errors = new ArrayList<>(); in merge() 250 errors.add(FailureDescription.create("incomplete test case result.")); in merge()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | GTestResultParserTest.java | 25 import com.android.tradefed.result.FailureDescription; 220 ArgumentCaptor<FailureDescription> captured = in testParseSimpleFile_LinkError() 221 ArgumentCaptor.forClass(FailureDescription.class); in testParseSimpleFile_LinkError() 249 ArgumentCaptor<FailureDescription> captured = in testParseSimpleFile_earlyError() 250 ArgumentCaptor.forClass(FailureDescription.class); in testParseSimpleFile_earlyError() 296 ArgumentCaptor<FailureDescription> captured = in testParseSimpleFileWithoutRunComplete() 297 ArgumentCaptor.forClass(FailureDescription.class); in testParseSimpleFileWithoutRunComplete() 306 .testFailed((TestDescription) Mockito.any(), (FailureDescription) Mockito.any()); in testParseSimpleFileWithoutRunComplete() 312 FailureDescription cap = captured.getValue(); in testParseSimpleFileWithoutRunComplete() 341 ArgumentCaptor<FailureDescription> captured = in testParse_interrupted() [all …]
|
D | DeviceBatteryLevelCheckerTest.java | 37 import com.android.tradefed.result.FailureDescription; 159 FailureDescription.create("Failed to determine battery level")); in testNull() 162 FailureDescription failure = FailureDescription.create("No battery charge information"); in testNull() 205 .testFailed(Mockito.eq(mTestDescription2), Mockito.<FailureDescription>any()); in testLow() 273 FailureDescription.create("Failed to read battery level")); in testLow_becomeNull() 276 FailureDescription failure = FailureDescription.create("No battery charge information"); in testLow_becomeNull()
|
D | GTestListenerTest.java | 23 import com.android.tradefed.result.FailureDescription; 95 ArgumentCaptor<FailureDescription> capturedFailureDescription = in testDuplicateTestsFailsWithOptionEnabled() 96 ArgumentCaptor.forClass(FailureDescription.class); in testDuplicateTestsFailsWithOptionEnabled() 117 FailureDescription failureDescription = capturedFailureDescription.getValue(); in testDuplicateTestsFailsWithOptionEnabled()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 34 import com.android.tradefed.result.FailureDescription; 165 ArgumentCaptor<FailureDescription> captureInvocFailure = in testEvents() 166 ArgumentCaptor.forClass(FailureDescription.class); in testEvents() 223 inOrder.verify(mMockListener).testFailed(test2, FailureDescription.create("I failed")); in testEvents() 246 FailureDescription invocFailureCaptured = captureInvocFailure.getValue(); in testEvents() 265 FailureDescription invocFailure = in testEvents_invocationFailure() 266 FailureDescription.create(failure.getMessage()) in testEvents_invocationFailure() 275 ArgumentCaptor<FailureDescription> captureInvocFailure = in testEvents_invocationFailure() 276 ArgumentCaptor.forClass(FailureDescription.class); in testEvents_invocationFailure() 291 FailureDescription invocFailureCaptured = captureInvocFailure.getValue(); in testEvents_invocationFailure() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | FormattedGeneratorReporter.java | 22 import com.android.tradefed.result.FailureDescription; 90 FailureDescription description = in invocationFailed() 91 FailureDescription.create(cause.getMessage()).setCause(cause); in invocationFailed() 99 public void invocationFailed(FailureDescription failure) { in invocationFailed()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | RemoteTestTimeOutEnforcer.java | 19 import com.android.tradefed.result.FailureDescription; 76 FailureDescription failure = FailureDescription.create( in testRunEnded()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarder.java | 21 import com.android.tradefed.result.FailureDescription; 116 FailureDescription.create(trace)); in testFailed() 161 FailureDescription failure = in testEnded() 162 FailureDescription.create(message, FailureStatus.TEST_FAILURE) in testEnded() 205 FailureDescription failureDescription = FailureDescription.create(failure); in testRunFailed()
|