Merge "Put the current user to mUsers in UserManagerServiceTest." into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
837bd198df
@@ -70,6 +70,9 @@ public class UserManagerServiceTest {
|
|||||||
|
|
||||||
LocalServices.removeServiceForTest(UserManagerInternal.class);
|
LocalServices.removeServiceForTest(UserManagerInternal.class);
|
||||||
mUserManagerService = new UserManagerService(InstrumentationRegistry.getContext());
|
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 = new File(mContext.getCacheDir(), "restrictions.xml");
|
||||||
restrictionsFile.delete();
|
restrictionsFile.delete();
|
||||||
|
|||||||
Reference in New Issue
Block a user