OLD | NEW |
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 #ifndef CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 const extensions::Extension* extension_a() const { | 41 const extensions::Extension* extension_a() const { |
42 return extension_a_.get(); | 42 return extension_a_.get(); |
43 } | 43 } |
44 const extensions::Extension* extension_b() const { | 44 const extensions::Extension* extension_b() const { |
45 return extension_b_.get(); | 45 return extension_b_.get(); |
46 } | 46 } |
47 const extensions::Extension* extension_c() const { | 47 const extensions::Extension* extension_c() const { |
48 return extension_c_.get(); | 48 return extension_c_.get(); |
49 } | 49 } |
50 | 50 |
51 protected: | |
52 // Enable or disable the feature redesign switch. | |
53 scoped_ptr<extensions::FeatureSwitch::ScopedOverride> override_redesign_; | |
54 | |
55 private: | 51 private: |
56 scoped_ptr<BrowserActionTestUtil> browser_actions_bar_; | 52 scoped_ptr<BrowserActionTestUtil> browser_actions_bar_; |
57 | 53 |
58 // The associated toolbar model, weak. | 54 // The associated toolbar model, weak. |
59 ToolbarActionsModel* toolbar_model_; | 55 ToolbarActionsModel* toolbar_model_; |
60 | 56 |
61 // Extensions with browser actions used for testing. | 57 // Extensions with browser actions used for testing. |
62 scoped_refptr<const extensions::Extension> extension_a_; | 58 scoped_refptr<const extensions::Extension> extension_a_; |
63 scoped_refptr<const extensions::Extension> extension_b_; | 59 scoped_refptr<const extensions::Extension> extension_b_; |
64 scoped_refptr<const extensions::Extension> extension_c_; | 60 scoped_refptr<const extensions::Extension> extension_c_; |
65 | 61 |
66 DISALLOW_COPY_AND_ASSIGN(BrowserActionsBarBrowserTest); | 62 DISALLOW_COPY_AND_ASSIGN(BrowserActionsBarBrowserTest); |
67 }; | 63 }; |
68 | 64 |
69 // A test with the extension-action-redesign switch enabled. | 65 // A test with the extension-action-redesign switch enabled. |
70 class BrowserActionsBarRedesignBrowserTest | 66 class BrowserActionsBarRedesignBrowserTest |
71 : public BrowserActionsBarBrowserTest { | 67 : public BrowserActionsBarBrowserTest { |
72 protected: | 68 protected: |
73 BrowserActionsBarRedesignBrowserTest(); | 69 BrowserActionsBarRedesignBrowserTest(); |
74 ~BrowserActionsBarRedesignBrowserTest() override; | 70 ~BrowserActionsBarRedesignBrowserTest() override; |
75 | 71 |
76 void SetUpCommandLine(base::CommandLine* command_line) override; | 72 void SetUpCommandLine(base::CommandLine* command_line) override; |
77 | 73 |
78 private: | 74 private: |
| 75 // Enable the feature redesign switch. |
| 76 scoped_ptr<extensions::FeatureSwitch::ScopedOverride> enable_redesign_; |
| 77 |
79 DISALLOW_COPY_AND_ASSIGN(BrowserActionsBarRedesignBrowserTest); | 78 DISALLOW_COPY_AND_ASSIGN(BrowserActionsBarRedesignBrowserTest); |
80 }; | 79 }; |
81 | 80 |
82 #endif // CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ | 81 #endif // CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ |
OLD | NEW |