From c70013bd3f8f695abe9b5d96e992c669557d6f60 Mon Sep 17 00:00:00 2001 From: "kkania@chromium.org" Date: Wed, 20 Jan 2010 21:50:03 +0000 Subject: Add 3 tests for extension installation. Fix and re-enable UpdatePermissions test. BUG=none TEST=none Review URL: http://codereview.chromium.org/547017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36679 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/ui_test_utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'chrome/test/ui_test_utils.h') 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. -- cgit v1.1