| 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_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void TestControlledNewTabPageBubbleShown(); | 99 void TestControlledNewTabPageBubbleShown(); |
| 100 | 100 |
| 101 // Tests that the bubble indicating an extension is controlling a user's | 101 // Tests that the bubble indicating an extension is controlling a user's |
| 102 // home page is shown. | 102 // home page is shown. |
| 103 void TestControlledHomeBubbleShown(); | 103 void TestControlledHomeBubbleShown(); |
| 104 | 104 |
| 105 // Tests that the bubble indicating an extension is controlling a user's | 105 // Tests that the bubble indicating an extension is controlling a user's |
| 106 // search engine is shown. | 106 // search engine is shown. |
| 107 void TestControlledSearchBubbleShown(); | 107 void TestControlledSearchBubbleShown(); |
| 108 | 108 |
| 109 // Tests that the bubble indicating an extension is controlling a user's |
| 110 // startup pages is shown. |
| 111 void PreTestControlledStartupBubbleShown(); |
| 112 void TestControlledStartupBubbleShown(); |
| 113 |
| 114 // Tests that the startup controlled bubble is *not* shown in the case of a |
| 115 // browser restart, since restarts always result in a session restore rather |
| 116 // than showing the normal startup pages. |
| 117 void PreTestControlledStartupNotShownOnRestart(); |
| 118 void TestControlledStartupNotShownOnRestart(); |
| 119 |
| 109 // Tests that having multiple windows, all of which could be vying to show a | 120 // Tests that having multiple windows, all of which could be vying to show a |
| 110 // warning bubble, behaves properly. | 121 // warning bubble, behaves properly. |
| 111 void TestBubbleWithMultipleWindows(); | 122 void TestBubbleWithMultipleWindows(); |
| 112 | 123 |
| 113 // Tests clicking on the corresponding button in the bubble view. The logic | 124 // Tests clicking on the corresponding button in the bubble view. The logic |
| 114 // for these is tested more thoroughly in the unit tests, but this ensures | 125 // for these is tested more thoroughly in the unit tests, but this ensures |
| 115 // that nothing goes wrong end-to-end. | 126 // that nothing goes wrong end-to-end. |
| 116 void TestClickingLearnMoreButton(); | 127 void TestClickingLearnMoreButton(); |
| 117 void TestClickingActionButton(); | 128 void TestClickingActionButton(); |
| 118 void TestClickingDismissButton(); | 129 void TestClickingDismissButton(); |
| 119 | 130 |
| 120 private: | 131 private: |
| 121 std::unique_ptr<extensions::FeatureSwitch::ScopedOverride> | 132 std::unique_ptr<extensions::FeatureSwitch::ScopedOverride> |
| 122 dev_mode_bubble_override_; | 133 dev_mode_bubble_override_; |
| 123 | 134 |
| 124 // The backing directory for a custom extension loaded during a test. Null if | 135 // The backing directory for a custom extension loaded during a test. Null if |
| 125 // no custom extension is loaded. | 136 // no custom extension is loaded. |
| 126 std::unique_ptr<extensions::TestExtensionDir> custom_extension_dir_; | 137 std::unique_ptr<extensions::TestExtensionDir> custom_extension_dir_; |
| 127 | 138 |
| 128 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleBrowserTest); | 139 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleBrowserTest); |
| 129 }; | 140 }; |
| 130 | 141 |
| 131 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ | 142 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ |
| OLD | NEW |