OLD | NEW |
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 <stddef.h> |
| 8 |
7 #include <set> | 9 #include <set> |
8 | 10 |
9 #include "ash/root_window_controller.h" | 11 #include "ash/root_window_controller.h" |
10 #include "ash/system/status_area_widget.h" | 12 #include "ash/system/status_area_widget.h" |
11 #include "ash/system/tray/system_tray_item.h" | 13 #include "ash/system/tray/system_tray_item.h" |
| 14 #include "base/macros.h" |
12 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/notifications/message_center_notification_manager.h" | 18 #include "chrome/browser/notifications/message_center_notification_manager.h" |
16 #include "chrome/browser/notifications/notification.h" | 19 #include "chrome/browser/notifications/notification.h" |
17 #include "chrome/browser/notifications/notification_delegate.h" | 20 #include "chrome/browser/notifications/notification_delegate.h" |
18 #include "chrome/browser/notifications/notification_ui_manager.h" | 21 #include "chrome/browser/notifications/notification_ui_manager.h" |
19 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/test/base/in_process_browser_test.h" | 23 #include "chrome/test/base/in_process_browser_test.h" |
21 #include "content/public/test/test_utils.h" | 24 #include "content/public/test/test_utils.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 tray->message_center_tray_->HidePopupBubble(); | 187 tray->message_center_tray_->HidePopupBubble(); |
185 tray->message_center_tray_->ShowPopupBubble(); | 188 tray->message_center_tray_->ShowPopupBubble(); |
186 EXPECT_TRUE(tray->message_center_tray_->popups_visible()); | 189 EXPECT_TRUE(tray->message_center_tray_->popups_visible()); |
187 EXPECT_EQ(notifications_to_add, message_center->NotificationCount()); | 190 EXPECT_EQ(notifications_to_add, message_center->NotificationCount()); |
188 NotificationList::PopupNotifications popups = | 191 NotificationList::PopupNotifications popups = |
189 message_center->GetPopupNotifications(); | 192 message_center->GetPopupNotifications(); |
190 EXPECT_EQ(kMaxVisiblePopupNotifications, popups.size()); | 193 EXPECT_EQ(kMaxVisiblePopupNotifications, popups.size()); |
191 } | 194 } |
192 | 195 |
193 } // namespace message_center | 196 } // namespace message_center |
OLD | NEW |