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

Unified Diff: content/test/test_render_frame_host.cc

Issue 606113005: Move RenderViewHost swap out state to RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix review suggestions Created 6 years, 3 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
« no previous file with comments | « content/test/test_render_frame_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame_host.cc
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc
index 2f96bc813f98d62b614ebec706d30cd69d849c91..12c3d39fa0c9c877316e9513a2cf9c548d102d5e 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -70,6 +70,15 @@ void TestRenderFrameHost::SendNavigateWithTransition(
SendNavigateWithTransitionAndResponseCode(page_id, url, transition, 200);
}
+void TestRenderFrameHost::SendBeforeUnloadACK(bool proceed) {
+ base::TimeTicks now = base::TimeTicks::Now();
+ OnBeforeUnloadACK(proceed, now, now);
+}
+
+void TestRenderFrameHost::SimulateSwapOutACK() {
+ OnSwappedOut();
+}
+
void TestRenderFrameHost::SendNavigate(int page_id, const GURL& url) {
SendNavigateWithTransition(page_id, url, ui::PAGE_TRANSITION_LINK);
}
« no previous file with comments | « content/test/test_render_frame_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698