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" | |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 class BrowserContext; | 14 class BrowserContext; |
16 } | 15 } |
17 | 16 |
18 namespace extensions { | 17 namespace extensions { |
19 | 18 |
20 class ShellExtensionSystem; | 19 class ShellExtensionSystem; |
21 | 20 |
22 // Base class for app shell browser tests. | 21 // Base class for app shell browser tests. |
23 class AppShellTest : public content::BrowserTestBase { | 22 class AppShellTest : public content::BrowserTestBase { |
24 public: | 23 public: |
25 AppShellTest(); | 24 AppShellTest(); |
26 ~AppShellTest() override; | 25 ~AppShellTest() override; |
27 | 26 |
28 // content::BrowserTestBase implementation. | 27 // content::BrowserTestBase implementation. |
29 void SetUp() override; | 28 void SetUp() override; |
30 void SetUpOnMainThread() override; | 29 void SetUpOnMainThread() override; |
31 void RunTestOnMainThreadLoop() override; | 30 void RunTestOnMainThreadLoop() override; |
32 | 31 |
33 content::BrowserContext* browser_context() { return browser_context_; } | 32 content::BrowserContext* browser_context() { return browser_context_; } |
34 | 33 |
35 protected: | 34 protected: |
36 content::BrowserContext* browser_context_; | 35 content::BrowserContext* browser_context_; |
37 ShellExtensionSystem* extension_system_; | 36 ShellExtensionSystem* extension_system_; |
38 ScopedCurrentChannel current_channel_; | |
39 }; | 37 }; |
40 | 38 |
41 } // namespace extensions | 39 } // namespace extensions |
42 | 40 |
43 #endif // EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ | 41 #endif // EXTENSIONS_SHELL_TEST_SHELL_TEST_H_ |
OLD | NEW |