diff options
| author | 2024-12-13 09:14:04 -0800 | |
|---|---|---|
| committer | 2024-12-13 09:14:04 -0800 | |
| commit | 0ce78367b1a57a89ac33dfd78e771f986fa8f23c (patch) | |
| tree | 4d4b0d154ee8e4cc94bd3eee2c9668dbc5abf47e | |
| parent | d01949965eac39203f2e0032d73d404197f0b427 (diff) | |
| parent | 063d29a9bd624d006a74d5fbb1036b1a758cd239 (diff) | |
Merge "Fix mocking of UserManager in EventConditionProviderTest" into main
| -rw-r--r-- | services/tests/uiservicestests/src/com/android/server/notification/EventConditionProviderTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/tests/uiservicestests/src/com/android/server/notification/EventConditionProviderTest.java b/services/tests/uiservicestests/src/com/android/server/notification/EventConditionProviderTest.java index fa1372d9f4ef..87b9154cfb4d 100644 --- a/services/tests/uiservicestests/src/com/android/server/notification/EventConditionProviderTest.java +++ b/services/tests/uiservicestests/src/com/android/server/notification/EventConditionProviderTest.java @@ -88,6 +88,8 @@ public class EventConditionProviderTest extends UiServiceTestCase { mService.mContext = this.getContext(); mContext.addMockSystemService(UserManager.class, mUserManager); + when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn( + List.of(new UserInfo(UserHandle.USER_SYSTEM, "USER_SYSTEM", 0))); when(mUserManager.getProfiles(eq(mUserId))).thenReturn( List.of(new UserInfo(mUserId, "mUserId", 0))); |