Chromium Code Reviews| Index: ipc/ipc_test_base.cc |
| diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc |
| index 589ee98ca090bf18d6830bd5e15a4b297a37c60d..f893c28acab1ed14d2d1bbf94b0e2489f8c8318d 100644 |
| --- a/ipc/ipc_test_base.cc |
| +++ b/ipc/ipc_test_base.cc |
| @@ -59,6 +59,15 @@ bool IPCTestBase::ConnectChannel() { |
| return channel_->Connect(); |
| } |
| +scoped_ptr<IPC::Channel> IPCTestBase::ReleaseChannel() { |
|
darin (slow to review)
2014/07/23 23:03:33
elsewhere you use "Take" (TakePipeHandle) rather t
Hajime Morrita
2014/07/24 00:38:44
IPC::Channel has had another Take method. I'll ren
|
| + return channel_.Pass(); |
| +} |
| + |
| +void IPCTestBase::SetChannel(scoped_ptr<IPC::Channel> channel) { |
| + channel_ = channel.Pass(); |
| +} |
| + |
| + |
| void IPCTestBase::DestroyChannel() { |
| DCHECK(channel_.get()); |
| channel_.reset(); |
| @@ -120,3 +129,7 @@ bool IPCTestBase::WaitForClientShutdown() { |
| client_process_ = base::kNullProcessHandle; |
| return rv; |
| } |
| + |
| +scoped_refptr<base::TaskRunner> IPCTestBase::io_thread_task_runner() { |
| + return message_loop_->message_loop_proxy(); |
| +} |