| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include "ipc/ipc_test_base.h" | 7 #include "ipc/ipc_test_base.h" |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool rv = client_process_.WaitForExitWithTimeout( | 146 bool rv = client_process_.WaitForExitWithTimeout( |
| 147 base::TimeDelta::FromSeconds(5), &exit_code); | 147 base::TimeDelta::FromSeconds(5), &exit_code); |
| 148 client_process_.Close(); | 148 client_process_.Close(); |
| 149 return rv; | 149 return rv; |
| 150 } | 150 } |
| 151 | 151 |
| 152 IPC::ChannelHandle IPCTestBase::GetTestChannelHandle() { | 152 IPC::ChannelHandle IPCTestBase::GetTestChannelHandle() { |
| 153 return GetChannelName(test_client_name_); | 153 return GetChannelName(test_client_name_); |
| 154 } | 154 } |
| 155 | 155 |
| 156 scoped_refptr<base::TaskRunner> IPCTestBase::task_runner() { | 156 scoped_refptr<base::SequencedTaskRunner> IPCTestBase::task_runner() { |
| 157 return message_loop_->message_loop_proxy(); | 157 return message_loop_->message_loop_proxy(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 scoped_ptr<IPC::ChannelFactory> IPCTestBase::CreateChannelFactory( | 160 scoped_ptr<IPC::ChannelFactory> IPCTestBase::CreateChannelFactory( |
| 161 const IPC::ChannelHandle& handle, | 161 const IPC::ChannelHandle& handle, |
| 162 base::TaskRunner* runner) { | 162 base::TaskRunner* runner) { |
| 163 return IPC::ChannelFactory::Create(handle, IPC::Channel::MODE_SERVER); | 163 return IPC::ChannelFactory::Create(handle, IPC::Channel::MODE_SERVER); |
| 164 } | 164 } |
| OLD | NEW |