OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/test/scoped_feature_list.h" | 9 #include "base/test/scoped_feature_list.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "chrome/browser/apps/app_browsertest_util.h" | 11 #include "chrome/browser/apps/app_browsertest_util.h" |
12 #include "chrome/browser/extensions/api/notifications/extension_notification_dis
play_helper.h" | 12 #include "chrome/browser/extensions/api/notifications/extension_notification_dis
play_helper.h" |
13 #include "chrome/browser/extensions/api/notifications/extension_notification_dis
play_helper_factory.h" | 13 #include "chrome/browser/extensions/api/notifications/extension_notification_dis
play_helper_factory.h" |
| 14 #include "chrome/browser/extensions/api/notifications/extension_notification_han
dler.h" |
14 #include "chrome/browser/extensions/api/notifications/notifications_api.h" | 15 #include "chrome/browser/extensions/api/notifications/notifications_api.h" |
15 #include "chrome/browser/extensions/extension_apitest.h" | 16 #include "chrome/browser/extensions/extension_apitest.h" |
16 #include "chrome/browser/extensions/extension_function_test_utils.h" | 17 #include "chrome/browser/extensions/extension_function_test_utils.h" |
17 #include "chrome/browser/notifications/notification.h" | 18 #include "chrome/browser/notifications/notification.h" |
18 #include "chrome/browser/notifications/notification_common.h" | 19 #include "chrome/browser/notifications/notification_common.h" |
19 #include "chrome/browser/notifications/notification_display_service_factory.h" | 20 #include "chrome/browser/notifications/notification_display_service_factory.h" |
20 #include "chrome/browser/notifications/notifier_state_tracker.h" | 21 #include "chrome/browser/notifications/notifier_state_tracker.h" |
21 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" | 22 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" |
22 #include "chrome/browser/notifications/stub_notification_display_service.h" | 23 #include "chrome/browser/notifications/stub_notification_display_service.h" |
23 #include "chrome/browser/profiles/profile_manager.h" | 24 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 << "Not Active"; | 546 << "Not Active"; |
546 | 547 |
547 Notification* notification = GetNotificationForExtension(extension); | 548 Notification* notification = GetNotificationForExtension(extension); |
548 ASSERT_TRUE(notification); | 549 ASSERT_TRUE(notification); |
549 | 550 |
550 // The extension's window is being shown and focused, so its expected that | 551 // The extension's window is being shown and focused, so its expected that |
551 // the notification displays on top of it. | 552 // the notification displays on top of it. |
552 ASSERT_TRUE(notification->delegate()->ShouldDisplayOverFullscreen()); | 553 ASSERT_TRUE(notification->delegate()->ShouldDisplayOverFullscreen()); |
553 } | 554 } |
554 #endif // !defined(OS_MACOSX) | 555 #endif // !defined(OS_MACOSX) |
OLD | NEW |