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

Unified Diff: ipc/ipc_test_base.cc

Issue 488003003: Add ChannelProxy benchmark to ipc_perftests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing. 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
« no previous file with comments | « ipc/ipc_test_base.h ('k') | ipc/mojo/ipc_channel_mojo_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+}
« no previous file with comments | « ipc/ipc_test_base.h ('k') | ipc/mojo/ipc_channel_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698