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

Unified Diff: ash/system/web_notification/web_notification_tray_unittest.cc

Issue 11229022: Move ash/system/web_notification message_center to ui/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again. Created 8 years, 2 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: ash/system/web_notification/web_notification_tray_unittest.cc
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc
index 9b7044a8cde58c0b3ec4982a77302d6f5c93f9e4..790ab8495a5cb97c77c61c448f55db994d83af62 100644
--- a/ash/system/web_notification/web_notification_tray_unittest.cc
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc
@@ -9,9 +9,9 @@
#include "ash/root_window_controller.h"
#include "ash/system/status_area_widget.h"
#include "ash/system/tray/system_tray_item.h"
-#include "ash/system/web_notification/message_center_bubble.h"
-#include "ash/system/web_notification/popup_bubble.h"
-#include "ash/system/web_notification/web_notification_list.h"
+#include "ui/message_center/message_center_bubble.h"
+#include "ui/message_center/message_popup_bubble.h"
+#include "ui/message_center/notification_list.h"
#include "ash/test/ash_test_base.h"
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
@@ -156,7 +156,7 @@ TEST_F(WebNotificationTrayTest, WebNotificationPopupBubble) {
EXPECT_TRUE(tray->popup_bubble() == NULL);
}
-using message_center::WebNotificationList;
+using message_center::NotificationList;
TEST_F(WebNotificationTrayTest, ManyMessageCenterNotifications) {
WebNotificationTray* tray = GetWebNotificationTray();
@@ -165,7 +165,7 @@ TEST_F(WebNotificationTrayTest, ManyMessageCenterNotifications) {
// Add the max visible notifications +1, ensure the correct visible number.
size_t notifications_to_add =
- WebNotificationList::kMaxVisibleMessageCenterNotifications + 1;
+ NotificationList::kMaxVisibleMessageCenterNotifications + 1;
for (size_t i = 0; i < notifications_to_add; ++i) {
std::string id = StringPrintf("test_id%d", static_cast<int>(i));
delegate->AddNotification(tray, id);
@@ -175,7 +175,7 @@ TEST_F(WebNotificationTrayTest, ManyMessageCenterNotifications) {
EXPECT_TRUE(tray->message_center_bubble() != NULL);
EXPECT_EQ(notifications_to_add,
tray->message_center()->NotificationCount());
- EXPECT_EQ(WebNotificationList::kMaxVisibleMessageCenterNotifications,
+ EXPECT_EQ(NotificationList::kMaxVisibleMessageCenterNotifications,
tray->GetMessageCenterBubbleForTest()->NumMessageViewsForTest());
}
@@ -186,7 +186,7 @@ TEST_F(WebNotificationTrayTest, ManyPopupNotifications) {
// Add the max visible popup notifications +1, ensure the correct num visible.
size_t notifications_to_add =
- WebNotificationList::kMaxVisiblePopupNotifications + 1;
+ NotificationList::kMaxVisiblePopupNotifications + 1;
for (size_t i = 0; i < notifications_to_add; ++i) {
std::string id = StringPrintf("test_id%d", static_cast<int>(i));
delegate->AddNotification(tray, id);
@@ -197,7 +197,7 @@ TEST_F(WebNotificationTrayTest, ManyPopupNotifications) {
EXPECT_TRUE(tray->popup_bubble() != NULL);
EXPECT_EQ(notifications_to_add,
tray->message_center()->NotificationCount());
- EXPECT_EQ(WebNotificationList::kMaxVisiblePopupNotifications,
+ EXPECT_EQ(NotificationList::kMaxVisiblePopupNotifications,
tray->GetPopupBubbleForTest()->NumMessageViewsForTest());
}
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | ash/system/web_notification/web_notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698