Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / shell / test / shell_test.h
blobc9d36ed011cdd99916acc3cf1c1764cb1c5aea8b
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.
5 #ifndef EXTENSIONS_SHELL_TEST_SHELL_TEST_H_
6 #define EXTENSIONS_SHELL_TEST_SHELL_TEST_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/test/browser_test.h"
10 #include "content/public/test/browser_test_base.h"
12 namespace base {
13 class FilePath;
16 namespace content {
17 class BrowserContext;
20 namespace extensions {
22 class ShellExtensionSystem;
24 // Base class for app shell browser tests.
25 class AppShellTest : public content::BrowserTestBase {
26 public:
27 AppShellTest();
28 virtual ~AppShellTest();
30 // content::BrowserTestBase implementation.
31 virtual void SetUp() OVERRIDE;
32 virtual void SetUpOnMainThread() OVERRIDE;
33 virtual void RunTestOnMainThreadLoop() OVERRIDE;
35 // Loads an unpacked application from a directory using |extension_system_|
36 // and attempts to launch it. Returns true on success.
37 bool LoadAndLaunchApp(const base::FilePath& app_dir);
39 content::BrowserContext* browser_context() { return browser_context_; }
41 private:
42 content::BrowserContext* browser_context_;
43 ShellExtensionSystem* extension_system_;
46 } // namespace extensions
48 #endif // EXTENSIONS_SHELL_TEST_SHELL_TEST_H_