diff options
| author | 2024-12-13 13:31:53 -0800 | |
|---|---|---|
| committer | 2024-12-13 13:31:53 -0800 | |
| commit | 1e7fce306827584124d8090ebc30dfdc56c36aac (patch) | |
| tree | 6f5496383efde7bca3dc860d8cc4eb214c004127 | |
| parent | 32064a4fb3c09bae4f133530cc183e52e08b42f8 (diff) | |
| parent | 34d40dd104593b1388c8e8aa49f4578d7a566286 (diff) | |
Merge "Fix Zen tests setup in NotificationManagerServiceTest" into main
| -rw-r--r-- | services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java | 4 |
1 files changed, 4 insertions, 0 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 1fc0d245fbe5..20f4bb65d27b 100644 --- a/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java +++ b/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java @@ -16712,6 +16712,10 @@ public class NotificationManagerServiceTest extends UiServiceTestCase { when(mResources.getResourceName(eq(iconResId))).thenReturn(iconResName); when(mResources.getIdentifier(eq(iconResName), any(), any())).thenReturn(iconResId); when(mPackageManagerClient.getResourcesForApplication(eq(pkg))).thenReturn(mResources); + + // Ensure that there is a zen configuration for the user running the test (won't be + // USER_SYSTEM if running on HSUM). + mService.mZenModeHelper.onUserSwitched(mUserId); } @Test |