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

Unified Diff: runtime/vm/bit_vector_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/bit_vector.h ('k') | runtime/vm/bitfield.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bit_vector_test.cc
diff --git a/runtime/vm/bit_vector_test.cc b/runtime/vm/bit_vector_test.cc
index d2b7d1a65415a0f75429cfefcf5e488a1f68136b..bcf0c9131873f57751e2c240a193fe797ca1f3bf 100644
--- a/runtime/vm/bit_vector_test.cc
+++ b/runtime/vm/bit_vector_test.cc
@@ -11,11 +11,13 @@ namespace dart {
#define Z (thread->zone())
TEST_CASE(BitVector) {
- { BitVector* v = new BitVector(Z, 15);
+ {
+ BitVector* v = new BitVector(Z, 15);
v->Add(1);
EXPECT_EQ(true, v->Contains(1));
EXPECT_EQ(false, v->Contains(0));
- { BitVector::Iterator iter(v);
+ {
+ BitVector::Iterator iter(v);
EXPECT_EQ(1, iter.Current());
iter.Advance();
EXPECT(iter.Done());
@@ -24,7 +26,8 @@ TEST_CASE(BitVector) {
v->Add(1);
EXPECT_EQ(true, v->Contains(0));
EXPECT_EQ(true, v->Contains(1));
- { BitVector::Iterator iter(v);
+ {
+ BitVector::Iterator iter(v);
EXPECT_EQ(0, iter.Current());
iter.Advance();
EXPECT_EQ(1, iter.Current());
@@ -33,7 +36,8 @@ TEST_CASE(BitVector) {
}
}
- { BitVector* v = new BitVector(Z, 128);
+ {
+ BitVector* v = new BitVector(Z, 128);
v->Add(49);
v->Add(62);
v->Add(63);
@@ -55,7 +59,8 @@ TEST_CASE(BitVector) {
EXPECT(iter.Done());
}
- { BitVector* a = new BitVector(Z, 128);
+ {
+ BitVector* a = new BitVector(Z, 128);
BitVector* b = new BitVector(Z, 128);
BitVector* c = new BitVector(Z, 128);
b->Add(0);
@@ -86,7 +91,8 @@ TEST_CASE(BitVector) {
EXPECT_EQ(false, a->Contains(96));
}
- { BitVector* a = new BitVector(Z, 34);
+ {
+ BitVector* a = new BitVector(Z, 34);
BitVector* b = new BitVector(Z, 34);
a->SetAll();
b->Add(0);
@@ -97,7 +103,8 @@ TEST_CASE(BitVector) {
EXPECT_EQ(true, a->Equals(*b));
}
- { BitVector* a = new BitVector(Z, 2);
+ {
+ BitVector* a = new BitVector(Z, 2);
BitVector* b = new BitVector(Z, 2);
a->SetAll();
a->Remove(0);
@@ -105,7 +112,8 @@ TEST_CASE(BitVector) {
EXPECT_EQ(true, a->Equals(*b));
}
- { BitVector* a = new BitVector(Z, 128);
+ {
+ BitVector* a = new BitVector(Z, 128);
BitVector* b = new BitVector(Z, 128);
b->Add(0);
b->Add(32);
« no previous file with comments | « runtime/vm/bit_vector.h ('k') | runtime/vm/bitfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698