Index: ipc/ipc_test_base.cc |
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc |
index f893c28acab1ed14d2d1bbf94b0e2489f8c8318d..974329d4a5548efbd0286cb596de8c222c5d7713 100644 |
--- a/ipc/ipc_test_base.cc |
+++ b/ipc/ipc_test_base.cc |
@@ -32,7 +32,7 @@ IPCTestBase::~IPCTestBase() { |
void IPCTestBase::SetUp() { |
MultiProcessTest::SetUp(); |
- // Construct a fresh IO Message loop for the duration of each test. |
+ // Construct a fresh Message loop for the duration of each test. |
DCHECK(!message_loop_.get()); |
message_loop_.reset(new base::MessageLoopForIO()); |
} |
@@ -130,6 +130,10 @@ bool IPCTestBase::WaitForClientShutdown() { |
return rv; |
} |
-scoped_refptr<base::TaskRunner> IPCTestBase::io_thread_task_runner() { |
+scoped_refptr<base::TaskRunner> IPCTestBase::task_runner() { |
return message_loop_->message_loop_proxy(); |
} |
+ |
+void IPCTestBase::set_message_loop(scoped_ptr<base::MessageLoop> loop) { |
+ message_loop_ = loop.Pass(); |
+} |