| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/bitmap.h" |
| 5 #include "platform/assert.h" | 6 #include "platform/assert.h" |
| 6 #include "vm/bitmap.h" | |
| 7 #include "vm/object.h" | 7 #include "vm/object.h" |
| 8 #include "vm/unit_test.h" | 8 #include "vm/unit_test.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 TEST_CASE(BitmapBuilder) { | 12 TEST_CASE(BitmapBuilder) { |
| 13 // Test basic bit map builder operations. | 13 // Test basic bit map builder operations. |
| 14 BitmapBuilder* builder1 = new BitmapBuilder(); | 14 BitmapBuilder* builder1 = new BitmapBuilder(); |
| 15 EXPECT_EQ(0, builder1->Length()); | 15 EXPECT_EQ(0, builder1->Length()); |
| 16 | 16 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 for (int32_t i = 257; i < 747; ++i) { | 95 for (int32_t i = 257; i < 747; ++i) { |
| 96 EXPECT(builder1->Get(i)); | 96 EXPECT(builder1->Get(i)); |
| 97 } | 97 } |
| 98 for (int32_t i = 747; i < 900; ++i) { | 98 for (int32_t i = 747; i < 900; ++i) { |
| 99 EXPECT(!builder1->Get(i)); | 99 EXPECT(!builder1->Get(i)); |
| 100 } | 100 } |
| 101 EXPECT(builder1->Get(900)); | 101 EXPECT(builder1->Get(900)); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace dart | 104 } // namespace dart |
| OLD | NEW |