Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23599a70 authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Fix NotificationManagerTest for HSUM.

In this case, the user-id should always be 0.

Bug: 417555342
Test: atest FrameworksUiServicesNotificationTests:com.android.server.notification.NotificationManagerServiceTest#testResolveNotificationUid_androidAllowed[EMPTY] -- --abi x86_64
Flag: EXEMPT bugfix
Change-Id: Ie1506fb2c52f2951e1402284340f08473c102e30
parent a62ead58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9221,7 +9221,7 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
        int expectedUid = 123;
        when(mPackageManagerClient.getPackageUidAsUser("target", 0)).thenReturn(expectedUid);
        when(mPmi.getPackageUid("target", 0, mUserId)).thenReturn(expectedUid);
        when(mPmi.getPackageUid("target", 0, 0)).thenReturn(expectedUid);
        // no delegate
        assertEquals(expectedUid, mService.resolveNotificationUid("android", "target", 0, 0));