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:
@@ -98,7 +98,7 @@ public final class InstalledAppCounterTest {
|
|||||||
@Before
|
@Before
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
MockitoAnnotations.initMocks(this);
|
MockitoAnnotations.initMocks(this);
|
||||||
when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager);
|
when(mContext.getSystemService(UserManager.class)).thenReturn(mUserManager);
|
||||||
mFakeFeatureFlags = new FakeFeatureFlagsImpl();
|
mFakeFeatureFlags = new FakeFeatureFlagsImpl();
|
||||||
mFakeFeatureFlags.setFlag(Flags.FLAG_ARCHIVING, true);
|
mFakeFeatureFlags.setFlag(Flags.FLAG_ARCHIVING, true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user