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

Unified Diff: runtime/bin/hashmap_test.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months 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/bin/gen_snapshot.cc ('k') | runtime/bin/io_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/io_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698