Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49df3294 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Put the current user to mUsers in UserManagerServiceTest." into udc-qpr-dev am: 837bd198

parents 955b88b6 837bd198
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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();