commit | ddb4ee4491a0bf5082a93f68d529fb1bef2c3758 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Tue May 10 20:06:18 2022 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue May 10 20:06:18 2022 +0000 |
tree | 72ecf010f11fb752bc477aef2b255843bc01cd57 | |
parent | da0a46599481dea442946e573acf70ba8cd04d87 [diff] | |
parent | 6a894a43b08852b36e7ae8aadff19b6a937bd213 [diff] |
Merge "Correct test" into tm-dev
diff --git a/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java b/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java index 267a506..80dee10 100755 --- a/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java +++ b/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java
@@ -9348,8 +9348,7 @@ nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); NotificationRecord r = new NotificationRecord(mContext, sbn, mTestNotificationChannel); - mBinderService.setNotificationsEnabledForPackage( - r.getSbn().getPackageName(), r.getUid(), false); + when(mPermissionHelper.hasPermission(mUid)).thenReturn(false); // normal blocked notifications - blocked mService.addEnqueuedNotification(r);