| 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" |
| 11 #include "chrome/browser/extensions/extension_browsertest.h" | 11 #include "chrome/browser/extensions/extension_browsertest.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 class Extension; | 14 class Extension; |
| 15 } | 15 } |
| 16 | 16 |
| 17 class BrowserActionTestUtil; | 17 class BrowserActionTestUtil; |
| 18 | 18 |
| 19 // A platform-independent browser test class for the browser actions bar. | 19 // A platform-independent browser test class for the browser actions bar. |
| 20 class BrowserActionsBarBrowserTest : public ExtensionBrowserTest { | 20 class BrowserActionsBarBrowserTest : public ExtensionBrowserTest { |
| 21 protected: | 21 protected: |
| 22 BrowserActionsBarBrowserTest(); | 22 BrowserActionsBarBrowserTest(); |
| 23 virtual ~BrowserActionsBarBrowserTest(); | 23 ~BrowserActionsBarBrowserTest() override; |
| 24 | 24 |
| 25 void SetUpCommandLine(base::CommandLine* command_line) override; | 25 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 26 void SetUpOnMainThread() override; | 26 void SetUpOnMainThread() override; |
| 27 void TearDownOnMainThread() override; | 27 void TearDownOnMainThread() override; |
| 28 | 28 |
| 29 BrowserActionTestUtil* browser_actions_bar() { | 29 BrowserActionTestUtil* browser_actions_bar() { |
| 30 return browser_actions_bar_.get(); | 30 return browser_actions_bar_.get(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 // Creates three different extensions, each with a browser action, and adds | 33 // Creates three different extensions, each with a browser action, and adds |
| (...skipping 16 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 // Extensions with browser actions used for testing. | 51 // Extensions with browser actions used for testing. |
| 52 scoped_refptr<const extensions::Extension> extension_a_; | 52 scoped_refptr<const extensions::Extension> extension_a_; |
| 53 scoped_refptr<const extensions::Extension> extension_b_; | 53 scoped_refptr<const extensions::Extension> extension_b_; |
| 54 scoped_refptr<const extensions::Extension> extension_c_; | 54 scoped_refptr<const extensions::Extension> extension_c_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(BrowserActionsBarBrowserTest); | 56 DISALLOW_COPY_AND_ASSIGN(BrowserActionsBarBrowserTest); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ | 59 #endif // CHROME_BROWSER_UI_TOOLBAR_BROWSER_ACTIONS_BAR_BROWSERTEST_H_ |
| OLD | NEW |