@@ -4,6 +4,7 @@ import android.app.Activity
44import android.content.Context
55import android.content.Intent
66import android.net.Uri
7+ import android.os.Looper
78import android.os.Parcelable
89import androidx.test.espresso.intent.matcher.IntentMatchers
910import androidx.test.espresso.intent.matcher.UriMatchers
@@ -55,6 +56,7 @@ import org.mockito.Mockito.`when`
5556import org.mockito.MockitoAnnotations
5657import org.robolectric.Robolectric
5758import org.robolectric.RobolectricTestRunner
59+ import org.robolectric.Shadows.shadowOf
5860import org.robolectric.annotation.Config
5961import org.robolectric.shadows.ShadowLooper
6062import java.io.ByteArrayInputStream
@@ -1710,10 +1712,12 @@ public class WebAuthProviderTest {
17101712 )
17111713 Mockito .doAnswer {
17121714 callbackCaptor.firstValue.onSuccess(codeCredentials)
1715+ null
17131716 }.`when `(pkce).getToken(eq(" 1234" ), callbackCaptor.capture())
17141717 Assert .assertTrue(resume(intent))
17151718 mockAPI.takeRequest()
17161719 ShadowLooper .idleMainLooper()
1720+ ShadowLooper .idleMainLooper()
17171721 verify(authCallback).onFailure(authExceptionCaptor.capture())
17181722 val error = authExceptionCaptor.firstValue
17191723 assertThat(error, `is `(notNullValue()))
@@ -1792,6 +1796,7 @@ public class WebAuthProviderTest {
17921796 proxyAccount.networkingClient = SSLTestUtils .testClient
17931797 val authCallback = mock<Callback <Credentials , AuthenticationException >>()
17941798 login(proxyAccount)
1799+ .withIdTokenVerificationIssuer(" " )
17951800 .withIdTokenVerificationIssuer(" " )
17961801 .withPKCE(pkce)
17971802 .start(activity, authCallback)
0 commit comments