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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 #if defined(OS_WIN) | 183 #if defined(OS_WIN) |
184 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { | 184 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { |
185 } | 185 } |
186 | 186 |
187 void MockRenderThread::ReleaseCachedFonts() { | 187 void MockRenderThread::ReleaseCachedFonts() { |
188 } | 188 } |
189 | 189 |
190 #endif // OS_WIN | 190 #endif // OS_WIN |
191 | 191 |
192 IPC::AttachmentBroker* MockRenderThread::GetAttachmentBroker() { | |
193 return nullptr; | |
194 } | |
195 | |
196 ServiceRegistry* MockRenderThread::GetServiceRegistry() { | 192 ServiceRegistry* MockRenderThread::GetServiceRegistry() { |
197 return NULL; | 193 return NULL; |
198 } | 194 } |
199 | 195 |
200 void MockRenderThread::SendCloseMessage() { | 196 void MockRenderThread::SendCloseMessage() { |
201 ViewMsg_Close msg(routing_id_); | 197 ViewMsg_Close msg(routing_id_); |
202 RenderViewImpl::FromRoutingID(routing_id_)->OnMessageReceived(msg); | 198 RenderViewImpl::FromRoutingID(routing_id_)->OnMessageReceived(msg); |
203 } | 199 } |
204 | 200 |
205 // The Widget expects to be returned valid route_id. | 201 // 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( | 258 void MockRenderThread::OnDuplicateSection( |
263 base::SharedMemoryHandle renderer_handle, | 259 base::SharedMemoryHandle renderer_handle, |
264 base::SharedMemoryHandle* browser_handle) { | 260 base::SharedMemoryHandle* browser_handle) { |
265 // We don't have to duplicate the input handles since RenderViewTest does not | 261 // We don't have to duplicate the input handles since RenderViewTest does not |
266 // separate a browser process from a renderer process. | 262 // separate a browser process from a renderer process. |
267 *browser_handle = renderer_handle; | 263 *browser_handle = renderer_handle; |
268 } | 264 } |
269 #endif // defined(OS_WIN) | 265 #endif // defined(OS_WIN) |
270 | 266 |
271 } // namespace content | 267 } // namespace content |
OLD | NEW |