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

Unified Diff: runtime/vm/port_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/port.cc ('k') | runtime/vm/precompiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/port_test.cc
diff --git a/runtime/vm/port_test.cc b/runtime/vm/port_test.cc
index ee443cd83daaaaf261f09174bcadae9d8f516af1..d42a3e6249b432db22b629670908c05f004c624b 100644
--- a/runtime/vm/port_test.cc
+++ b/runtime/vm/port_test.cc
@@ -34,9 +34,7 @@ class PortTestMessageHandler : public MessageHandler {
public:
PortTestMessageHandler() : notify_count(0) {}
- void MessageNotify(Message::Priority priority) {
- notify_count++;
- }
+ void MessageNotify(Message::Priority priority) { notify_count++; }
MessageStatus HandleMessage(Message* message) { return kOK; }
@@ -141,9 +139,9 @@ TEST_CASE(PortMap_PostMessage) {
const char* message = "msg";
intptr_t message_len = strlen(message) + 1;
- EXPECT(PortMap::PostMessage(new Message(
- port, reinterpret_cast<uint8_t*>(strdup(message)), message_len,
- Message::kNormalPriority)));
+ EXPECT(PortMap::PostMessage(
+ new Message(port, reinterpret_cast<uint8_t*>(strdup(message)),
+ message_len, Message::kNormalPriority)));
// Check that the message notify callback was called.
EXPECT_EQ(1, handler.notify_count);
@@ -156,8 +154,8 @@ TEST_CASE(PortMap_PostIntegerMessage) {
Dart_Port port = PortMap::CreatePort(&handler);
EXPECT_EQ(0, handler.notify_count);
- EXPECT(PortMap::PostMessage(new Message(
- port, Smi::New(42), Message::kNormalPriority)));
+ EXPECT(PortMap::PostMessage(
+ new Message(port, Smi::New(42), Message::kNormalPriority)));
// Check that the message notify callback was called.
EXPECT_EQ(1, handler.notify_count);
@@ -170,8 +168,8 @@ TEST_CASE(PortMap_PostNullMessage) {
Dart_Port port = PortMap::CreatePort(&handler);
EXPECT_EQ(0, handler.notify_count);
- EXPECT(PortMap::PostMessage(new Message(
- port, Object::null(), Message::kNormalPriority)));
+ EXPECT(PortMap::PostMessage(
+ new Message(port, Object::null(), Message::kNormalPriority)));
// Check that the message notify callback was called.
EXPECT_EQ(1, handler.notify_count);
@@ -188,9 +186,9 @@ TEST_CASE(PortMap_PostMessageClosedPort) {
const char* message = "msg";
intptr_t message_len = strlen(message) + 1;
- EXPECT(!PortMap::PostMessage(new Message(
- port, reinterpret_cast<uint8_t*>(strdup(message)), message_len,
- Message::kNormalPriority)));
+ EXPECT(!PortMap::PostMessage(
+ new Message(port, reinterpret_cast<uint8_t*>(strdup(message)),
+ message_len, Message::kNormalPriority)));
}
} // namespace dart
« no previous file with comments | « runtime/vm/port.cc ('k') | runtime/vm/precompiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698