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

Side by Side Diff: content/test/test_render_frame.h

Issue 1206753003: Add a TestRenderFrame to use in RenderViewTests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_
6 #define CONTENT_TEST_TEST_RENDER_FRAME_H_
7
8 #include "content/renderer/render_frame_impl.h"
9
10 namespace content {
11
12 class RenderViewImpl;
13 struct CommonNavigationParams;
14 struct RequestNavigationParams;
15 struct StartNavigationParams;
16
17 // A test class to use in RenderViewTests.
18 class TestRenderFrame : public RenderFrameImpl {
19 public:
20 static RenderFrameImpl* CreateTestRenderFrame(RenderViewImpl* render_view,
21 int32 routing_id);
22 ~TestRenderFrame() override;
23
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);
38
39 private:
40 TestRenderFrame(RenderViewImpl* render_view, int32 routing_id);
41 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame);
42 };
43
44 } // namespace content
45
46 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698