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