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 44053395c4a494b2b22a7580cc26c54835668c5a..73bdef86670a6acb9022b2f3fc461c04ff4dc0ae 100644 |
--- a/ui/message_center/notification_list_unittest.cc |
+++ b/ui/message_center/notification_list_unittest.cc |
@@ -162,9 +162,8 @@ TEST_F(NotificationListTest, MessageCenterVisible) { |
ASSERT_EQ(1u, notification_list()->UnreadCount(blockers())); |
ASSERT_EQ(1u, GetPopupCounts()); |
- // Make the message center visible. It resets the unread count and popup |
- // counts. |
- notification_list()->SetMessageCenterVisible(true, NULL); |
+ // Resets the unread count and popup counts. |
+ notification_list()->SetNotificationsShown(blockers(), NULL); |
ASSERT_EQ(0u, notification_list()->UnreadCount(blockers())); |
ASSERT_EQ(0u, GetPopupCounts()); |
} |
@@ -309,8 +308,7 @@ TEST_F(NotificationListTest, Priority) { |
EXPECT_EQ(kMaxVisiblePopupNotifications, GetPopupCounts()); |
// Low priority: not visible to popups. |
- notification_list()->SetMessageCenterVisible(true, NULL); |
- notification_list()->SetMessageCenterVisible(false, NULL); |
+ notification_list()->SetNotificationsShown(blockers(), NULL); |
EXPECT_EQ(0u, notification_list()->UnreadCount(blockers())); |
AddPriorityNotification(LOW_PRIORITY); |
EXPECT_EQ(kMaxVisiblePopupNotifications + 2, |
@@ -368,8 +366,7 @@ TEST_F(NotificationListTest, HasPopupsWithSystemPriority) { |
notification_list()->MarkSinglePopupAsShown(normal_id, false); |
notification_list()->MarkSinglePopupAsShown(system_id, false); |
- notification_list()->SetMessageCenterVisible(true, NULL); |
- notification_list()->SetMessageCenterVisible(false, NULL); |
+ notification_list()->SetNotificationsShown(blockers(), NULL); |
EXPECT_EQ(1u, GetPopupCounts()); |
// Mark as read -- emulation of mouse click. |