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

Unified Diff: content/test/test_render_frame_host.h

Issue 857213003: Refactor sudden termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 5 years, 10 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/renderer/render_frame_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 227b5cf6029cfc31bf882bd02ff5de380973395f..78536c227f61e9ea08c1e7801bae57c11a74064d 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -104,6 +104,12 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
// interaction with the IO thread up until the response is ready to commit.
void PrepareForCommit(const GURL& url);
+ // Simulate receiving a FrameHostMsg_BeforeUnloadHandlersPresent.
+ void SendBeforeUnloadHandlersPresent(bool present);
+
+ // Simulate receiving a FrameHostMsg_UnloadHandlersPresent.
+ void SendUnloadHandlersPresent(bool present);
+
private:
TestRenderFrameHostCreationObserver child_creation_observer_;
« no previous file with comments | « content/renderer/render_frame_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