| 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 "platform/assert.h" | 5 #include "platform/assert.h" |
| 6 #include "platform/globals.h" | 6 #include "platform/globals.h" |
| 7 #include "platform/hashmap.h" | 7 #include "platform/hashmap.h" |
| 8 #include "vm/unit_test.h" | 8 #include "vm/unit_test.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } else { | 164 } else { |
| 165 EXPECT(set.Present(y)); | 165 EXPECT(set.Present(y)); |
| 166 } | 166 } |
| 167 y = y * factor + offset; | 167 y = y * factor + offset; |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 EXPECT_EQ(0u, set.occupancy()); | 170 EXPECT_EQ(0u, set.occupancy()); |
| 171 } | 171 } |
| 172 | 172 |
| 173 | 173 |
| 174 UNIT_TEST_CASE(HashMap_Basic) { | 174 VM_UNIT_TEST_CASE(HashMap_Basic) { |
| 175 TestSet(WordHash, 100); | 175 TestSet(WordHash, 100); |
| 176 TestSet(Hash, 100); | 176 TestSet(Hash, 100); |
| 177 TestSet(CollisionHash1, 50); | 177 TestSet(CollisionHash1, 50); |
| 178 TestSet(CollisionHash2, 50); | 178 TestSet(CollisionHash2, 50); |
| 179 TestSet(CollisionHash3, 50); | 179 TestSet(CollisionHash3, 50); |
| 180 TestSet(CollisionHash4, 50); | 180 TestSet(CollisionHash4, 50); |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace dart | 183 } // namespace dart |
| OLD | NEW |