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

Side by Side Diff: chrome/browser/notifications/platform_notification_service_interactive_uitest.cc

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: compile 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "base/test/scoped_feature_list.h" 16 #include "base/test/scoped_feature_list.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "chrome/browser/engagement/site_engagement_score.h" 18 #include "chrome/browser/engagement/site_engagement_score.h"
19 #include "chrome/browser/engagement/site_engagement_service.h" 19 #include "chrome/browser/engagement/site_engagement_service.h"
20 #include "chrome/browser/notifications/desktop_notification_profile_util.h" 20 #include "chrome/browser/notifications/desktop_notification_profile_util.h"
21 #include "chrome/browser/notifications/message_center_display_service.h" 21 #include "chrome/browser/notifications/message_center_display_service.h"
22 #include "chrome/browser/notifications/notification.h" 22 #include "chrome/browser/notifications/notification.h"
23 #include "chrome/browser/notifications/notification_common.h"
23 #include "chrome/browser/notifications/notification_test_util.h" 24 #include "chrome/browser/notifications/notification_test_util.h"
24 #include "chrome/browser/notifications/platform_notification_service_impl.h" 25 #include "chrome/browser/notifications/platform_notification_service_impl.h"
25 #include "chrome/browser/notifications/web_notification_delegate.h" 26 #include "chrome/browser/notifications/web_notification_delegate.h"
26 #include "chrome/browser/permissions/permission_manager.h" 27 #include "chrome/browser/permissions/permission_manager.h"
27 #include "chrome/browser/permissions/permission_request_manager.h" 28 #include "chrome/browser/permissions/permission_request_manager.h"
28 #include "chrome/browser/permissions/permission_result.h" 29 #include "chrome/browser/permissions/permission_result.h"
29 #include "chrome/browser/ui/browser.h" 30 #include "chrome/browser/ui/browser.h"
30 #include "chrome/browser/ui/browser_window.h" 31 #include "chrome/browser/ui/browser_window.h"
31 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" 32 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
32 #include "chrome/browser/ui/tabs/tab_strip_model.h" 33 #include "chrome/browser/ui/tabs/tab_strip_model.h"
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 RunScript("DisplayPersistentAllOptionsNotification()", &script_result)); 856 RunScript("DisplayPersistentAllOptionsNotification()", &script_result));
856 EXPECT_EQ("ok", script_result); 857 EXPECT_EQ("ok", script_result);
857 858
858 ASSERT_EQ(1u, ui_manager()->GetNotificationCount()); 859 ASSERT_EQ(1u, ui_manager()->GetNotificationCount());
859 const Notification& notification = ui_manager()->GetNotificationAt(0); 860 const Notification& notification = ui_manager()->GetNotificationAt(0);
860 861
861 // Since the kNotificationContentImage kill switch has disabled images, the 862 // Since the kNotificationContentImage kill switch has disabled images, the
862 // notification should be shown without an image. 863 // notification should be shown without an image.
863 EXPECT_TRUE(notification.image().IsEmpty()); 864 EXPECT_TRUE(notification.image().IsEmpty());
864 } 865 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698