OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_BROWSER_TEST_UTIL_H
_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_BROWSER_TEST_UTIL_H
_ |
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_BROWSER_TEST_UTIL_H
_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_BROWSER_TEST_UTIL_H
_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
10 #include "chrome/browser/ui/website_settings/permission_prompt.h" | 10 #include "chrome/browser/ui/website_settings/permission_prompt.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class CommandLine; | 13 class CommandLine; |
14 } | 14 } |
15 class PermissionRequest; | 15 class PermissionRequest; |
16 class Browser; | 16 class Browser; |
17 | 17 |
18 class TestPermissionBubbleViewDelegate : public PermissionPrompt::Delegate { | 18 class TestPermissionBubbleViewDelegate : public PermissionPrompt::Delegate { |
19 public: | 19 public: |
20 TestPermissionBubbleViewDelegate(); | 20 TestPermissionBubbleViewDelegate(); |
21 | 21 |
22 void ToggleAccept(int, bool) override {} | 22 void ToggleAccept(int, bool) override {} |
| 23 void TogglePersist(bool) override {} |
23 void Accept() override {} | 24 void Accept() override {} |
24 void Deny() override {} | 25 void Deny() override {} |
25 void Closing() override {} | 26 void Closing() override {} |
26 | 27 |
27 private: | 28 private: |
28 DISALLOW_COPY_AND_ASSIGN(TestPermissionBubbleViewDelegate); | 29 DISALLOW_COPY_AND_ASSIGN(TestPermissionBubbleViewDelegate); |
29 }; | 30 }; |
30 | 31 |
31 // Use this class to test on a default window or an app window. Inheriting from | 32 // Use this class to test on a default window or an app window. Inheriting from |
32 // ExtensionBrowserTest allows us to easily load and launch apps, and doesn't | 33 // ExtensionBrowserTest allows us to easily load and launch apps, and doesn't |
(...skipping 25 matching lines...) Expand all Loading... |
58 public: | 59 public: |
59 PermissionBubbleKioskBrowserTest(); | 60 PermissionBubbleKioskBrowserTest(); |
60 ~PermissionBubbleKioskBrowserTest() override; | 61 ~PermissionBubbleKioskBrowserTest() override; |
61 | 62 |
62 void SetUpCommandLine(base::CommandLine* command_line) override; | 63 void SetUpCommandLine(base::CommandLine* command_line) override; |
63 | 64 |
64 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleKioskBrowserTest); | 65 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleKioskBrowserTest); |
65 }; | 66 }; |
66 | 67 |
67 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_BROWSER_TEST_UTI
L_H_ | 68 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_BROWSER_TEST_UTI
L_H_ |
OLD | NEW |