Index: chrome/browser/extensions/extension_browsertest.h |
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h |
index ed4fc72f1745364169239ef75c3d07d30d44dbdc..4da6c0ef5e0d30035cb48aabe8bddd3c6a76a96a 100644 |
--- a/chrome/browser/extensions/extension_browsertest.h |
+++ b/chrome/browser/extensions/extension_browsertest.h |
@@ -22,6 +22,7 @@ |
#include "content/public/browser/web_contents.h" |
class ExtensionProcessManager; |
+class ShellWindow; |
// Base class for extension browser tests. Provides utilities for loading, |
// unloading, and installing extensions. |
@@ -169,6 +170,13 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest, |
// Wait for the crx installer to be done. Returns true if it really is done. |
bool WaitForCrxInstallerDone(); |
+ // Closes |window| and waits until it's gone. |
+ void CloseShellWindow(ShellWindow* window); |
+ |
+ // Close any Shell Windows and wait for the app's background page to be |
+ // unloaded. |
+ void CloseShellWindowsAndWaitForAppToExit(); |
+ |
// Simulates a page calling window.open on an URL and waits for the |
// navigation. |
void OpenWindow(content::WebContents* contents, |