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

Unified Diff: ipc/ipc_test_base.cc

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed ChanelBuilder to ChannelFactory Created 6 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 side-by-side diff with in-line comments
Download patch
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();
+}

Powered by Google App Engine
This is Rietveld 408576698