diff options
author | 2025-03-12 14:35:38 -0700 | |
---|---|---|
committer | 2025-03-19 13:07:00 -0700 | |
commit | e4216ca435aeab85b27a4515c53e652c28fcc24b (patch) | |
tree | 4fad453a830eb361d1e3d74e01a2cda12de46eb5 /libs/androidfw/AssetManager2.cpp | |
parent | f1b7e6fe96fcc85058048c2250d57cdd7f1bb762 (diff) |
Minor improvements on UserInfoTest and UserManagerServiceUserInfoTest.
- Remove unnecessary AndroidJUnit4 runner
- Use Truth insteads of JUnit assertions
- Add @SuppressWarning (due to isPrimary() and FLAG_GUEST)
- Use withMessage() instead of just that()
- Use isTrue() / isFalse() instead of isEqualTo(boolean)
- Use expect instead of assert
- Consistenly use createTestUserInfo()
- Add missing assertions (like isSupervisingProfile())
Test: atest FrameworksCoreTests:UserInfoTest UserManagerServiceUserInfoTest
Bug: 374832167
Flag: TEST_ONLY
Change-Id: I5b4f89e24bb67656ccbd4447fee40f5078d39022
Diffstat (limited to 'libs/androidfw/AssetManager2.cpp')
0 files changed, 0 insertions, 0 deletions