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