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/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
8 #include "content/common/frame_messages.h" | 8 #include "content/common/frame_messages.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "content/public/renderer/render_process_observer.h" | 10 #include "content/public/renderer/render_process_observer.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 std::string MockRenderThread::GetLocale() { | 73 std::string MockRenderThread::GetLocale() { |
74 return "en-US"; | 74 return "en-US"; |
75 } | 75 } |
76 | 76 |
77 IPC::SyncMessageFilter* MockRenderThread::GetSyncMessageFilter() { | 77 IPC::SyncMessageFilter* MockRenderThread::GetSyncMessageFilter() { |
78 return NULL; | 78 return NULL; |
79 } | 79 } |
80 | 80 |
81 scoped_refptr<base::MessageLoopProxy> | 81 scoped_refptr<base::SingleThreadTaskRunner> |
82 MockRenderThread::GetIOMessageLoopProxy() { | 82 MockRenderThread::GetIOMessageLoopProxy() { |
83 return scoped_refptr<base::MessageLoopProxy>(); | 83 return scoped_refptr<base::SingleThreadTaskRunner>(); |
84 } | 84 } |
85 | 85 |
86 void MockRenderThread::AddRoute(int32 routing_id, IPC::Listener* listener) { | 86 void MockRenderThread::AddRoute(int32 routing_id, IPC::Listener* listener) { |
87 } | 87 } |
88 | 88 |
89 void MockRenderThread::RemoveRoute(int32 routing_id) { | 89 void MockRenderThread::RemoveRoute(int32 routing_id) { |
90 } | 90 } |
91 | 91 |
92 int MockRenderThread::GenerateRoutingID() { | 92 int MockRenderThread::GenerateRoutingID() { |
93 NOTREACHED(); | 93 NOTREACHED(); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 void MockRenderThread::OnDuplicateSection( | 260 void MockRenderThread::OnDuplicateSection( |
261 base::SharedMemoryHandle renderer_handle, | 261 base::SharedMemoryHandle renderer_handle, |
262 base::SharedMemoryHandle* browser_handle) { | 262 base::SharedMemoryHandle* browser_handle) { |
263 // We don't have to duplicate the input handles since RenderViewTest does not | 263 // We don't have to duplicate the input handles since RenderViewTest does not |
264 // separate a browser process from a renderer process. | 264 // separate a browser process from a renderer process. |
265 *browser_handle = renderer_handle; | 265 *browser_handle = renderer_handle; |
266 } | 266 } |
267 #endif // defined(OS_WIN) | 267 #endif // defined(OS_WIN) |
268 | 268 |
269 } // namespace content | 269 } // namespace content |
OLD | NEW |