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

Side by Side Diff: chrome/browser/extensions/platform_app_browsertest_util.h

Issue 10907243: Add "inspect background page" to platform app right-click menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment in test Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
7 7
8 8
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 class PlatformAppBrowserTest : public ExtensionApiTest { 22 class PlatformAppBrowserTest : public ExtensionApiTest {
23 public: 23 public:
24 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 24 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
25 25
26 protected: 26 protected:
27 // Runs the app named |name| out of the platform_apps subdirectory. Waits 27 // Runs the app named |name| out of the platform_apps subdirectory. Waits
28 // until it is launched. 28 // until it is launched.
29 const Extension* LoadAndLaunchPlatformApp(const char* name); 29 const Extension* LoadAndLaunchPlatformApp(const char* name);
30 30
31 // Installs and runs the app named |name| out of the platform_apps
32 // subdirectory. Waits until it is launched.
33 const Extension* InstallAndLaunchPlatformApp(const char* name);
34
31 // Gets the WebContents associated with the first shell window that is found 35 // Gets the WebContents associated with the first shell window that is found
32 // (most tests only deal with one platform app window, so this is good 36 // (most tests only deal with one platform app window, so this is good
33 // enough). 37 // enough).
34 content::WebContents* GetFirstShellWindowWebContents(); 38 content::WebContents* GetFirstShellWindowWebContents();
35 39
36 // Gets the first shell window that is found (most tests only deal with one 40 // Gets the first shell window that is found (most tests only deal with one
37 // platform app window, so this is good enough). 41 // platform app window, so this is good enough).
38 ShellWindow* GetFirstShellWindow(); 42 ShellWindow* GetFirstShellWindow();
39 43
40 // Runs chrome.windows.getAll for the given extension and returns the number 44 // Runs chrome.windows.getAll for the given extension and returns the number
(...skipping 19 matching lines...) Expand all
60 // Creates an empty shell window for |extension|. 64 // Creates an empty shell window for |extension|.
61 ShellWindow* CreateShellWindow(const Extension* extension); 65 ShellWindow* CreateShellWindow(const Extension* extension);
62 66
63 // Closes |window| and waits until it's gone. 67 // Closes |window| and waits until it's gone.
64 void CloseShellWindow(ShellWindow* window); 68 void CloseShellWindow(ShellWindow* window);
65 }; 69 };
66 70
67 } 71 }
68 72
69 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ 73 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | chrome/browser/extensions/platform_app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698