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..001dc4409aa345a773316a476d950a4ce14530b3 100644 |
--- a/content/public/test/browser_test_utils.h |
+++ b/content/public/test/browser_test_utils.h |
@@ -243,6 +243,12 @@ 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. |
+// When the load completes, this function sends a "pageLoadComplete" message |
+// via domAutomationController. The caller should make sure this extra |
+// message is handled properly. |
+bool WaitForRenderFrameReady(RenderFrameHost* rfh) WARN_UNUSED_RESULT; |
+ |
// Watches title changes on a WebContents, blocking until an expected title is |
// set. |
class TitleWatcher : public WebContentsObserver { |