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

Unified 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: Addressed Nasko's comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/test/test_render_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame.h
diff --git a/content/test/test_render_frame.h b/content/test/test_render_frame.h
new file mode 100644
index 0000000000000000000000000000000000000000..02b6e63dd0fc8a1bb85772a956df7e149c30093a
--- /dev/null
+++ b/content/test/test_render_frame.h
@@ -0,0 +1,46 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_
+#define CONTENT_TEST_TEST_RENDER_FRAME_H_
+
+#include "content/renderer/render_frame_impl.h"
+
+namespace content {
+
+class RenderViewImpl;
+struct CommonNavigationParams;
+struct RequestNavigationParams;
+struct StartNavigationParams;
+
+// A test class to use in RenderViewTests.
+class TestRenderFrame : public RenderFrameImpl {
+ public:
+ static RenderFrameImpl* CreateTestRenderFrame(RenderViewImpl* render_view,
+ int32 routing_id);
+ ~TestRenderFrame() override;
+
+ void Navigate(const CommonNavigationParams& common_params,
+ const StartNavigationParams& start_params,
+ const RequestNavigationParams& request_params);
+ void SwapOut(int proxy_routing_id,
+ bool is_loading,
+ const FrameReplicationState& replicated_frame_state);
+ void SetEditableSelectionOffsets(int start, int end);
+ void ExtendSelectionAndDelete(int before, int after);
+ void Unselect();
+ void SetAccessibilityMode(AccessibilityMode new_mode);
+ void SetCompositionFromExistingText(
+ int start,
+ int end,
+ const std::vector<blink::WebCompositionUnderline>& underlines);
+
+ private:
+ TestRenderFrame(RenderViewImpl* render_view, int32 routing_id);
+ DISALLOW_COPY_AND_ASSIGN(TestRenderFrame);
+};
+
+} // namespace content
+
+#endif // CONTENT_TEST_TEST_RENDER_FRAME_H_
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/test/test_render_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698