diff options
| author | 2022-05-10 20:06:18 +0000 | |
|---|---|---|
| committer | 2022-05-10 20:06:18 +0000 | |
| commit | ddb4ee4491a0bf5082a93f68d529fb1bef2c3758 (patch) | |
| tree | 72ecf010f11fb752bc477aef2b255843bc01cd57 | |
| parent | da0a46599481dea442946e573acf70ba8cd04d87 (diff) | |
| parent | 6a894a43b08852b36e7ae8aadff19b6a937bd213 (diff) | |
Merge "Correct test" into tm-dev
| -rwxr-xr-x | services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
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 267a50675231..80dee10b3b7f 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 @@ public class NotificationManagerServiceTest extends UiServiceTestCase { 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); |