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

Side by Side Diff: ipc/ipc_test_base.cc

Issue 1127153003: ipc: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 7 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
« no previous file with comments | « ipc/ipc_sync_message_filter.cc ('k') | ipc/mojo/async_handle_waiter_unittest.cc » ('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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "base/single_thread_task_runner.h"
7 #include "ipc/ipc_test_base.h" 8 #include "ipc/ipc_test_base.h"
8 9
9 #include "base/command_line.h" 10 #include "base/command_line.h"
10 #include "base/process/kill.h" 11 #include "base/process/kill.h"
11 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
12 #include "base/time/time.h" 13 #include "base/time/time.h"
13 #include "ipc/ipc_descriptors.h" 14 #include "ipc/ipc_descriptors.h"
14 15
15 #if defined(OS_POSIX) 16 #if defined(OS_POSIX)
16 #include "base/posix/global_descriptors.h" 17 #include "base/posix/global_descriptors.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 base::TimeDelta::FromSeconds(5), &exit_code); 148 base::TimeDelta::FromSeconds(5), &exit_code);
148 client_process_.Close(); 149 client_process_.Close();
149 return rv; 150 return rv;
150 } 151 }
151 152
152 IPC::ChannelHandle IPCTestBase::GetTestChannelHandle() { 153 IPC::ChannelHandle IPCTestBase::GetTestChannelHandle() {
153 return GetChannelName(test_client_name_); 154 return GetChannelName(test_client_name_);
154 } 155 }
155 156
156 scoped_refptr<base::SequencedTaskRunner> IPCTestBase::task_runner() { 157 scoped_refptr<base::SequencedTaskRunner> IPCTestBase::task_runner() {
157 return message_loop_->message_loop_proxy(); 158 return message_loop_->task_runner();
158 } 159 }
159 160
160 scoped_ptr<IPC::ChannelFactory> IPCTestBase::CreateChannelFactory( 161 scoped_ptr<IPC::ChannelFactory> IPCTestBase::CreateChannelFactory(
161 const IPC::ChannelHandle& handle, 162 const IPC::ChannelHandle& handle,
162 base::SequencedTaskRunner* runner) { 163 base::SequencedTaskRunner* runner) {
163 return IPC::ChannelFactory::Create(handle, IPC::Channel::MODE_SERVER); 164 return IPC::ChannelFactory::Create(handle, IPC::Channel::MODE_SERVER);
164 } 165 }
OLDNEW
« no previous file with comments | « ipc/ipc_sync_message_filter.cc ('k') | ipc/mojo/async_handle_waiter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698