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

Side by Side Diff: chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc

Issue 15949029: Use a direct include of utf_string_conversions.h in chrome/browser/ui/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/message_center/web_notification_tray.h" 5 #include "chrome/browser/ui/views/message_center/web_notification_tray.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/system/status_area_widget.h" 10 #include "ash/system/status_area_widget.h"
11 #include "ash/system/tray/system_tray_item.h" 11 #include "ash/system/tray/system_tray_item.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/notifications/notification.h" 15 #include "chrome/browser/notifications/notification.h"
16 #include "chrome/browser/notifications/notification_delegate.h" 16 #include "chrome/browser/notifications/notification_delegate.h"
17 #include "chrome/browser/notifications/notification_ui_manager.h" 17 #include "chrome/browser/notifications/notification_ui_manager.h"
18 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/test/base/in_process_browser_test.h" 19 #include "chrome/test/base/in_process_browser_test.h"
20 #include "content/public/test/test_utils.h" 20 #include "content/public/test/test_utils.h"
21 #include "ui/message_center/message_center_style.h" 21 #include "ui/message_center/message_center_style.h"
22 #include "ui/message_center/message_center_tray.h" 22 #include "ui/message_center/message_center_tray.h"
23 #include "ui/message_center/notification_list.h" 23 #include "ui/message_center/notification_list.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 tray->message_center_tray_->HidePopupBubble(); 191 tray->message_center_tray_->HidePopupBubble();
192 tray->message_center_tray_->ShowPopupBubble(); 192 tray->message_center_tray_->ShowPopupBubble();
193 EXPECT_TRUE(tray->message_center_tray_->popups_visible()); 193 EXPECT_TRUE(tray->message_center_tray_->popups_visible());
194 EXPECT_EQ(notifications_to_add, message_center->NotificationCount()); 194 EXPECT_EQ(notifications_to_add, message_center->NotificationCount());
195 NotificationList::PopupNotifications popups = 195 NotificationList::PopupNotifications popups =
196 message_center->GetPopupNotifications(); 196 message_center->GetPopupNotifications();
197 EXPECT_EQ(kMaxVisiblePopupNotifications, popups.size()); 197 EXPECT_EQ(kMaxVisiblePopupNotifications, popups.size());
198 } 198 }
199 199
200 } // namespace message_center 200 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698