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

Commit 97de46ab authored by Yuri Lin's avatar Yuri Lin Committed by Android (Google) Code Review
Browse files

Merge "Remove DoesNotLogOnTitleUpdate test" into main

parents 8a4be73d f2ed0902
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -2112,21 +2112,6 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
        assertNull(mNotificationRecordLogger.event(1));
    }
    @Test
    public void testEnqueueNotificationWithTag_DoesNotLogOnTitleUpdate() throws Exception {
        final String tag = "testEnqueueNotificationWithTag_DoesNotLogOnTitleUpdate";
        mBinderService.enqueueNotificationWithTag(mPkg, mPkg, tag, 0,
                generateNotificationRecord(null).getNotification(),
                mUserId);
        final Notification notif = generateNotificationRecord(null).getNotification();
        notif.extras.putString(Notification.EXTRA_TITLE, "Changed title");
        mBinderService.enqueueNotificationWithTag(mPkg, mPkg, tag, 0, notif, mUserId);
        waitForIdle();
        assertEquals(2, mNotificationRecordLogger.numCalls());
        assertEquals(NOTIFICATION_POSTED, mNotificationRecordLogger.event(0));
        assertNull(mNotificationRecordLogger.event(1));
    }
    @Test
    public void testEnqueueNotificationWithTag_LogsAgainAfterCancel() throws Exception {
        final String tag = "testEnqueueNotificationWithTag_LogsAgainAfterCancel";