Clean up ShadowUserManager

Remove addManagedUser() and use default shadow for the same purpose.

Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=Redaction
Change-Id: I2f86bd51bccbde23a8a37d19b28e30cadb2b9f93
This commit is contained in:
Fan Zhang
2019-01-28 16:32:56 -08:00
parent 5c3301b0ab
commit c52a581bb7
2 changed files with 9 additions and 13 deletions

View File

@@ -98,15 +98,6 @@ public class ShadowUserManager extends org.robolectric.shadows.ShadowUserManager
mRestrictionSources.put(restrictionKey + userHandle.getIdentifier(), enforcers);
}
@Implementation
protected boolean isManagedProfile(@UserIdInt int userId) {
return mManagedProfiles.contains(userId);
}
public void addManagedProfile(int userId) {
mManagedProfiles.add(userId);
}
@Implementation
protected boolean isQuietModeEnabled(UserHandle userHandle) {
return mIsQuietModeEnabled;