Fix InstalledAppCounterTest

The root cause is introduced in ag/25089088 which updated the UserManager source

Bug: 293405483

Test: atest
Change-Id: I380e70c8a774e972153a27ca096cd3b7f8236304
This commit is contained in:
FanWu
2023-11-20 15:48:02 +08:00
parent 510b583637
commit ea43959d8b

View File

@@ -98,7 +98,7 @@ public final class InstalledAppCounterTest {
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager);
when(mContext.getSystemService(UserManager.class)).thenReturn(mUserManager);
mFakeFeatureFlags = new FakeFeatureFlagsImpl();
mFakeFeatureFlags.setFlag(Flags.FLAG_ARCHIVING, true);