commit | 8c36c922056bf90c6231da204e55f01fdfbbe6c5 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri Feb 16 13:59:52 2024 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Feb 16 13:59:52 2024 +0000 |
tree | 6cca23dce0b1a58121a8b507e0c89282ec0a24f1 | |
parent | cb9fa6987fdac4db3f5552116110459f4919dba0 [diff] | |
parent | 0e212f06a609f19254f32fe70959290c7d39480e [diff] |
Merge "Mock AM.getCurrentUserId for hsum devices" into main
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 94d24a9..92dad25 100755 --- a/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java +++ b/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java
@@ -595,6 +595,7 @@ .thenReturn(INVALID_TASK_ID); mContext.addMockSystemService(AppOpsManager.class, mock(AppOpsManager.class)); when(mUm.getProfileIds(eq(mUserId), eq(false))).thenReturn(new int[] { mUserId }); + when(mAmi.getCurrentUserId()).thenReturn(mUserId); when(mPackageManagerClient.hasSystemFeature(FEATURE_TELECOM)).thenReturn(true);