Index: mojo/edk/system/message_pipe_perftest.cc |
diff --git a/mojo/edk/system/message_pipe_perftest.cc b/mojo/edk/system/message_pipe_perftest.cc |
index 9861e0b68284ce5bb524c278a953c5b37971901b..9f1ac5d2ed04049025da2179a06539d9e067c2c2 100644 |
--- a/mojo/edk/system/message_pipe_perftest.cc |
+++ b/mojo/edk/system/message_pipe_perftest.cc |
@@ -47,31 +47,23 @@ class MultiprocessMessagePipePerfTest |
protected: |
void WriteWaitThenRead(scoped_refptr<MessagePipe> mp) { |
- CHECK_EQ(mp->WriteMessage(0, |
- UserPointer<const void>(payload_.data()), |
- static_cast<uint32_t>(payload_.size()), |
- nullptr, |
+ CHECK_EQ(mp->WriteMessage(0, UserPointer<const void>(payload_.data()), |
+ static_cast<uint32_t>(payload_.size()), nullptr, |
MOJO_WRITE_MESSAGE_FLAG_NONE), |
MOJO_RESULT_OK); |
HandleSignalsState hss; |
CHECK_EQ(test::WaitIfNecessary(mp, MOJO_HANDLE_SIGNAL_READABLE, &hss), |
MOJO_RESULT_OK); |
uint32_t read_buffer_size = static_cast<uint32_t>(read_buffer_.size()); |
- CHECK_EQ(mp->ReadMessage(0, |
- UserPointer<void>(&read_buffer_[0]), |
- MakeUserPointer(&read_buffer_size), |
- nullptr, |
- nullptr, |
- MOJO_READ_MESSAGE_FLAG_NONE), |
+ CHECK_EQ(mp->ReadMessage(0, UserPointer<void>(&read_buffer_[0]), |
+ MakeUserPointer(&read_buffer_size), nullptr, |
+ nullptr, MOJO_READ_MESSAGE_FLAG_NONE), |
MOJO_RESULT_OK); |
CHECK_EQ(read_buffer_size, static_cast<uint32_t>(payload_.size())); |
} |
void SendQuitMessage(scoped_refptr<MessagePipe> mp) { |
- CHECK_EQ(mp->WriteMessage(0, |
- UserPointer<const void>(""), |
- 0, |
- nullptr, |
+ CHECK_EQ(mp->WriteMessage(0, UserPointer<const void>(""), 0, nullptr, |
MOJO_WRITE_MESSAGE_FLAG_NONE), |
MOJO_RESULT_OK); |
} |
@@ -81,8 +73,7 @@ class MultiprocessMessagePipePerfTest |
WriteWaitThenRead(mp); |
std::string test_name = |
- base::StringPrintf("IPC_Perf_%dx_%u", |
- message_count_, |
+ base::StringPrintf("IPC_Perf_%dx_%u", message_count_, |
static_cast<unsigned>(message_size_)); |
base::PerfTimeLogger logger(test_name.c_str()); |
@@ -127,11 +118,8 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(PingPongClient) { |
} |
uint32_t read_size = static_cast<uint32_t>(buffer.size()); |
- CHECK_EQ(mp->ReadMessage(0, |
- UserPointer<void>(&buffer[0]), |
- MakeUserPointer(&read_size), |
- nullptr, |
- nullptr, |
+ CHECK_EQ(mp->ReadMessage(0, UserPointer<void>(&buffer[0]), |
+ MakeUserPointer(&read_size), nullptr, nullptr, |
MOJO_READ_MESSAGE_FLAG_NONE), |
MOJO_RESULT_OK); |
@@ -139,10 +127,8 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(PingPongClient) { |
if (0 == read_size) |
break; |
- CHECK_EQ(mp->WriteMessage(0, |
- UserPointer<const void>(&buffer[0]), |
- static_cast<uint32_t>(read_size), |
- nullptr, |
+ CHECK_EQ(mp->WriteMessage(0, UserPointer<const void>(&buffer[0]), |
+ static_cast<uint32_t>(read_size), nullptr, |
MOJO_WRITE_MESSAGE_FLAG_NONE), |
MOJO_RESULT_OK); |
} |