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

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: Fix grammar on some comments. 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
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 494386a45e2541bee6f8d85f65076dceb7761d81..99e88ea620344f9cf6a6bf2e5ef869800b081c54 100644
--- a/chrome/test/base/in_process_browser_test.h
+++ b/chrome/test/base/in_process_browser_test.h
@@ -123,6 +123,13 @@ class InProcessBrowserTest : public content::BrowserTestBase {
// outstanding resources.
void CloseAllBrowsers();
+ // Ensures that no devtools are open, and then opens the devtools.
+ void OpenDevToolsWindow(content::WebContents* web_contents);
+
+ // Similar to ui_test_utils::OpenURLOffTheRecord, but also flushes the
+ // Autoreleasepool on Mac.
+ Browser* OpenURLOffTheRecord(Profile* profile, const GURL& url);
+
// Convenience methods for adding tabs to a Browser.
void AddTabAtIndexToBrowser(Browser* browser,
int index,

Powered by Google App Engine
This is Rietveld 408576698