Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: extensions/shell/test/shell_test.h

Issue 2832153003: Move calling of shared browser test methods like SetUpOnMainThread/TearDownOnMainThread/RunTestOn... (Closed)
Patch Set: sync Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_apitest.cc ('k') | extensions/shell/test/shell_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698