| 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/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::SingleThreadTaskRunner> | 81 scoped_refptr<base::SingleThreadTaskRunner> |
| 82 MockRenderThread::GetIOMessageLoopProxy() { | 82 MockRenderThread::GetIOTaskRunner() { |
| 83 return scoped_refptr<base::SingleThreadTaskRunner>(); | 83 return scoped_refptr<base::SingleThreadTaskRunner>(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void MockRenderThread::AddRoute(int32_t routing_id, IPC::Listener* listener) {} | 86 void MockRenderThread::AddRoute(int32_t routing_id, IPC::Listener* listener) {} |
| 87 | 87 |
| 88 void MockRenderThread::RemoveRoute(int32_t routing_id) {} | 88 void MockRenderThread::RemoveRoute(int32_t routing_id) {} |
| 89 | 89 |
| 90 int MockRenderThread::GenerateRoutingID() { | 90 int MockRenderThread::GenerateRoutingID() { |
| 91 NOTREACHED(); | 91 NOTREACHED(); |
| 92 return MSG_ROUTING_NONE; | 92 return MSG_ROUTING_NONE; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 void MockRenderThread::OnDuplicateSection( | 263 void MockRenderThread::OnDuplicateSection( |
| 264 base::SharedMemoryHandle renderer_handle, | 264 base::SharedMemoryHandle renderer_handle, |
| 265 base::SharedMemoryHandle* browser_handle) { | 265 base::SharedMemoryHandle* browser_handle) { |
| 266 // We don't have to duplicate the input handles since RenderViewTest does not | 266 // We don't have to duplicate the input handles since RenderViewTest does not |
| 267 // separate a browser process from a renderer process. | 267 // separate a browser process from a renderer process. |
| 268 *browser_handle = renderer_handle; | 268 *browser_handle = renderer_handle; |
| 269 } | 269 } |
| 270 #endif // defined(OS_WIN) | 270 #endif // defined(OS_WIN) |
| 271 | 271 |
| 272 } // namespace content | 272 } // namespace content |
| OLD | NEW |