Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1342)

Unified Diff: apps/test/app_shell_test.h

Issue 205653002: Add apps_browsertests target (currently running 0 tests). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win gyp fix Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/shell/browser/shell_browser_main_parts.cc ('k') | apps/test/app_shell_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e6be4609316cee69bb5436cea7fada33d38fa506
--- /dev/null
+++ b/apps/test/app_shell_test.h
@@ -0,0 +1,48 @@
+// 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;
+
+ // Loads an unpacked application from a directory using |extension_system_|
+ // and attempts to launch it. Returns true on success.
+ bool LoadAndLaunchApp(const base::FilePath& app_dir);
+
+ 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_
« no previous file with comments | « apps/shell/browser/shell_browser_main_parts.cc ('k') | apps/test/app_shell_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698