1 // Copyright 2015 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 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_
6 #define CONTENT_TEST_TEST_RENDER_FRAME_H_
8 #include "content/renderer/render_frame_impl.h"
13 struct CommonNavigationParams
;
14 struct RequestNavigationParams
;
15 struct StartNavigationParams
;
17 // A test class to use in RenderViewTests.
18 class TestRenderFrame
: public RenderFrameImpl
{
20 static RenderFrameImpl
* CreateTestRenderFrame(
21 const RenderFrameImpl::CreateParams
& params
);
22 ~TestRenderFrame() override
;
24 void Navigate(const CommonNavigationParams
& common_params
,
25 const StartNavigationParams
& start_params
,
26 const RequestNavigationParams
& request_params
);
27 void SwapOut(int proxy_routing_id
,
29 const FrameReplicationState
& replicated_frame_state
);
30 void SetEditableSelectionOffsets(int start
, int end
);
31 void ExtendSelectionAndDelete(int before
, int after
);
33 void SetAccessibilityMode(AccessibilityMode new_mode
);
34 void SetCompositionFromExistingText(
37 const std::vector
<blink::WebCompositionUnderline
>& underlines
);
40 explicit TestRenderFrame(const RenderFrameImpl::CreateParams
& params
);
41 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame
);
44 } // namespace content
46 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_