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

Unified Diff: runtime/vm/port_test.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 | « 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 d42a3e6249b432db22b629670908c05f004c624b..68fdb63bc45a96bdf58b4cc332426daa22bff703 100644
--- a/runtime/vm/port_test.cc
+++ b/runtime/vm/port_test.cc
@@ -2,11 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+#include "vm/port.h"
#include "platform/assert.h"
#include "vm/lockers.h"
#include "vm/message_handler.h"
#include "vm/os.h"
-#include "vm/port.h"
#include "vm/unit_test.h"
namespace dart {
@@ -29,7 +29,6 @@ class PortMapTestPeer {
}
};
-
class PortTestMessageHandler : public MessageHandler {
public:
PortTestMessageHandler() : notify_count(0) {}
@@ -41,7 +40,6 @@ class PortTestMessageHandler : public MessageHandler {
int notify_count;
};
-
TEST_CASE(PortMap_CreateAndCloseOnePort) {
PortTestMessageHandler handler;
Dart_Port port = PortMap::CreatePort(&handler);
@@ -52,7 +50,6 @@ TEST_CASE(PortMap_CreateAndCloseOnePort) {
EXPECT(!PortMapTestPeer::IsActivePort(port));
}
-
TEST_CASE(PortMap_CreateAndCloseTwoPorts) {
PortTestMessageHandler handler;
Dart_Port port1 = PortMap::CreatePort(&handler);
@@ -72,7 +69,6 @@ TEST_CASE(PortMap_CreateAndCloseTwoPorts) {
EXPECT(!PortMapTestPeer::IsActivePort(port2));
}
-
TEST_CASE(PortMap_ClosePorts) {
PortTestMessageHandler handler;
Dart_Port port1 = PortMap::CreatePort(&handler);
@@ -86,7 +82,6 @@ TEST_CASE(PortMap_ClosePorts) {
EXPECT(!PortMapTestPeer::IsActivePort(port2));
}
-
TEST_CASE(PortMap_CreateManyPorts) {
PortTestMessageHandler handler;
for (int i = 0; i < 32; i++) {
@@ -97,7 +92,6 @@ TEST_CASE(PortMap_CreateManyPorts) {
}
}
-
TEST_CASE(PortMap_SetPortState) {
PortTestMessageHandler handler;
@@ -130,7 +124,6 @@ TEST_CASE(PortMap_SetPortState) {
EXPECT(!PortMapTestPeer::IsLivePort(port));
}
-
TEST_CASE(PortMap_PostMessage) {
PortTestMessageHandler handler;
Dart_Port port = PortMap::CreatePort(&handler);
@@ -148,7 +141,6 @@ TEST_CASE(PortMap_PostMessage) {
PortMap::ClosePorts(&handler);
}
-
TEST_CASE(PortMap_PostIntegerMessage) {
PortTestMessageHandler handler;
Dart_Port port = PortMap::CreatePort(&handler);
@@ -162,7 +154,6 @@ TEST_CASE(PortMap_PostIntegerMessage) {
PortMap::ClosePorts(&handler);
}
-
TEST_CASE(PortMap_PostNullMessage) {
PortTestMessageHandler handler;
Dart_Port port = PortMap::CreatePort(&handler);
@@ -176,7 +167,6 @@ TEST_CASE(PortMap_PostNullMessage) {
PortMap::ClosePorts(&handler);
}
-
TEST_CASE(PortMap_PostMessageClosedPort) {
// Create a port id and make it invalid.
PortTestMessageHandler handler;
« 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