Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1059)

Side by Side Diff: content/test/mock_render_thread.cc

Issue 10694014: Cleanup IPC::ChannelProxy to use SingleThreadTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/input_event_filter.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
9 #include "ipc/ipc_message_utils.h" 10 #include "ipc/ipc_message_utils.h"
10 #include "ipc/ipc_sync_message.h" 11 #include "ipc/ipc_sync_message.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 MockRenderThread::MockRenderThread() 16 MockRenderThread::MockRenderThread()
16 : routing_id_(0), surface_id_(0), opener_id_(0), new_window_routing_id_(0) { 17 : routing_id_(0), surface_id_(0), opener_id_(0), new_window_routing_id_(0) {
17 } 18 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void MockRenderThread::OnDuplicateSection( 218 void MockRenderThread::OnDuplicateSection(
218 base::SharedMemoryHandle renderer_handle, 219 base::SharedMemoryHandle renderer_handle,
219 base::SharedMemoryHandle* browser_handle) { 220 base::SharedMemoryHandle* browser_handle) {
220 // 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
221 // separate a browser process from a renderer process. 222 // separate a browser process from a renderer process.
222 *browser_handle = renderer_handle; 223 *browser_handle = renderer_handle;
223 } 224 }
224 #endif // defined(OS_WIN) 225 #endif // defined(OS_WIN)
225 226
226 } // namespace content 227 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/input_event_filter.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698