OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/test/mock_render_thread.h" | 5 #include "content/public/test/mock_render_thread.h" |
6 | 6 |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "content/common/frame_messages.h" | 9 #include "content/common/frame_messages.h" |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 #if defined(OS_WIN) | 187 #if defined(OS_WIN) |
188 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { | 188 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { |
189 } | 189 } |
190 | 190 |
191 void MockRenderThread::ReleaseCachedFonts() { | 191 void MockRenderThread::ReleaseCachedFonts() { |
192 } | 192 } |
193 | 193 |
194 #endif // OS_WIN | 194 #endif // OS_WIN |
195 | 195 |
| 196 IPC::AttachmentBroker* MockRenderThread::GetAttachmentBroker() { |
| 197 return nullptr; |
| 198 } |
| 199 |
196 ServiceRegistry* MockRenderThread::GetServiceRegistry() { | 200 ServiceRegistry* MockRenderThread::GetServiceRegistry() { |
197 return NULL; | 201 return NULL; |
198 } | 202 } |
199 | 203 |
200 void MockRenderThread::SendCloseMessage() { | 204 void MockRenderThread::SendCloseMessage() { |
201 ViewMsg_Close msg(routing_id_); | 205 ViewMsg_Close msg(routing_id_); |
202 RenderViewImpl::FromRoutingID(routing_id_)->OnMessageReceived(msg); | 206 RenderViewImpl::FromRoutingID(routing_id_)->OnMessageReceived(msg); |
203 } | 207 } |
204 | 208 |
205 // The Widget expects to be returned valid route_id. | 209 // The Widget expects to be returned valid route_id. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 void MockRenderThread::OnDuplicateSection( | 266 void MockRenderThread::OnDuplicateSection( |
263 base::SharedMemoryHandle renderer_handle, | 267 base::SharedMemoryHandle renderer_handle, |
264 base::SharedMemoryHandle* browser_handle) { | 268 base::SharedMemoryHandle* browser_handle) { |
265 // We don't have to duplicate the input handles since RenderViewTest does not | 269 // We don't have to duplicate the input handles since RenderViewTest does not |
266 // separate a browser process from a renderer process. | 270 // separate a browser process from a renderer process. |
267 *browser_handle = renderer_handle; | 271 *browser_handle = renderer_handle; |
268 } | 272 } |
269 #endif // defined(OS_WIN) | 273 #endif // defined(OS_WIN) |
270 | 274 |
271 } // namespace content | 275 } // namespace content |
OLD | NEW |