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

Unified Diff: runtime/vm/heap_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/heap.cc ('k') | runtime/vm/il_printer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap_test.cc
diff --git a/runtime/vm/heap_test.cc b/runtime/vm/heap_test.cc
index 8c616d3f01fb35552cdc0e09937eb90ee4dc286c..cc681155c4ce4bd420bc2425aa66f4a8913c07eb 100644
--- a/runtime/vm/heap_test.cc
+++ b/runtime/vm/heap_test.cc
@@ -73,7 +73,6 @@ TEST_CASE(LargeSweep) {
heap->CollectGarbage(Heap::kOld);
}
-
#ifndef PRODUCT
class ClassHeapStatsTestHelper {
public:
@@ -90,7 +89,6 @@ class ClassHeapStatsTestHelper {
}
};
-
static RawClass* GetClass(const Library& lib, const char* name) {
const Class& cls = Class::Handle(
lib.LookupClass(String::Handle(Symbols::New(Thread::Current(), name))));
@@ -98,7 +96,6 @@ static RawClass* GetClass(const Library& lib, const char* name) {
return cls.raw();
}
-
TEST_CASE(ClassHeapStats) {
const char* kScriptChars =
"class A {\n"
@@ -192,7 +189,6 @@ TEST_CASE(ClassHeapStats) {
EXPECT_EQ(0, class_stats->recent.old_count);
}
-
TEST_CASE(ArrayHeapStats) {
const char* kScriptChars =
"List f(int len) {\n"
@@ -232,7 +228,6 @@ TEST_CASE(ArrayHeapStats) {
}
#endif // !PRODUCT
-
class FindOnly : public FindObjectVisitor {
public:
explicit FindOnly(RawObject* target) : target_(target) {
@@ -248,7 +243,6 @@ class FindOnly : public FindObjectVisitor {
RawObject* target_;
};
-
class FindNothing : public FindObjectVisitor {
public:
FindNothing() {}
@@ -256,7 +250,6 @@ class FindNothing : public FindObjectVisitor {
virtual bool FindObject(RawObject* obj) const { return false; }
};
-
TEST_CASE(FindObject) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -276,7 +269,6 @@ TEST_CASE(FindObject) {
}
}
-
TEST_CASE(IterateReadOnly) {
const String& obj = String::Handle(String::New("x", Heap::kOld));
Heap* heap = Thread::Current()->isolate()->heap();
@@ -287,7 +279,6 @@ TEST_CASE(IterateReadOnly) {
EXPECT(heap->Contains(RawObject::ToAddr(obj.raw())));
}
-
void TestBecomeForward(Heap::Space before_space, Heap::Space after_space) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -312,27 +303,22 @@ void TestBecomeForward(Heap::Space before_space, Heap::Space after_space) {
EXPECT(before_obj.raw() == after_obj.raw());
}
-
ISOLATE_UNIT_TEST_CASE(BecomeFowardOldToOld) {
TestBecomeForward(Heap::kOld, Heap::kOld);
}
-
ISOLATE_UNIT_TEST_CASE(BecomeFowardNewToNew) {
TestBecomeForward(Heap::kNew, Heap::kNew);
}
-
ISOLATE_UNIT_TEST_CASE(BecomeFowardOldToNew) {
TestBecomeForward(Heap::kOld, Heap::kNew);
}
-
ISOLATE_UNIT_TEST_CASE(BecomeFowardNewToOld) {
TestBecomeForward(Heap::kNew, Heap::kOld);
}
-
ISOLATE_UNIT_TEST_CASE(BecomeForwardRememberedObject) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -363,7 +349,6 @@ ISOLATE_UNIT_TEST_CASE(BecomeForwardRememberedObject) {
EXPECT(before_obj.raw() == after_obj.raw());
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadOldToNew) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -386,7 +371,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadOldToNew) {
EXPECT(size_before == size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadNewToOld) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -409,7 +393,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadNewToOld) {
EXPECT(size_before == size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadGenCycle) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -433,7 +416,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadGenCycle) {
EXPECT(size_before == size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewToOld) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -455,7 +437,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewToOld) {
EXPECT(size_before < size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldToNew) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -477,7 +458,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldToNew) {
EXPECT(size_before < size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldDeadNew) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -499,7 +479,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldDeadNew) {
EXPECT(size_before < size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewDeadOld) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -521,7 +500,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewDeadOld) {
EXPECT(size_before < size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewToOldChain) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
@@ -546,7 +524,6 @@ ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewToOldChain) {
EXPECT(size_before < size_after);
}
-
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldToNewChain) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/il_printer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698