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

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

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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/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
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
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
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/media/gpu/rtc_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698