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/process_util.h" | 8 #include "base/process_util.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" |
11 #include "ipc/ipc_sync_message.h" | 11 #include "ipc/ipc_sync_message.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 MockRenderThread::MockRenderThread() | 16 MockRenderThread::MockRenderThread() |
17 : routing_id_(0), | 17 : routing_id_(0), |
18 surface_id_(0), | 18 surface_id_(0), |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 void MockRenderThread::OnDuplicateSection( | 239 void MockRenderThread::OnDuplicateSection( |
240 base::SharedMemoryHandle renderer_handle, | 240 base::SharedMemoryHandle renderer_handle, |
241 base::SharedMemoryHandle* browser_handle) { | 241 base::SharedMemoryHandle* browser_handle) { |
242 // We don't have to duplicate the input handles since RenderViewTest does not | 242 // We don't have to duplicate the input handles since RenderViewTest does not |
243 // separate a browser process from a renderer process. | 243 // separate a browser process from a renderer process. |
244 *browser_handle = renderer_handle; | 244 *browser_handle = renderer_handle; |
245 } | 245 } |
246 #endif // defined(OS_WIN) | 246 #endif // defined(OS_WIN) |
247 | 247 |
248 } // namespace content | 248 } // namespace content |
OLD | NEW |