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

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

Issue 829263004: Add WaitForInterstitialReady to browser_test_utils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mattm comments, fix test Created 5 years, 11 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 761b5075eacaef16e61c7eece5befa74cae58e6d..99f92c2df101418f47bfff5181514a1a427dc9fd 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -52,6 +52,7 @@ class EmbeddedTestServer;
namespace content {
class BrowserContext;
+class InterstitialPage;
mattm 2015/01/22 04:51:27 no longer needed
meacer 2015/01/22 18:31:37 Done.
class MessageLoopRunner;
class RenderViewHost;
class WebContents;
@@ -243,6 +244,9 @@ void WaitForInterstitialDetach(content::WebContents* web_contents);
void RunTaskAndWaitForInterstitialDetach(content::WebContents* web_contents,
const base::Closure& task);
+// Waits until all resources have loaded in the given RenderFrameHost.
+bool WaitForRenderFrameReady(RenderFrameHost* rfh);
Paweł Hajdan Jr. 2015/01/22 15:43:10 nit: Please add WARN_UNUSED_RESULT.
meacer 2015/01/22 18:31:37 Done.
+
// Watches title changes on a WebContents, blocking until an expected title is
// set.
class TitleWatcher : public WebContentsObserver {

Powered by Google App Engine
This is Rietveld 408576698