Merge "Address leftover comments" am: 6e253df579
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495899 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0e2439670745ab19220e6cd44e6a62de5f61b842
This commit is contained in:
@@ -130,6 +130,7 @@ public class MultipathPolicyTrackerTest {
|
|||||||
|
|
||||||
when(mContext.getResources()).thenReturn(mResources);
|
when(mContext.getResources()).thenReturn(mResources);
|
||||||
when(mContext.getApplicationInfo()).thenReturn(new ApplicationInfo());
|
when(mContext.getApplicationInfo()).thenReturn(new ApplicationInfo());
|
||||||
|
// Mock user id to all users that Context#registerReceiver will register with all users too.
|
||||||
doReturn(UserHandle.ALL.getIdentifier()).when(mUserAllContext).getUserId();
|
doReturn(UserHandle.ALL.getIdentifier()).when(mUserAllContext).getUserId();
|
||||||
when(mContext.createContextAsUser(eq(UserHandle.ALL), anyInt()))
|
when(mContext.createContextAsUser(eq(UserHandle.ALL), anyInt()))
|
||||||
.thenReturn(mUserAllContext);
|
.thenReturn(mUserAllContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user