Home
last modified time | relevance | path

Searched refs:ExpectFailure (Results 1 – 6 of 6) sorted by relevance

/cts/tests/signature/tests/src/android/signature/cts/tests/
DAnnotationCheckerTest.java86 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()
97 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()
116 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()
127 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()
144 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()
155 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()
172 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()
183 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()
241 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testDetectMissingAnnotation()
253 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testDetectMissingAnnotation()
[all …]
DApiComplianceCheckerTest.java73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS)) { in testMissingClass()
327 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testFieldValueChanged()
413 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClass()
436 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassSwitchToAbstract()
465 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassWithCtorSwitchToAbstract_PreviousApi()
526 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingAbstractFromAClass()
553 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingAbstractToAClass()
565 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClass()
594 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClassWithCtor_PreviousApi()
609 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingStaticToInnerClass()
[all …]
DFailureHandlingTest.java90 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testExpectFailure_DetectsNoFailures()
104 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testExpectFailure_DetectsTooManyFailures()
DExpectedFailuresFilterAnnotationCheckerTest.java73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testIgnoreExpectedFailures_TestStillFails()
DApiPresenceCheckerTest.java198 protected static class ExpectFailure extends FailureGathererObserver { class in ApiPresenceCheckerTest
202 ExpectFailure(FailureType expectedType) { in ExpectFailure() method in ApiPresenceCheckerTest.ExpectFailure
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/truth/
DEventLogsSubjectTest.java22 import static com.google.common.truth.ExpectFailure.expectFailureAbout;
31 import com.google.common.truth.ExpectFailure;
78 (ExpectFailure.SimpleSubjectBuilderCallback<EventLogsSubject<CustomEvent>, in eventOccurredWithin_eventDidNotOccur_fails()
84ExpectFailure.SimpleSubjectBuilderCallback<EventLogsSubject<E>, EventLogs<E>> callback) { in expectFailure()