Chromium Code Reviews| Index: apps/test/app_shell_test.h |
| diff --git a/apps/test/app_shell_test.h b/apps/test/app_shell_test.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fec8db07379613ec7903a073be35a331a58bb31c |
| --- /dev/null |
| +++ b/apps/test/app_shell_test.h |
| @@ -0,0 +1,46 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef APPS_TEST_APP_SHELL_TEST_H_ |
| +#define APPS_TEST_APP_SHELL_TEST_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "content/public/test/browser_test.h" |
| +#include "content/public/test/browser_test_base.h" |
| + |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| +namespace content { |
| +class BrowserContext; |
| +} |
| + |
| +namespace extensions { |
| +class ShellExtensionSystem; |
| +} |
| + |
| +namespace apps { |
| + |
| +// Base class for app shell browser tests. |
| +class AppShellTest : public content::BrowserTestBase { |
| + public: |
| + AppShellTest(); |
| + virtual ~AppShellTest(); |
| + |
| + virtual void SetUpOnMainThread() OVERRIDE; |
| + virtual void RunTestOnMainThreadLoop() OVERRIDE; |
| + |
| + 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.
|
| + |
| + content::BrowserContext* browser_context() { return browser_context_; } |
| + |
| + private: |
| + content::BrowserContext* browser_context_; |
| + extensions::ShellExtensionSystem* extension_system_; |
| +}; |
| + |
| +} // namespace apps |
| + |
| +#endif // APPS_TEST_APP_SHELL_TEST_H_ |