Searched refs:mockCallback (Results 1 – 3 of 3) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPackageInstallerTest.java | 44 PackageInstaller.SessionCallback mockCallback = mock(PackageInstaller.SessionCallback.class); in packageInstallerCreateAndAbandonSession() local 45 packageInstaller.registerSessionCallback(mockCallback, new Handler()); in packageInstallerCreateAndAbandonSession() 59 verify(mockCallback).onCreated(sessionId); in packageInstallerCreateAndAbandonSession() 60 verify(mockCallback).onFinished(sessionId, false); in packageInstallerCreateAndAbandonSession() 109 PackageInstaller.SessionCallback mockCallback = mock(PackageInstaller.SessionCallback.class); in registerSessionCallback_sessionFails() local 110 packageInstaller.registerSessionCallback(mockCallback, new Handler()); in registerSessionCallback_sessionFails() 112 verify(mockCallback).onCreated(sessionId); in registerSessionCallback_sessionFails() 123 verify(mockCallback).onFinished(sessionId, false); in registerSessionCallback_sessionFails() 128 PackageInstaller.SessionCallback mockCallback = mock(PackageInstaller.SessionCallback.class); in registerSessionCallback_sessionSucceeds() local 129 packageInstaller.registerSessionCallback(mockCallback, new Handler()); in registerSessionCallback_sessionSucceeds() [all …]
|
D | ShadowFingerprintManagerTest.java | 40 AuthenticationCallback mockCallback = mock(AuthenticationCallback.class); in authenticate_success() local 44 manager.authenticate(cryptoObject, null, 0, mockCallback, null); in authenticate_success() 49 verify(mockCallback).onAuthenticationSucceeded(result.capture()); in authenticate_success() 57 AuthenticationCallback mockCallback = mock(AuthenticationCallback.class); in authenticate_failure() local 61 manager.authenticate(cryptoObject, null, 0, mockCallback, null); in authenticate_failure() 65 verify(mockCallback).onAuthenticationFailed(); in authenticate_failure()
|
D | ShadowKeyguardManagerTest.java | 131 KeyguardDismissCallback mockCallback = mock(KeyguardDismissCallback.class); in requestDismissKeyguard_dismissCancelled() local 136 manager.requestDismissKeyguard(activity, mockCallback); in requestDismissKeyguard_dismissCancelled() 141 verify(mockCallback).onDismissCancelled(); in requestDismissKeyguard_dismissCancelled() 149 KeyguardDismissCallback mockCallback = mock(KeyguardDismissCallback.class); in requestDismissKeyguard_dismissSucceeded() local 154 manager.requestDismissKeyguard(activity, mockCallback); in requestDismissKeyguard_dismissSucceeded() 159 verify(mockCallback).onDismissSucceeded(); in requestDismissKeyguard_dismissSucceeded()
|