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

Unified Diff: chrome/test/base/in_process_browser_test.h

Issue 1225093003: mac: Flush the autorelease pool after making a browser window in browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser_test_base
Patch Set: Comments from jhawkins, round two. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/in_process_browser_test.h
diff --git a/chrome/test/base/in_process_browser_test.h b/chrome/test/base/in_process_browser_test.h
index 84049ec0c7a454997ecab25c7c834bda3304df6e..9192ec2288b61919268b6a71faf66f79bece4f34 100644
--- a/chrome/test/base/in_process_browser_test.h
+++ b/chrome/test/base/in_process_browser_test.h
@@ -143,6 +143,15 @@ class InProcessBrowserTest : public content::BrowserTestBase {
// BrowserTestBase:
void RunTestOnMainThreadLoop() override;
+ // Ensures that no devtools are open, and then opens the devtools.
+ void OpenDevToolsWindow(content::WebContents* web_contents);
+
+ // Opens |url| in an incognito browser window with the incognito profile of
+ // |profile|, blocking until the navigation finishes. This will create a new
+ // browser if a browser with the incognito profile does not exist. Returns the
+ // incognito window Browser.
+ Browser* OpenURLOffTheRecord(Profile* profile, const GURL& url);
+
// Creates a browser with a single tab (about:blank), waits for the tab to
// finish loading and shows the browser.
//
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698