Loading services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java +0 −15 Original line number Diff line number Diff line Loading @@ -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"; Loading Loading
services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java +0 −15 Original line number Diff line number Diff line Loading @@ -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"; Loading