Fix some additional tests registering real receivers
Test: atest SnoozeHelperTest Test: atest RoleObserverTest Test: with some temp logging in ContextImpl Fixes: 274705714 Change-Id: Id0352fd8d2aae47f588b47b3c45cdc5ed4e3fe3d
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user