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

Unified Diff: chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc

Issue 14327004: Moved some message center constants to message_center_constants.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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
Index: chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc
diff --git a/chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc b/chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc
index e54052fdb45364b777fd746c1e725a30aa9a9de3..1ec888778ab1b778b0da7d4dcf61ab39c054cea1 100644
--- a/chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc
+++ b/chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc
@@ -13,6 +13,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/test/test_utils.h"
+#include "ui/message_center/message_center_constants.h"
#include "ui/message_center/message_center_tray.h"
#include "ui/message_center/notification_list.h"
#include "ui/message_center/notification_types.h"
@@ -130,8 +131,7 @@ IN_PROC_BROWSER_TEST_F(WebNotificationTrayWinTest,
message_center::MessageCenter* message_center = tray->message_center();
// Add the max visible notifications +1, ensure the correct visible number.
- size_t notifications_to_add =
- NotificationList::kMaxVisibleMessageCenterNotifications + 1;
+ size_t notifications_to_add = kMaxVisibleMessageCenterNotifications + 1;
for (size_t i = 0; i < notifications_to_add; ++i) {
std::string id = base::StringPrintf("test_id%d", static_cast<int>(i));
AddNotification(id);
@@ -142,7 +142,7 @@ IN_PROC_BROWSER_TEST_F(WebNotificationTrayWinTest,
EXPECT_TRUE(tray->message_center_bubble_.get() != NULL);
EXPECT_EQ(notifications_to_add,
message_center->NotificationCount());
- EXPECT_EQ(NotificationList::kMaxVisibleMessageCenterNotifications,
+ EXPECT_EQ(kMaxVisibleMessageCenterNotifications,
tray->GetMessageCenterBubbleForTest()->NumMessageViewsForTest());
}
@@ -151,8 +151,7 @@ IN_PROC_BROWSER_TEST_F(WebNotificationTrayWinTest, ManyPopupNotifications) {
message_center::MessageCenter* message_center = tray->message_center();
// Add the max visible popup notifications +1, ensure the correct num visible.
- size_t notifications_to_add =
- NotificationList::kMaxVisiblePopupNotifications + 1;
+ size_t notifications_to_add = kMaxVisiblePopupNotifications + 1;
for (size_t i = 0; i < notifications_to_add; ++i) {
std::string id = base::StringPrintf("test_id%d", static_cast<int>(i));
AddNotification(id);
@@ -165,7 +164,7 @@ IN_PROC_BROWSER_TEST_F(WebNotificationTrayWinTest, ManyPopupNotifications) {
message_center->NotificationCount());
NotificationList::PopupNotifications popups =
message_center->GetPopupNotifications();
- EXPECT_EQ(NotificationList::kMaxVisiblePopupNotifications, popups.size());
+ EXPECT_EQ(kMaxVisiblePopupNotifications, popups.size());
}
} // namespace message_center
« no previous file with comments | « ash/system/web_notification/web_notification_tray_unittest.cc ('k') | ui/message_center/message_center_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698