| 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> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "chrome/browser/ui/toolbar/browser_actions_bar_browsertest.h" | 11 #include "chrome/browser/ui/toolbar/browser_actions_bar_browsertest.h" |
| 11 | 12 |
| 12 class ExtensionMessageBubbleBrowserTest | 13 class ExtensionMessageBubbleBrowserTest |
| 13 : public BrowserActionsBarBrowserTest { | 14 : public BrowserActionsBarBrowserTest { |
| 14 protected: | 15 protected: |
| 15 enum AnchorPosition { | 16 enum AnchorPosition { |
| 16 ANCHOR_BROWSER_ACTION, | 17 ANCHOR_BROWSER_ACTION, |
| 17 ANCHOR_APP_MENU, | 18 ANCHOR_APP_MENU, |
| 18 }; | 19 }; |
| 19 | 20 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // Tests that uninstalling the extension between when the bubble is originally | 57 // Tests that uninstalling the extension between when the bubble is originally |
| 57 // slated to show and when it does show is handled gracefully. | 58 // slated to show and when it does show is handled gracefully. |
| 58 // Regression test for crbug.com/531648. | 59 // Regression test for crbug.com/531648. |
| 59 void TestUninstallDangerousExtension(); | 60 void TestUninstallDangerousExtension(); |
| 60 | 61 |
| 61 // Tests that the extension bubble will show on startup. | 62 // Tests that the extension bubble will show on startup. |
| 62 void PreBubbleShowsOnStartup(); | 63 void PreBubbleShowsOnStartup(); |
| 63 void TestBubbleShowsOnStartup(); | 64 void TestBubbleShowsOnStartup(); |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 scoped_ptr<extensions::FeatureSwitch::ScopedOverride> | 67 std::unique_ptr<extensions::FeatureSwitch::ScopedOverride> |
| 67 dev_mode_bubble_override_; | 68 dev_mode_bubble_override_; |
| 68 | 69 |
| 69 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleBrowserTest); | 70 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleBrowserTest); |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ | 73 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_BROWSERTEST_H_ |
| OLD | NEW |