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
3 // found in the LICENSE file.
4 
5 #ifndef EXTENSIONS_SHELL_TEST_SHELL_TEST_H_
6 #define EXTENSIONS_SHELL_TEST_SHELL_TEST_H_
7 
8 #include <memory>
9 
10 #include "content/public/test/browser_test.h"
11 #include "content/public/test/browser_test_base.h"
12 
13 namespace content {
14 class BrowserContext;
15 }
16 
17 namespace extensions {
18 
19 class ShellExtensionSystem;
20 
21 // Base class for app shell browser tests.
22 class AppShellTest : public content::BrowserTestBase {
23  public:
24   AppShellTest();
25   ~AppShellTest() override;
26 
27   // content::BrowserTestBase implementation.
28   void SetUp() override;
29   void PreRunTestOnMainThread() override;
30   void PostRunTestOnMainThread() override;
31 
browser_context()32   content::BrowserContext* browser_context() { return browser_context_; }
33 
34  protected:
35   content::BrowserContext* browser_context_ = nullptr;
36   ShellExtensionSystem* extension_system_ = nullptr;
37 };
38 
39 }  // namespace extensions
40 
41 #endif  // EXTENSIONS_SHELL_TEST_SHELL_TEST_H_
42