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

Unified Diff: runtime/vm/memory_region_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/megamorphic_cache_table.cc ('k') | runtime/vm/message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/memory_region_test.cc
diff --git a/runtime/vm/memory_region_test.cc b/runtime/vm/memory_region_test.cc
index b0134a2cfc64f93e41bd0fa863449f50feedf98a..3bfc7aff29c819304676c62bac30a6b1f3b497b6 100644
--- a/runtime/vm/memory_region_test.cc
+++ b/runtime/vm/memory_region_test.cc
@@ -2,8 +2,8 @@
// 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 "platform/assert.h"
#include "vm/memory_region.h"
+#include "platform/assert.h"
#include "vm/unit_test.h"
namespace dart {
@@ -13,12 +13,10 @@ static void* NewRegion(uword size) {
return pointer;
}
-
static void DeleteRegion(const MemoryRegion& region) {
delete[] reinterpret_cast<uint8_t*>(region.pointer());
}
-
VM_UNIT_TEST_CASE(NullRegion) {
static const uword kSize = 512;
MemoryRegion region(NULL, kSize);
@@ -26,7 +24,6 @@ VM_UNIT_TEST_CASE(NullRegion) {
EXPECT_EQ(kSize, region.size());
}
-
VM_UNIT_TEST_CASE(NewRegion) {
static const uword kSize = 1024;
MemoryRegion region(NewRegion(kSize), kSize);
@@ -39,7 +36,6 @@ VM_UNIT_TEST_CASE(NewRegion) {
DeleteRegion(region);
}
-
VM_UNIT_TEST_CASE(Subregion) {
static const uword kSize = 1024;
static const uword kSubOffset = 128;
@@ -59,7 +55,6 @@ VM_UNIT_TEST_CASE(Subregion) {
DeleteRegion(region);
}
-
VM_UNIT_TEST_CASE(ExtendedRegion) {
static const uword kSize = 1024;
static const uword kSubSize = 512;
« no previous file with comments | « runtime/vm/megamorphic_cache_table.cc ('k') | runtime/vm/message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698