summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_test_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_test_base.cc')
-rw-r--r--ipc/ipc_test_base.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc
index 589ee98..f893c28 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() {
+ 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();
+}