| 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 EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ | 5 #ifndef EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ |
| 6 #define EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ | 6 #define EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "content/public/test/browser_test.h" | 10 #include "content/public/test/browser_test.h" |
| 11 #include "content/public/test/browser_test_base.h" | 11 #include "content/public/test/browser_test_base.h" |
| 12 #include "extensions/common/features/feature_channel.h" |
| 12 | 13 |
| 13 namespace base { | 14 namespace base { |
| 14 class FilePath; | 15 class FilePath; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 class BrowserContext; | 19 class BrowserContext; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace extensions { | 22 namespace extensions { |
| 22 | 23 |
| 23 class ShellExtensionSystem; | 24 class ShellExtensionSystem; |
| 24 | 25 |
| 25 // Base class for app shell browser tests. | 26 // Base class for app shell browser tests. |
| 26 class AppShellTest : public content::BrowserTestBase { | 27 class AppShellTest : public content::BrowserTestBase { |
| 27 public: | 28 public: |
| 28 AppShellTest(); | 29 AppShellTest(); |
| 29 ~AppShellTest() override; | 30 ~AppShellTest() override; |
| 30 | 31 |
| 31 // content::BrowserTestBase implementation. | 32 // content::BrowserTestBase implementation. |
| 32 void SetUp() override; | 33 void SetUp() override; |
| 33 void SetUpOnMainThread() override; | 34 void SetUpOnMainThread() override; |
| 34 void RunTestOnMainThreadLoop() override; | 35 void RunTestOnMainThreadLoop() override; |
| 35 | 36 |
| 36 content::BrowserContext* browser_context() { return browser_context_; } | 37 content::BrowserContext* browser_context() { return browser_context_; } |
| 37 | 38 |
| 38 protected: | 39 protected: |
| 39 content::BrowserContext* browser_context_; | 40 content::BrowserContext* browser_context_; |
| 40 ShellExtensionSystem* extension_system_; | 41 ShellExtensionSystem* extension_system_; |
| 42 ScopedCurrentChannel current_channel_; |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace extensions | 45 } // namespace extensions |
| 44 | 46 |
| 45 #endif // EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ | 47 #endif // EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ |
| OLD | NEW |