Index: content/browser/frame_host/render_frame_host_impl.h |
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
index 9c447275d21f22286612fab8e7f5dd74ad85f37f..035ea4b84c45ace79d99ab421392f872d4290843 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -575,7 +575,13 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
friend class TestRenderFrameHost; |
friend class TestRenderViewHost; |
+ FRIEND_TEST_ALL_PREFIXES(RenderFrameHostManagerTest, |
+ CreateRenderViewAfterProcessKillAndClosedProxy); |
+ FRIEND_TEST_ALL_PREFIXES(RenderFrameHostManagerTest, |
+ RenderViewInitAfterNewProxyAndProcessKill); |
FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, CrashSubframe); |
+ FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
+ RenderViewHostPendingDeletionIsNotReused); |
// IPC Message handlers. |
void OnAddMessageToConsole(int32_t level, |
@@ -733,6 +739,10 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, |
bad_message::BadMessageReason reason); |
+ // Allows tests to disable the swapout event timer to simulate bugs that |
+ // happen before it fires (to avoid flakiness). |
+ void ResetSwapOutTimerForTesting(); |
+ |
// For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
// refcount that calls Shutdown when it reaches zero. This allows each |
// RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |