diff options
Diffstat (limited to 'chrome/test/ui_test_utils.h')
-rw-r--r-- | chrome/test/ui_test_utils.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/test/ui_test_utils.h b/chrome/test/ui_test_utils.h index 89dc8fc..600aca0 100644 --- a/chrome/test/ui_test_utils.h +++ b/chrome/test/ui_test_utils.h @@ -19,6 +19,7 @@ class DownloadManager; class GURL; class MessageLoop; class NavigationController; +class Profile; class RenderViewHost; class TabContents; class Value; @@ -58,6 +59,11 @@ void WaitForNewTab(Browser* browser); // Waits for a load stop for the specified |controller|. void WaitForLoadStop(NavigationController* controller); +// Opens |url| in an incognito browser window with the off the record profile of +// |profile|, blocking until the navigation finishes. This will create a new +// browser if a browser with the off the record profile does not exist. +void OpenURLOffTheRecord(Profile* profile, const GURL& url); + // Navigates the selected tab of |browser| to |url|, blocking until the // navigation finishes. void NavigateToURL(Browser* browser, const GURL& url); @@ -68,7 +74,6 @@ void NavigateToURLBlockUntilNavigationsComplete(Browser* browser, const GURL& url, int number_of_navigations); - // Executes the passed |script| in the frame pointed to by |frame_xpath| (use // empty string for main frame) and returns the value the evaluation of the // script returned. The caller owns the returned value. |