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

Unified Diff: ipc/ipc_test_base.cc

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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() {
+ 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();
+}
« ipc/ipc_channel.h ('K') | « ipc/ipc_test_base.h ('k') | ipc/ipc_test_channel_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698