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

Unified Diff: ipc/ipc_perftests.cc

Issue 57783006: Revert https://src.chromium.org/viewvc/chrome?view=rev&revision=231330 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile (cc perftest). Created 7 years, 1 month 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_message_utils_unittest.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 8b651e20dccca15bf1c3e96218f19a0e6f90aaea..e7eeab9d8ea455e19785b4afd87496c04c3c83b2 100644
--- a/ipc/ipc_perftests.cc
+++ b/ipc/ipc_perftests.cc
@@ -122,7 +122,7 @@ class ChannelReflectorListener : public IPC::Listener {
base::TimeTicks::FromInternalValue(time_internal), now);
}
- IPC::Message* msg = new IPC::Message(0, 2);
+ IPC::Message* msg = new IPC::Message(0, 2, IPC::Message::PRIORITY_NORMAL);
msg->WriteInt64(base::TimeTicks::Now().ToInternalValue());
msg->WriteInt(msgid);
msg->WriteString(payload);
@@ -201,7 +201,7 @@ class PerformanceChannelListener : public IPC::Listener {
}
}
- IPC::Message* msg = new IPC::Message(0, 2);
+ IPC::Message* msg = new IPC::Message(0, 2, IPC::Message::PRIORITY_NORMAL);
msg->WriteInt64(base::TimeTicks::Now().ToInternalValue());
msg->WriteInt(count_down_);
msg->WriteString(payload_);
@@ -239,7 +239,7 @@ TEST_F(IPCChannelPerfTest, Performance) {
// This initial message will kick-start the ping-pong of messages.
IPC::Message* message =
- new IPC::Message(0, 2);
+ new IPC::Message(0, 2, IPC::Message::PRIORITY_NORMAL);
message->WriteInt64(base::TimeTicks::Now().ToInternalValue());
message->WriteInt(-1);
message->WriteString("hello");
@@ -252,7 +252,7 @@ TEST_F(IPCChannelPerfTest, Performance) {
}
// Send quit message.
- IPC::Message* message = new IPC::Message(0, 2);
+ IPC::Message* message = new IPC::Message(0, 2, IPC::Message::PRIORITY_NORMAL);
message->WriteInt64(base::TimeTicks::Now().ToInternalValue());
message->WriteInt(-1);
message->WriteString("quit");
« no previous file with comments | « ipc/ipc_message_utils_unittest.cc ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698