Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / content / test / test_render_frame.h
blobf8020a1c69b877e2851f1f750054913eff3c3b4f
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"
10 namespace content {
12 class RenderViewImpl;
13 struct CommonNavigationParams;
14 struct RequestNavigationParams;
15 struct StartNavigationParams;
17 // A test class to use in RenderViewTests.
18 class TestRenderFrame : public RenderFrameImpl {
19 public:
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,
28 bool is_loading,
29 const FrameReplicationState& replicated_frame_state);
30 void SetEditableSelectionOffsets(int start, int end);
31 void ExtendSelectionAndDelete(int before, int after);
32 void Unselect();
33 void SetAccessibilityMode(AccessibilityMode new_mode);
34 void SetCompositionFromExistingText(
35 int start,
36 int end,
37 const std::vector<blink::WebCompositionUnderline>& underlines);
39 private:
40 explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params);
41 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame);
44 } // namespace content
46 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_