aboutsummaryrefslogtreecommitdiff
path: root/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java
diff options
context:
space:
mode:
authorbkchoi <bkchoi@google.com>2021-09-15 13:32:30 -0700
committerbkchoi <bkchoi@google.com>2021-09-16 08:51:18 -0700
commit76f14ca88895d791423c2e132c737b941dd7d658 (patch)
tree176f276b9f85ece94287443191e414568488c74a /tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java
parent4656979305120575d550cb5d0ae9a18637f0b386 (diff)
downloadCar-76f14ca88895d791423c2e132c737b941dd7d658.tar.gz
Specify the flags parameter for registerReceiver() calls.
Bug: 197675710 Test: atest CarServiceTest CarServiceUnitTest \ AndroidCarApiTest CarSecurityPermissionTest Change-Id: I7dccc2635613b9014921f6779e6e5a4d635766c8
Diffstat (limited to 'tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java')
-rw-r--r--tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java b/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java
index 412e2b187f..710b64d05d 100644
--- a/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java
+++ b/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java
@@ -138,7 +138,7 @@ public class CarUserNoticeServiceTest extends AbstractExtendedMockitoCarServiceT
verify(mMockCarUserService).addUserLifecycleListener(
mUserLifecycleListenerArgumentCaptor.capture());
verify(mMockContext).registerReceiver(mDisplayBroadcastReceiver.capture(),
- any(IntentFilter.class));
+ any(IntentFilter.class), anyInt());
verify(mCarPowerManager).setListener(mPowerStateListener.capture());
when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true);
doAnswer(invocation -> mIsKeyguardLocked)
@@ -154,7 +154,7 @@ public class CarUserNoticeServiceTest extends AbstractExtendedMockitoCarServiceT
CarUserNoticeService otherService = new CarUserNoticeService(mOtherMockContext);
otherService.init();
- verify(mOtherMockContext, never()).registerReceiver(any(), any());
+ verify(mOtherMockContext, never()).registerReceiver(any(), any(), anyInt());
}
@Test