Package org.robolectric.shadows.gms
Class ShadowGoogleAuthUtil
java.lang.Object
org.robolectric.shadows.gms.ShadowGoogleAuthUtil
@Deprecated
@Implements(com.google.android.gms.auth.GoogleAuthUtil.class)
public class ShadowGoogleAuthUtil
extends Object
Deprecated.
This package is no longer maintained and will be removed in Robolectric 4.16.
Calls to static method of
GoogleAuthUtil will be redirected to the provided ShadowGoogleAuthUtil.GoogleAuthUtilImpl implementation. Use provideImpl(GoogleAuthUtilImpl) to set the
implementation instance. By default, a ShadowGoogleAuthUtil.GoogleAuthUtilImpl is used in call redirection.
Use mocks or subclassing ShadowGoogleAuthUtil.GoogleAuthUtilImpl to achieve desired behaviors.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Class containing methods with same signatures of the static methods ofGoogleAuthUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearToken(Context context, String token) Deprecated.static List<com.google.android.gms.auth.AccountChangeEvent>getAccountChangeEvents(Context context, int eventIndex, String accountName) Deprecated.static StringgetAccountId(Context ctx, String accountName) Deprecated.getImpl()Deprecated.static StringDeprecated.static StringDeprecated.static StringDeprecated.static StringDeprecated.static StringgetTokenWithNotification(Context context, Account account, String scope, Bundle extras) Deprecated.static StringgetTokenWithNotification(Context context, Account account, String scope, Bundle extras, Intent callback) Deprecated.static StringgetTokenWithNotification(Context context, Account account, String scope, Bundle extras, String authority, Bundle syncBundle) Deprecated.static StringgetTokenWithNotification(Context context, String accountName, String scope, Bundle extras) Deprecated.static StringgetTokenWithNotification(Context context, String accountName, String scope, Bundle extras, Intent callback) Deprecated.static StringgetTokenWithNotification(Context context, String accountName, String scope, Bundle extras, String authority, Bundle syncBundle) Deprecated.static voidinvalidateToken(Context context, String token) Deprecated.static voidDeprecated.static voidreset()Deprecated.
-
Constructor Details
-
ShadowGoogleAuthUtil
public ShadowGoogleAuthUtil()Deprecated.
-
-
Method Details
-
getImpl
Deprecated. -
provideImpl
Deprecated. -
reset
Deprecated. -
clearToken
@Implementation public static void clearToken(Context context, String token) throws com.google.android.gms.auth.GooglePlayServicesAvailabilityException, com.google.android.gms.auth.GoogleAuthException, IOException Deprecated.- Throws:
com.google.android.gms.auth.GooglePlayServicesAvailabilityExceptioncom.google.android.gms.auth.GoogleAuthExceptionIOException
-
getAccountChangeEvents
@Implementation public static List<com.google.android.gms.auth.AccountChangeEvent> getAccountChangeEvents(Context context, int eventIndex, String accountName) throws com.google.android.gms.auth.GoogleAuthException, IOException Deprecated.- Throws:
com.google.android.gms.auth.GoogleAuthExceptionIOException
-
getAccountId
@Implementation public static String getAccountId(Context ctx, String accountName) throws com.google.android.gms.auth.GoogleAuthException, IOException Deprecated.- Throws:
com.google.android.gms.auth.GoogleAuthExceptionIOException
-
getToken
@Implementation public static String getToken(Context context, Account account, String scope) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getToken
@Implementation public static String getToken(Context context, Account account, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getToken
@Implementation public static String getToken(Context context, String accountName, String scope) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getToken
@Implementation public static String getToken(Context context, String accountName, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableAuthException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableAuthExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
@Implementation public static String getTokenWithNotification(Context context, Account account, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
@Implementation public static String getTokenWithNotification(Context context, Account account, String scope, Bundle extras, Intent callback) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
@Implementation public static String getTokenWithNotification(Context context, Account account, String scope, Bundle extras, String authority, Bundle syncBundle) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
@Implementation public static String getTokenWithNotification(Context context, String accountName, String scope, Bundle extras, Intent callback) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
@Implementation public static String getTokenWithNotification(Context context, String accountName, String scope, Bundle extras) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
getTokenWithNotification
@Implementation public static String getTokenWithNotification(Context context, String accountName, String scope, Bundle extras, String authority, Bundle syncBundle) throws IOException, com.google.android.gms.auth.UserRecoverableNotifiedException, com.google.android.gms.auth.GoogleAuthException Deprecated.- Throws:
IOExceptioncom.google.android.gms.auth.UserRecoverableNotifiedExceptioncom.google.android.gms.auth.GoogleAuthException
-
invalidateToken
Deprecated.
-