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

Side by Side Diff: trunk/src/chrome/browser/apps/app_browsertest_util.h

Issue 23600025: Revert 222235 ""Redirecting URLs to Packaged Apps" implementatio..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_
6 #define CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ 6 #define CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_
7 7
8 8
9 #include "apps/shell_window.h" 9 #include "apps/shell_window.h"
10 #include "chrome/browser/extensions/extension_apitest.h" 10 #include "chrome/browser/extensions/extension_apitest.h"
11 #include "content/public/common/page_transition_types.h"
12 11
13 namespace content { 12 namespace content {
14 class WebContents; 13 class WebContents;
15 } 14 }
16 15
17 class CommandLine; 16 class CommandLine;
18 17
19 namespace extensions { 18 namespace extensions {
20 class Extension; 19 class Extension;
21 20
22 class PlatformAppBrowserTest : public ExtensionApiTest { 21 class PlatformAppBrowserTest : public ExtensionApiTest {
23 public: 22 public:
24 PlatformAppBrowserTest(); 23 PlatformAppBrowserTest();
25 24
26 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 25 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
27 26
28 protected: 27 protected:
29 // Runs the app named |name| out of the platform_apps subdirectory. Waits 28 // Runs the app named |name| out of the platform_apps subdirectory. Waits
30 // until it is launched. 29 // until it is launched.
31 const Extension* LoadAndLaunchPlatformApp(const char* name); 30 const Extension* LoadAndLaunchPlatformApp(const char* name);
32 31
33 // Installs the app named |name| out of the platform_apps subdirectory.
34 const Extension* InstallPlatformApp(const char* name);
35
36 // Installs and runs the app named |name| out of the platform_apps 32 // Installs and runs the app named |name| out of the platform_apps
37 // subdirectory. Waits until it is launched. 33 // subdirectory. Waits until it is launched.
38 const Extension* InstallAndLaunchPlatformApp(const char* name); 34 const Extension* InstallAndLaunchPlatformApp(const char* name);
39 35
40 // Gets the WebContents associated with the first shell window that is found 36 // Gets the WebContents associated with the first shell window that is found
41 // (most tests only deal with one platform app window, so this is good 37 // (most tests only deal with one platform app window, so this is good
42 // enough). 38 // enough).
43 content::WebContents* GetFirstShellWindowWebContents(); 39 content::WebContents* GetFirstShellWindowWebContents();
44 40
45 // Gets the first shell window that is found (most tests only deal with one 41 // Gets the first shell window that is found (most tests only deal with one
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 }; 83 };
88 84
89 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { 85 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest {
90 public: 86 public:
91 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 87 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
92 }; 88 };
93 89
94 } // namespace extensions 90 } // namespace extensions
95 91
96 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ 92 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/apps/app_browsertest.cc ('k') | trunk/src/chrome/browser/apps/app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698