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

Unified Diff: content/test/test_render_frame_host.h

Issue 761013003: PlzNavigate: add support in several navigation controller unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Nasko's comments Created 6 years 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 | « content/browser/frame_host/navigator_impl.cc ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame_host.h
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index a828bd56a09fcbdf73ff57527d5967ae4bdae0b7..621bc6debebb57c896f0d0209dc394bf7701c5ac 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -95,6 +95,13 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
simulate_history_list_was_cleared_ = cleared;
}
+ // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to
+ // a state where a new navigation can be committed by a renderer. Currently,
+ // this simulates a BeforeUnload ACK from the renderer.
+ // PlzNavigate: this simulates a BeforeUnload ACK from the renderer, and the
+ // interaction with the IO thread up until the response is ready to commit.
+ void PrepareForCommit(const GURL& url);
+
private:
TestRenderFrameHostCreationObserver child_creation_observer_;
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698