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

Unified Diff: content/public/test/browser_test_utils.h

Issue 330113002: Fixing flaky overscroll and touch exploration mode browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding back a comment removed by accident. Created 6 years, 6 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: content/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index b074fb4ef2dc2530894c7e95bbaa104d4c235832..4c645011aae4fa311105f99f8804ccb9a5c1a7c4 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -57,6 +57,14 @@ GURL GetFileUrlWithQuery(const base::FilePath& path,
// tab is currently web_contents. Otherwise returns immediately.
void WaitForLoadStop(WebContents* web_contents);
+#if defined(USE_AURA)
+// If WebContent's view is currently being resized, this will wait for the ack
+// from the renderer that the resize is complete and for the
+// WindowEventDispatcher to release the pointer moves. If there's no resize in
+// progress, the method will return right away.
+void WaitForResizeComplete(WebContents* web_contents);
+#endif // USE_AURA
+
// Causes the specified web_contents to crash. Blocks until it is crashed.
void CrashTab(WebContents* web_contents);
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698