| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_FRAME_H_ | 6 #define CONTENT_TEST_TEST_RENDER_FRAME_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "content/renderer/render_frame_impl.h" | 11 #include "content/renderer/render_frame_impl.h" |
| 10 | 12 |
| 11 namespace blink { | 13 namespace blink { |
| 12 class WebHistoryItem; | 14 class WebHistoryItem; |
| 13 } | 15 } |
| 14 | 16 |
| 15 namespace content { | 17 namespace content { |
| 16 | 18 |
| 17 struct CommonNavigationParams; | 19 struct CommonNavigationParams; |
| 20 class MockFrameHostIPC; |
| 18 struct RequestNavigationParams; | 21 struct RequestNavigationParams; |
| 19 struct StartNavigationParams; | 22 struct StartNavigationParams; |
| 20 | 23 |
| 21 // A test class to use in RenderViewTests. | 24 // A test class to use in RenderViewTests. |
| 22 class TestRenderFrame : public RenderFrameImpl { | 25 class TestRenderFrame : public RenderFrameImpl { |
| 23 public: | 26 public: |
| 24 static RenderFrameImpl* CreateTestRenderFrame( | 27 static RenderFrameImpl* CreateTestRenderFrame( |
| 25 const RenderFrameImpl::CreateParams& params); | 28 const RenderFrameImpl::CreateParams& params); |
| 26 ~TestRenderFrame() override; | 29 ~TestRenderFrame() override; |
| 27 | 30 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 42 void CollapseSelection(); | 45 void CollapseSelection(); |
| 43 void SetAccessibilityMode(AccessibilityMode new_mode); | 46 void SetAccessibilityMode(AccessibilityMode new_mode); |
| 44 void SetCompositionFromExistingText( | 47 void SetCompositionFromExistingText( |
| 45 int start, | 48 int start, |
| 46 int end, | 49 int end, |
| 47 const std::vector<blink::WebCompositionUnderline>& underlines); | 50 const std::vector<blink::WebCompositionUnderline>& underlines); |
| 48 | 51 |
| 49 blink::WebNavigationPolicy DecidePolicyForNavigation( | 52 blink::WebNavigationPolicy DecidePolicyForNavigation( |
| 50 const blink::WebFrameClient::NavigationPolicyInfo& info) override; | 53 const blink::WebFrameClient::NavigationPolicyInfo& info) override; |
| 51 | 54 |
| 55 mojom::FrameHostIPC* GetFrameHostIPC() override; |
| 56 |
| 52 private: | 57 private: |
| 53 explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params); | 58 explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params); |
| 59 |
| 60 std::unique_ptr<MockFrameHostIPC> mock_frame_host_ipc_; |
| 61 |
| 54 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame); | 62 DISALLOW_COPY_AND_ASSIGN(TestRenderFrame); |
| 55 }; | 63 }; |
| 56 | 64 |
| 57 } // namespace content | 65 } // namespace content |
| 58 | 66 |
| 59 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_ | 67 #endif // CONTENT_TEST_TEST_RENDER_FRAME_H_ |
| OLD | NEW |