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 #include "content/test/test_render_frame.h" | 5 #include "content/test/test_render_frame.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "content/child/web_url_loader_impl.h" | 9 #include "content/child/web_url_loader_impl.h" |
10 #include "content/common/frame_messages.h" | 10 #include "content/common/frame_messages.h" |
11 #include "content/common/navigation_params.h" | 11 #include "content/common/navigation_params.h" |
12 #include "content/common/resource_request_body_impl.h" | |
13 #include "content/public/common/associated_interface_provider.h" | 12 #include "content/public/common/associated_interface_provider.h" |
14 #include "content/public/common/browser_side_navigation_policy.h" | 13 #include "content/public/common/browser_side_navigation_policy.h" |
15 #include "content/public/common/resource_response.h" | 14 #include "content/public/common/resource_response.h" |
16 #include "content/public/test/mock_render_thread.h" | 15 #include "content/public/test/mock_render_thread.h" |
17 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 16 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
18 | 17 |
19 namespace content { | 18 namespace content { |
20 | 19 |
21 class MockFrameHost : public mojom::FrameHost { | 20 class MockFrameHost : public mojom::FrameHost { |
22 public: | 21 public: |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 132 |
134 mojom::FrameHostAssociatedPtr TestRenderFrame::GetFrameHost() { | 133 mojom::FrameHostAssociatedPtr TestRenderFrame::GetFrameHost() { |
135 mojom::FrameHostAssociatedPtr ptr = RenderFrameImpl::GetFrameHost(); | 134 mojom::FrameHostAssociatedPtr ptr = RenderFrameImpl::GetFrameHost(); |
136 | 135 |
137 // Needed to ensure no deadlocks when waiting for sync IPC. | 136 // Needed to ensure no deadlocks when waiting for sync IPC. |
138 ptr.FlushForTesting(); | 137 ptr.FlushForTesting(); |
139 return ptr; | 138 return ptr; |
140 } | 139 } |
141 | 140 |
142 } // namespace content | 141 } // namespace content |
OLD | NEW |