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

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: 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/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 621bc6debebb57c896f0d0209dc394bf7701c5ac..7493d99ea4e32bf343055ad1e6e48fc5fed5ccdf 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -102,6 +102,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_BeforeUnloadHandlersPresenceChanged.
+ void SendBeforeUnloadHandlersPresenceChanged(bool present);
+
+ // Simulate receiving a FrameHostMsg_UnloadHandlersPresenceChanged.
+ void SendUnloadHandlersPresenceChanged(bool present);
+
private:
TestRenderFrameHostCreationObserver child_creation_observer_;

Powered by Google App Engine
This is Rietveld 408576698