Updaing ShadowAccountManager to extending from official shadow library
Bug: 319052511 Test: atest SettingsRoboTests Change-Id: I53ec4261351f49305bb90ff10a6c00549a31e428
This commit is contained in:
@@ -31,7 +31,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Implements(AccountManager.class)
|
||||
public class ShadowAccountManager {
|
||||
public class ShadowAccountManager extends org.robolectric.shadows.ShadowAccountManager {
|
||||
|
||||
private static final Map<String, AuthenticatorDescription> sAuthenticators = new HashMap<>();
|
||||
private static final Map<Integer, List<Account>> sAccountsByUserId = new HashMap<>();
|
||||
@@ -41,7 +41,8 @@ public class ShadowAccountManager {
|
||||
return sAuthenticators.values().toArray(new AuthenticatorDescription[sAuthenticators.size()]);
|
||||
}
|
||||
|
||||
public static void addAuthenticator(AuthenticatorDescription authenticator) {
|
||||
@Override
|
||||
public void addAuthenticator(AuthenticatorDescription authenticator) {
|
||||
sAuthenticators.put(authenticator.type, authenticator);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user