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

Unified Diff: ipc/ipc_perftests.cc

Issue 14383024: ipc: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_logging.cc ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_perftests.cc
diff --git a/ipc/ipc_perftests.cc b/ipc/ipc_perftests.cc
index cc222be47726ad6c5eded7849a25b929aa2c695b..bd65c4724f1f1620812afa91fceeb7cdcee94632 100644
--- a/ipc/ipc_perftests.cc
+++ b/ipc/ipc_perftests.cc
@@ -114,7 +114,7 @@ class ChannelReflectorListener : public IPC::Listener {
latency_tracker_.Reset();
} else if (payload == "quit") {
latency_tracker_.ShowResults();
- MessageLoop::current()->QuitWhenIdle();
+ base::MessageLoop::current()->QuitWhenIdle();
return true;
} else {
// Don't track hello and quit messages.
@@ -196,7 +196,7 @@ class PerformanceChannelListener : public IPC::Listener {
if (count_down_ == 0) {
perf_logger_.reset(); // Stop the perf timer now.
latency_tracker_.ShowResults();
- MessageLoop::current()->QuitWhenIdle();
+ base::MessageLoop::current()->QuitWhenIdle();
return true;
}
}
@@ -246,7 +246,7 @@ TEST_F(IPCChannelPerfTest, Performance) {
sender()->Send(message);
// Run message loop.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
msg_size *= kMsgSizeBase;
}
@@ -264,7 +264,7 @@ TEST_F(IPCChannelPerfTest, Performance) {
// This message loop bounces all messages back to the sender.
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) {
- MessageLoopForIO main_message_loop;
+ base::MessageLoopForIO main_message_loop;
ChannelReflectorListener listener;
IPC::Channel channel(IPCTestBase::GetChannelName("PerformanceClient"),
IPC::Channel::MODE_CLIENT,
@@ -272,7 +272,7 @@ MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) {
listener.Init(&channel);
CHECK(channel.Connect());
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
return 0;
}
« no previous file with comments | « ipc/ipc_logging.cc ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698