summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2023-06-30 15:52:54 +0100
committer Yasin Kilicdere <tyk@google.com> 2023-07-05 11:10:50 +0000
commitcc58e7656e76b1b4f14b0c26d854689e5ee19047 (patch)
treeb743d0b1b6ff762be22e062564fd22c895166f08 /libs/androidfw/ObbFile.cpp
parent04aee426fccce9dc410748ae5c381c932a9c8c47 (diff)
Put the current user to mUsers in UserManagerServiceTest.
Because of the way we construct UMS from UserManagerServiceTest, it can not populate mUsers with existing users. Because it can not find userlist.xml and fallback to single user. And the test methods which try to set a restriction for the current user fail because UMS.setUserRestriction fails with "Cannot set user restriction no_user_switch. User with id 10 does not exist." error. We're fixing this issue by manually adding the current user to UMS.mUsers via mUserManagerService.putUserInfo() method. Note: These lines were removed in master via ag/23877017, but for UserManagerServiceTest#assertHasUserRestriction test we still need it. Bug: 289995536 Change-Id: I57f6f910f0ad9b91b05fd895fba8db69017a25cc Test: atest UserManagerServiceTest
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions