1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/test/test_render_frame_host.h"
7 #include "content/browser/frame_host/frame_tree.h"
8 #include "content/test/test_render_view_host.h"
12 TestRenderFrameHost::TestRenderFrameHost(RenderViewHostImpl
* render_view_host
,
13 RenderFrameHostDelegate
* delegate
,
14 FrameTree
* frame_tree
,
15 FrameTreeNode
* frame_tree_node
,
18 : RenderFrameHostImpl(render_view_host
,
24 // Allow TestRenderViewHosts to easily access their main frame RFH.
25 if (frame_tree_node
== frame_tree
->root()) {
26 static_cast<TestRenderViewHost
*>(render_view_host
)->
27 set_main_render_frame_host(this);
31 TestRenderFrameHost::~TestRenderFrameHost() {}
33 } // namespace content