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

Side by Side Diff: bin/hashmap_test.cc

Issue 10853009: Move hashmap.h and hashmap.cc from the 'bin' directory to 'platform' directory so that it can be us… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bin/hashmap.cc ('k') | platform/hashmap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "bin/hashmap.h"
6 #include "platform/assert.h" 5 #include "platform/assert.h"
7 #include "platform/globals.h" 6 #include "platform/globals.h"
7 #include "platform/hashmap.h"
8 #include "vm/unit_test.h" 8 #include "vm/unit_test.h"
9 9
10 // Default initial size of hashmaps used in these tests. 10 // Default initial size of hashmaps used in these tests.
11 static intptr_t kInitialSize = 8; 11 static intptr_t kInitialSize = 8;
12 12
13 13
14 typedef uint32_t (*IntKeyHash)(uint32_t key); 14 typedef uint32_t (*IntKeyHash)(uint32_t key);
15 15
16 16
17 class IntSet { 17 class IntSet {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 161
162 UNIT_TEST_CASE(Set) { 162 UNIT_TEST_CASE(Set) {
163 TestSet(WordHash, 100); 163 TestSet(WordHash, 100);
164 TestSet(Hash, 100); 164 TestSet(Hash, 100);
165 TestSet(CollisionHash1, 50); 165 TestSet(CollisionHash1, 50);
166 TestSet(CollisionHash2, 50); 166 TestSet(CollisionHash2, 50);
167 TestSet(CollisionHash3, 50); 167 TestSet(CollisionHash3, 50);
168 TestSet(CollisionHash4, 50); 168 TestSet(CollisionHash4, 50);
169 } 169 }
OLDNEW
« no previous file with comments | « bin/hashmap.cc ('k') | platform/hashmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698