Index: runtime/vm/object_id_ring_test.cc |
diff --git a/runtime/vm/object_id_ring_test.cc b/runtime/vm/object_id_ring_test.cc |
index dd64aa5b3638229e90505723a7eae6e913eb6e8a..cbd34075973b8173c86b09c9ae0bd005b53b0b73 100644 |
--- a/runtime/vm/object_id_ring_test.cc |
+++ b/runtime/vm/object_id_ring_test.cc |
@@ -15,7 +15,8 @@ namespace dart { |
class ObjectIdRingTestHelper { |
public: |
- static void SetCapacityAndMaxSerial(ObjectIdRing* ring, int32_t capacity, |
+ static void SetCapacityAndMaxSerial(ObjectIdRing* ring, |
+ int32_t capacity, |
int32_t max_serial) { |
ring->SetCapacityAndMaxSerial(capacity, max_serial); |
} |
@@ -123,9 +124,9 @@ VM_TEST_CASE(ObjectIdRingSerialWrapTest) { |
// Test that the ring table is updated when the scavenger moves an object. |
TEST_CASE(ObjectIdRingScavengeMoveTest) { |
const char* kScriptChars = |
- "main() {\n" |
- " return [1, 2, 3];\n" |
- "}\n"; |
+ "main() {\n" |
+ " return [1, 2, 3];\n" |
+ "}\n"; |
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL); |
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL); |
intptr_t list_length = 0; |
@@ -145,14 +146,12 @@ TEST_CASE(ObjectIdRingScavengeMoveTest) { |
intptr_t raw_obj_id1 = ring->GetIdForObject(raw_obj); |
EXPECT_EQ(0, raw_obj_id1); |
// Get id 0 again. |
- EXPECT_EQ(raw_obj_id1, |
- ring->GetIdForObject(raw_obj, ObjectIdRing::kReuseId)); |
+ EXPECT_EQ(raw_obj_id1, ring->GetIdForObject(raw_obj, ObjectIdRing::kReuseId)); |
// Add to ring a second time. |
intptr_t raw_obj_id2 = ring->GetIdForObject(raw_obj); |
EXPECT_EQ(1, raw_obj_id2); |
// Get id 0 again. |
- EXPECT_EQ(raw_obj_id1, |
- ring->GetIdForObject(raw_obj, ObjectIdRing::kReuseId)); |
+ EXPECT_EQ(raw_obj_id1, ring->GetIdForObject(raw_obj, ObjectIdRing::kReuseId)); |
RawObject* raw_obj1 = ring->GetObjectForId(raw_obj_id1, &kind); |
EXPECT_EQ(ObjectIdRing::kValid, kind); |
RawObject* raw_obj2 = ring->GetObjectForId(raw_obj_id2, &kind); |
@@ -186,7 +185,7 @@ TEST_CASE(ObjectIdRingScavengeMoveTest) { |
EXPECT_EQ(3, list_length); |
// Test id reuse. |
EXPECT_EQ(raw_obj_id1, |
- ring->GetIdForObject(raw_object_moved1, ObjectIdRing::kReuseId)); |
+ ring->GetIdForObject(raw_object_moved1, ObjectIdRing::kReuseId)); |
} |