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

Side by Side Diff: chrome/browser/notifications/notification_interactive_uitest_support.h

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: comments addressed and updated Created 3 years, 5 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_INTERACTIVE_UITEST_SUPPORT_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_INTERACTIVE_UITEST_SUPPORT_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_INTERACTIVE_UITEST_SUPPORT_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_INTERACTIVE_UITEST_SUPPORT_H_
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/test/scoped_feature_list.h" 9 #include "base/test/scoped_feature_list.h"
10 #include "chrome/browser/permissions/permission_request_manager.h" 10 #include "chrome/browser/permissions/permission_request_manager.h"
(...skipping 13 matching lines...) Expand all
24 24
25 DISALLOW_COPY_AND_ASSIGN(MessageCenterChangeObserver); 25 DISALLOW_COPY_AND_ASSIGN(MessageCenterChangeObserver);
26 }; 26 };
27 27
28 class NotificationsTest : public InProcessBrowserTest { 28 class NotificationsTest : public InProcessBrowserTest {
29 public: 29 public:
30 NotificationsTest() {} 30 NotificationsTest() {}
31 31
32 protected: 32 protected:
33 // InProcessBrowserTest overrides. 33 // InProcessBrowserTest overrides.
34 void SetUpDefaultCommandLine(base::CommandLine* command_line) override; 34 void SetUp() override;
35 35
36 int GetNotificationCount(); 36 int GetNotificationCount();
37 int GetNotificationPopupCount(); 37 int GetNotificationPopupCount();
38 38
39 void CloseBrowserWindow(Browser* browser); 39 void CloseBrowserWindow(Browser* browser);
40 void CrashTab(Browser* browser, int index); 40 void CrashTab(Browser* browser, int index);
41 41
42 void DenyOrigin(const GURL& origin); 42 void DenyOrigin(const GURL& origin);
43 void AllowOrigin(const GURL& origin); 43 void AllowOrigin(const GURL& origin);
44 void AllowAllOrigins(); 44 void AllowAllOrigins();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 private: 80 private:
81 std::string RequestAndRespondToPermission( 81 std::string RequestAndRespondToPermission(
82 Browser* browser, 82 Browser* browser,
83 PermissionRequestManager::AutoResponseType bubble_response); 83 PermissionRequestManager::AutoResponseType bubble_response);
84 84
85 base::test::ScopedFeatureList feature_list_; 85 base::test::ScopedFeatureList feature_list_;
86 }; 86 };
87 87
88 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_INTERACTIVE_UITEST_SUPPORT_ H_ 88 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_INTERACTIVE_UITEST_SUPPORT_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698