Merge "Fix some additional tests registering real receivers" into udc-dev

This commit is contained in:
Julia Reynolds
2023-04-06 18:58:30 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 2 deletions

View File

@@ -87,6 +87,7 @@ public class UiServiceTestCase {
Mockito.doReturn(new Intent()).when(mContext).registerReceiverAsUser(
any(), any(), any(), any(), any());
Mockito.doReturn(new Intent()).when(mContext).registerReceiver(any(), any());
Mockito.doReturn(new Intent()).when(mContext).registerReceiver(any(), any(), anyInt());
Mockito.doNothing().when(mContext).unregisterReceiver(any());
}

View File

@@ -96,8 +96,6 @@ public class RoleObserverTest extends UiServiceTestCase {
private TestableNotificationManagerService mService;
private NotificationManagerService.RoleObserver mRoleObserver;
private TestableContext mContext = spy(getContext());
@Mock
private PreferencesHelper mPreferencesHelper;
@Mock