Merge "Correct test" into tm-dev am: ddb4ee4491
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18282483 Change-Id: I7faba9b2cdd5d02db366b2fe0de56ea196b4d2be Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -9348,8 +9348,7 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
|
|||||||
nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0);
|
nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0);
|
||||||
NotificationRecord r = new NotificationRecord(mContext, sbn, mTestNotificationChannel);
|
NotificationRecord r = new NotificationRecord(mContext, sbn, mTestNotificationChannel);
|
||||||
|
|
||||||
mBinderService.setNotificationsEnabledForPackage(
|
when(mPermissionHelper.hasPermission(mUid)).thenReturn(false);
|
||||||
r.getSbn().getPackageName(), r.getUid(), false);
|
|
||||||
|
|
||||||
// normal blocked notifications - blocked
|
// normal blocked notifications - blocked
|
||||||
mService.addEnqueuedNotification(r);
|
mService.addEnqueuedNotification(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user