| 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;
|
|
|