Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 APPS_TEST_APP_SHELL_TEST_H_ | |
| 6 #define APPS_TEST_APP_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 | |
| 12 namespace base { | |
| 13 class FilePath; | |
| 14 } | |
| 15 | |
| 16 namespace content { | |
| 17 class BrowserContext; | |
| 18 } | |
| 19 | |
| 20 namespace extensions { | |
| 21 class ShellExtensionSystem; | |
| 22 } | |
| 23 | |
| 24 namespace apps { | |
| 25 | |
| 26 // Base class for app shell browser tests. | |
| 27 class AppShellTest : public content::BrowserTestBase { | |
| 28 public: | |
| 29 AppShellTest(); | |
| 30 virtual ~AppShellTest(); | |
| 31 | |
| 32 virtual void SetUpOnMainThread() OVERRIDE; | |
| 33 virtual void RunTestOnMainThreadLoop() OVERRIDE; | |
| 34 | |
| 35 bool LoadAndLaunchApp(const base::FilePath& app_dir); | |
|
jam
2014/03/20 16:58:13
nit: document
Yoyo Zhou
2014/03/20 21:17:30
Done.
| |
| 36 | |
| 37 content::BrowserContext* browser_context() { return browser_context_; } | |
| 38 | |
| 39 private: | |
| 40 content::BrowserContext* browser_context_; | |
| 41 extensions::ShellExtensionSystem* extension_system_; | |
| 42 }; | |
| 43 | |
| 44 } // namespace apps | |
| 45 | |
| 46 #endif // APPS_TEST_APP_SHELL_TEST_H_ | |
| OLD | NEW |