Merge "Correct test" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-10 20:06:18 +00:00
committed by Android (Google) Code Review

View File

@@ -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);