Searched refs:assertFailure (Results 1 – 10 of 10) sorted by relevance
74 receiver.assertFailure(SecurityException.class); in testStatusManagerNotAuthorizedOnSPlus()85 receiver.assertFailure(SecurityException.class); in testSetStatusEnabledNotExecutedOnSPlus()97 receiver.assertFailure(SecurityException.class); in testStatusManagerNotAuthorizedCompat()108 receiver.assertFailure(SecurityException.class); in testSetStatusEnabledNotExecutedCompat()120 receiver.assertFailure(SecurityException.class); in testUpdateAdIdCache_notAuthorized_sPlus()132 receiver.assertFailure(IllegalStateException.class); in testUpdateAdIdCache_notEnabled_sPlus()144 receiver.assertFailure(SecurityException.class); in testUpdateAdIdCache_notAuthorized_rPlus()156 receiver.assertFailure(IllegalStateException.class); in testUpdateAdIdCache_notEnabled_rPlus()183 receiver.assertFailure(SecurityException.class); in testGetAdservicesCommonStates_notEnabled_rPlus()
109 assertThrows(NullPointerException.class, () -> receiver.assertFailure(null)); in testAssertFailure_nullArg()118 assertFailure(receiver, mError); in testOnError()130 () -> receiver.assertFailure(NoSuchElementException.class)); in testOnError_wrongExceptionClass()189 private void assertFailure(OutcomeReceiverForTests<String> receiver, Exception expectedError) in assertFailure() method in OutcomeReceiverForTestsTest191 Exception actualError = receiver.assertFailure(expectedError.getClass()); in assertFailure()
104 callback.assertFailure(LimitExceededException.class); in testAdIdCompatibleManager_verifyRateLimitReached()118 Exception e = callback.assertFailure(IllegalStateException.class);
165 receiver.assertFailure(IllegalStateException.class);177 receiver.assertFailure(IllegalStateException.class);
211 receiver.assertFailure(IllegalStateException.class); in testGetchAndJoinCustomAudience_lowRamDevice()230 receiver.assertFailure(IllegalStateException.class); in testLeaveCustomAudienceRequest_lowRamDevice()
73 public <E extends Exception> E assertFailure(Class<E> expectedClass) in assertFailure() method in OutcomeReceiverForTests
54 public <E extends Exception> E assertFailure(Class<E> expectedClass) in assertFailure() method in AdServicesOutcomeReceiverForTests
120 Exception e = receiver.assertFailure(IllegalStateException.class);
543 receiver.assertFailure(IllegalStateException.class); in testGetTopics_lowRamDevice()
2625 assertFailure("Scroll out of range?");2913 private static void assertFailure(String msg) {