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

Unified Diff: runtime/vm/object_id_ring_test.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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/object_id_ring.h ('k') | runtime/vm/object_reload.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « runtime/vm/object_id_ring.h ('k') | runtime/vm/object_reload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698