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

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

Issue 23847004: "Redirecting URLs to Packaged Apps" implementation: revised (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Necessary changes in test utils + removed 'experimental' in missed spot 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
« no previous file with comments | « apps/launcher.cc ('k') | chrome/browser/apps/app_browsertest_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 PlatformAppBrowserTest(); 23 PlatformAppBrowserTest();
24 24
25 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 25 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
26 26
27 protected: 27 protected:
28 // 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
29 // until it is launched. 29 // until it is launched.
30 const Extension* LoadAndLaunchPlatformApp(const char* name); 30 const Extension* LoadAndLaunchPlatformApp(const char* name);
31 31
32 // Installs the app named |name| out of the platform_apps subdirectory.
33 const Extension* InstallPlatformApp(const char* name);
not at google - send to devlin 2013/09/06 19:12:30 noticed this change. did you mean to add a test as
34
32 // Installs and runs the app named |name| out of the platform_apps 35 // Installs and runs the app named |name| out of the platform_apps
33 // subdirectory. Waits until it is launched. 36 // subdirectory. Waits until it is launched.
34 const Extension* InstallAndLaunchPlatformApp(const char* name); 37 const Extension* InstallAndLaunchPlatformApp(const char* name);
35 38
36 // Gets the WebContents associated with the first shell window that is found 39 // Gets the WebContents associated with the first shell window that is found
37 // (most tests only deal with one platform app window, so this is good 40 // (most tests only deal with one platform app window, so this is good
38 // enough). 41 // enough).
39 content::WebContents* GetFirstShellWindowWebContents(); 42 content::WebContents* GetFirstShellWindowWebContents();
40 43
41 // Gets the first shell window that is found (most tests only deal with one 44 // 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
83 }; 86 };
84 87
85 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { 88 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest {
86 public: 89 public:
87 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 90 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
88 }; 91 };
89 92
90 } // namespace extensions 93 } // namespace extensions
91 94
92 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ 95 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_
OLDNEW
« no previous file with comments | « apps/launcher.cc ('k') | chrome/browser/apps/app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698