Index: runtime/bin/hashmap_test.cc |
diff --git a/runtime/bin/hashmap_test.cc b/runtime/bin/hashmap_test.cc |
index a0ca5b95751e4caefbd0426708c2329326cc06ad..7234f4121d0de8d7345b4d00cc4f7bd1598da922 100644 |
--- a/runtime/bin/hashmap_test.cc |
+++ b/runtime/bin/hashmap_test.cc |
@@ -2,9 +2,9 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+#include "platform/hashmap.h" |
#include "platform/assert.h" |
#include "platform/globals.h" |
-#include "platform/hashmap.h" |
#include "vm/unit_test.h" |
namespace dart { |
@@ -12,10 +12,8 @@ namespace dart { |
// Default initial size of hashmaps used in these tests. |
static intptr_t kInitialSize = 8; |
- |
typedef uint32_t (*IntKeyHash)(uint32_t key); |
- |
class IntSet { |
public: |
explicit IntSet(IntKeyHash hash) |
@@ -59,7 +57,6 @@ class IntSet { |
HashMap map_; |
}; |
- |
static uint32_t WordHash(uint32_t key) { |
return dart::Utils::WordHash(key); |
} |
@@ -79,7 +76,6 @@ static uint32_t CollisionHash4(uint32_t key) { |
return kInitialSize - 2; |
} |
- |
void TestSet(IntKeyHash hash, int size) { |
IntSet set(hash); |
EXPECT_EQ(0u, set.occupancy()); |
@@ -170,7 +166,6 @@ void TestSet(IntKeyHash hash, int size) { |
EXPECT_EQ(0u, set.occupancy()); |
} |
- |
VM_UNIT_TEST_CASE(HashMap_Basic) { |
TestSet(WordHash, 100); |
TestSet(Hash, 100); |