Merge "Put the current user to mUsers in UserManagerServiceTest." into udc-qpr-dev am: 837bd198df am: 49df3294c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23874249 Change-Id: I84f4dac09d4411b73f6be5a1c2f2cfa69cb7b798 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -70,6 +70,9 @@ public class UserManagerServiceTest {
|
||||
|
||||
LocalServices.removeServiceForTest(UserManagerInternal.class);
|
||||
mUserManagerService = new UserManagerService(InstrumentationRegistry.getContext());
|
||||
// Put the current user to mUsers. UMS can't find userlist.xml, and fallbackToSingleUserLP.
|
||||
mUserManagerService.putUserInfo(
|
||||
new UserInfo(ActivityManager.getCurrentUser(), "Current User", 0));
|
||||
|
||||
restrictionsFile = new File(mContext.getCacheDir(), "restrictions.xml");
|
||||
restrictionsFile.delete();
|
||||
|
||||
Reference in New Issue
Block a user