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

Side by Side Diff: chrome/browser/extensions/api/notifications/notifications_apitest.cc

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: fix test Created 3 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
OLDNEW
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698