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/test/mock_render_thread.h" | 5 #include "content/test/mock_render_thread.h" |
6 | 6 |
7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
9 #include "ipc/ipc_message_utils.h" | 9 #include "ipc/ipc_message_utils.h" |
10 #include "ipc/ipc_sync_message.h" | 10 #include "ipc/ipc_sync_message.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 | 65 |
66 std::string MockRenderThread::GetLocale() { | 66 std::string MockRenderThread::GetLocale() { |
67 return std::string(); | 67 return std::string(); |
68 } | 68 } |
69 | 69 |
70 IPC::SyncMessageFilter* MockRenderThread::GetSyncMessageFilter() { | 70 IPC::SyncMessageFilter* MockRenderThread::GetSyncMessageFilter() { |
71 return NULL; | 71 return NULL; |
72 } | 72 } |
73 | 73 |
| 74 scoped_refptr<base::MessageLoopProxy> |
| 75 MockRenderThread::GetIOMessageLoopProxy() { |
| 76 return scoped_refptr<base::MessageLoopProxy>(); |
| 77 } |
| 78 |
74 void MockRenderThread::AddRoute(int32 routing_id, | 79 void MockRenderThread::AddRoute(int32 routing_id, |
75 IPC::Channel::Listener* listener) { | 80 IPC::Channel::Listener* listener) { |
76 // We may hear this for views created from OnMsgCreateWindow as well, | 81 // We may hear this for views created from OnMsgCreateWindow as well, |
77 // in which case we don't want to track the new widget. | 82 // in which case we don't want to track the new widget. |
78 if (routing_id_ == routing_id) | 83 if (routing_id_ == routing_id) |
79 widget_ = listener; | 84 widget_ = listener; |
80 } | 85 } |
81 | 86 |
82 void MockRenderThread::RemoveRoute(int32 routing_id) { | 87 void MockRenderThread::RemoveRoute(int32 routing_id) { |
83 // We may hear this for views created from OnMsgCreateWindow as well, | 88 // We may hear this for views created from OnMsgCreateWindow as well, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 void MockRenderThread::OnDuplicateSection( | 218 void MockRenderThread::OnDuplicateSection( |
214 base::SharedMemoryHandle renderer_handle, | 219 base::SharedMemoryHandle renderer_handle, |
215 base::SharedMemoryHandle* browser_handle) { | 220 base::SharedMemoryHandle* browser_handle) { |
216 // We don't have to duplicate the input handles since RenderViewTest does not | 221 // We don't have to duplicate the input handles since RenderViewTest does not |
217 // separate a browser process from a renderer process. | 222 // separate a browser process from a renderer process. |
218 *browser_handle = renderer_handle; | 223 *browser_handle = renderer_handle; |
219 } | 224 } |
220 #endif // defined(OS_WIN) | 225 #endif // defined(OS_WIN) |
221 | 226 |
222 } // namespace content | 227 } // namespace content |
OLD | NEW |