Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: ui/message_center/notification_list_unittest.cc

Issue 14299007: Sends Updated when message center is closed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/notification_list.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_list_unittest.cc
diff --git a/ui/message_center/notification_list_unittest.cc b/ui/message_center/notification_list_unittest.cc
index aed91619e82440a94d72c80f8801f714312e4974..68a491bdf194a6e3fa6909503781b258de214d81 100644
--- a/ui/message_center/notification_list_unittest.cc
+++ b/ui/message_center/notification_list_unittest.cc
@@ -136,9 +136,9 @@ TEST_F(NotificationListTest, MessageCenterVisible) {
// Toggle the message center visibility. It resets the unread count when
// hidden.
- notification_list()->SetMessageCenterVisible(true);
+ notification_list()->SetMessageCenterVisible(true, NULL);
ASSERT_EQ(1u, notification_list()->unread_count());
- notification_list()->SetMessageCenterVisible(false);
+ notification_list()->SetMessageCenterVisible(false, NULL);
ASSERT_EQ(0u, notification_list()->unread_count());
}
@@ -226,8 +226,8 @@ TEST_F(NotificationListTest, Priority) {
EXPECT_EQ(NotificationList::kMaxVisiblePopupNotifications, GetPopupCounts());
// Low priority: not visible to popups.
- notification_list()->SetMessageCenterVisible(true);
- notification_list()->SetMessageCenterVisible(false);
+ notification_list()->SetMessageCenterVisible(true, NULL);
+ notification_list()->SetMessageCenterVisible(false, NULL);
EXPECT_EQ(0u, notification_list()->unread_count());
AddPriorityNotification(-1);
EXPECT_EQ(NotificationList::kMaxVisiblePopupNotifications + 2,
« no previous file with comments | « ui/message_center/notification_list.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698