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

Commit ac57685c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix the context used in VDMS tests" into main

parents 0b37b149 0f4ab7f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ public class VirtualDeviceManagerServiceTest {

        mContext = Mockito.spy(new ContextWrapper(
                InstrumentationRegistry.getInstrumentation().getTargetContext()));
        doReturn(mContext).when(mContext).createContextAsUser(eq(Process.myUserHandle()), anyInt());
        doReturn(mContext).when(mContext).createContextAsUser(any(), anyInt());
        doNothing().when(mContext).sendBroadcastAsUser(any(), any());
        when(mContext.getSystemService(Context.DEVICE_POLICY_SERVICE)).thenReturn(
                mDevicePolicyManagerMock);