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

Unified Diff: runtime/vm/message_test.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 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 | « runtime/vm/message_handler_test.cc ('k') | runtime/vm/method_recognizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_test.cc
diff --git a/runtime/vm/message_test.cc b/runtime/vm/message_test.cc
index 5250a776042eed4735fceee7b6f951e681d5c1a1..d496a7b787847f12185279f921cef5a7c9fcaa7f 100644
--- a/runtime/vm/message_test.cc
+++ b/runtime/vm/message_test.cc
@@ -31,8 +31,8 @@ TEST_CASE(MessageQueue_BasicOperations) {
const char* str6 = "msg6";
// Add two messages.
- Message* msg1 = new Message(
- port, AllocMsg(str1), strlen(str1) + 1, Message::kNormalPriority);
+ Message* msg1 = new Message(port, AllocMsg(str1), strlen(str1) + 1,
+ Message::kNormalPriority);
queue.Enqueue(msg1, false);
EXPECT(queue.Length() == 1);
EXPECT(!queue.IsEmpty());
@@ -41,8 +41,8 @@ TEST_CASE(MessageQueue_BasicOperations) {
EXPECT(it.Next() == msg1);
EXPECT(!it.HasNext());
- Message* msg2 = new Message(
- port, AllocMsg(str2), strlen(str2) + 1, Message::kNormalPriority);
+ Message* msg2 = new Message(port, AllocMsg(str2), strlen(str2) + 1,
+ Message::kNormalPriority);
queue.Enqueue(msg2, false);
EXPECT(queue.Length() == 2);
EXPECT(!queue.IsEmpty());
@@ -76,26 +76,23 @@ TEST_CASE(MessageQueue_BasicOperations) {
EXPECT_STREQ(str2, reinterpret_cast<char*>(msg->data()));
EXPECT(queue.IsEmpty());
- Message* msg3 = new Message(Message::kIllegalPort,
- AllocMsg(str3), strlen(str3) + 1,
- Message::kNormalPriority);
+ Message* msg3 = new Message(Message::kIllegalPort, AllocMsg(str3),
+ strlen(str3) + 1, Message::kNormalPriority);
queue.Enqueue(msg3, true);
EXPECT(!queue.IsEmpty());
- Message* msg4 = new Message(Message::kIllegalPort,
- AllocMsg(str4), strlen(str4) + 1,
- Message::kNormalPriority);
+ Message* msg4 = new Message(Message::kIllegalPort, AllocMsg(str4),
+ strlen(str4) + 1, Message::kNormalPriority);
queue.Enqueue(msg4, true);
EXPECT(!queue.IsEmpty());
- Message* msg5 = new Message(
- port, AllocMsg(str5), strlen(str5) + 1, Message::kNormalPriority);
+ Message* msg5 = new Message(port, AllocMsg(str5), strlen(str5) + 1,
+ Message::kNormalPriority);
queue.Enqueue(msg5, false);
EXPECT(!queue.IsEmpty());
- Message* msg6 = new Message(Message::kIllegalPort,
- AllocMsg(str6), strlen(str6) + 1,
- Message::kNormalPriority);
+ Message* msg6 = new Message(Message::kIllegalPort, AllocMsg(str6),
+ strlen(str6) + 1, Message::kNormalPriority);
queue.Enqueue(msg6, true);
EXPECT(!queue.IsEmpty());
@@ -137,13 +134,11 @@ TEST_CASE(MessageQueue_Clear) {
const char* str2 = "msg2";
// Add two messages.
- Message* msg1 =
- new Message(port1, AllocMsg(str1), strlen(str1) + 1,
- Message::kNormalPriority);
+ Message* msg1 = new Message(port1, AllocMsg(str1), strlen(str1) + 1,
+ Message::kNormalPriority);
queue.Enqueue(msg1, false);
- Message* msg2 =
- new Message(port2, AllocMsg(str2), strlen(str2) + 1,
- Message::kNormalPriority);
+ Message* msg2 = new Message(port2, AllocMsg(str2), strlen(str2) + 1,
+ Message::kNormalPriority);
queue.Enqueue(msg2, false);
EXPECT(!queue.IsEmpty());
« no previous file with comments | « runtime/vm/message_handler_test.cc ('k') | runtime/vm/method_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698