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

Commit 99884acd authored by Yao Li's avatar Yao Li
Browse files

Mock Resources.getSystem in UserManagerServiceTest

UserManagerService uses Resources.getSystem() to get Resources, along
with other methods.
This CL makes UserManagerServiceTest mock Resources.getSystem, so it is
possible to test with different resource values there, in future CLs.

This CL also moves shouldShowNotificationForBackgroundUserSounds(), so
that we do not have one service class call another.

Bug: 390496349
Flag: EXEMPT refactor
Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceTest
Test: atest FrameworksVibratorServicesTests:com.android.server.vibrator.VibratorManagerServiceTest
Change-Id: Ieb730dd9f3d3c36d1bdf2ff555871f2539971030
parent 96edebcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment