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/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
6 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
8 #include "base/test/scoped_feature_list.h" | 9 #include "base/test/scoped_feature_list.h" |
9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
10 #include "chrome/browser/apps/app_browsertest_util.h" | 11 #include "chrome/browser/apps/app_browsertest_util.h" |
11 #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" |
12 #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" |
13 #include "chrome/browser/extensions/api/notifications/notifications_api.h" | 14 #include "chrome/browser/extensions/api/notifications/notifications_api.h" |
14 #include "chrome/browser/extensions/extension_apitest.h" | 15 #include "chrome/browser/extensions/extension_apitest.h" |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 ASSERT_TRUE(GetFirstAppWindow(extension->id())->GetBaseWindow()->IsActive()) | 547 ASSERT_TRUE(GetFirstAppWindow(extension->id())->GetBaseWindow()->IsActive()) |
547 << "Not Active"; | 548 << "Not Active"; |
548 | 549 |
549 Notification* notification = GetNotificationForExtension(extension); | 550 Notification* notification = GetNotificationForExtension(extension); |
550 ASSERT_TRUE(notification); | 551 ASSERT_TRUE(notification); |
551 | 552 |
552 // The extension's window is being shown and focused, so its expected that | 553 // The extension's window is being shown and focused, so its expected that |
553 // the notification displays on top of it. | 554 // the notification displays on top of it. |
554 ASSERT_TRUE(notification->delegate()->ShouldDisplayOverFullscreen()); | 555 ASSERT_TRUE(notification->delegate()->ShouldDisplayOverFullscreen()); |
555 } | 556 } |
OLD | NEW |