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/process_util.h" | 7 #include "base/process_util.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "ipc/ipc_message_utils.h" | 10 #include "ipc/ipc_message_utils.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 return base::SharedMemory::NULLHandle(); | 139 return base::SharedMemory::NULLHandle(); |
140 } | 140 } |
141 base::SharedMemoryHandle handle; | 141 base::SharedMemoryHandle handle; |
142 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), &handle); | 142 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), &handle); |
143 return handle; | 143 return handle; |
144 } | 144 } |
145 | 145 |
146 void MockRenderThread::RegisterExtension(v8::Extension* extension) { | 146 void MockRenderThread::RegisterExtension(v8::Extension* extension) { |
147 } | 147 } |
148 | 148 |
149 bool MockRenderThread::IsRegisteredExtension( | |
150 const std::string& v8_extension_name) const { | |
151 return false; | |
152 } | |
153 | |
154 void MockRenderThread::ScheduleIdleHandler(int64 initial_delay_ms) { | 149 void MockRenderThread::ScheduleIdleHandler(int64 initial_delay_ms) { |
155 } | 150 } |
156 | 151 |
157 void MockRenderThread::IdleHandler() { | 152 void MockRenderThread::IdleHandler() { |
158 } | 153 } |
159 | 154 |
160 int64 MockRenderThread::GetIdleNotificationDelayInMs() const { | 155 int64 MockRenderThread::GetIdleNotificationDelayInMs() const { |
161 return 0; | 156 return 0; |
162 } | 157 } |
163 | 158 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 void MockRenderThread::OnDuplicateSection( | 219 void MockRenderThread::OnDuplicateSection( |
225 base::SharedMemoryHandle renderer_handle, | 220 base::SharedMemoryHandle renderer_handle, |
226 base::SharedMemoryHandle* browser_handle) { | 221 base::SharedMemoryHandle* browser_handle) { |
227 // We don't have to duplicate the input handles since RenderViewTest does not | 222 // We don't have to duplicate the input handles since RenderViewTest does not |
228 // separate a browser process from a renderer process. | 223 // separate a browser process from a renderer process. |
229 *browser_handle = renderer_handle; | 224 *browser_handle = renderer_handle; |
230 } | 225 } |
231 #endif // defined(OS_WIN) | 226 #endif // defined(OS_WIN) |
232 | 227 |
233 } // namespace content | 228 } // namespace content |
OLD | NEW |