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

Side by Side Diff: runtime/bin/hashmap_test.cc

Issue 2666133002: Added new type of unit test, RAW_UNIT_TEST_CASE, which is used for tests that can be flaky if run w… (Closed)
Patch Set: Fixed name of UNIT_TEST_CASE macro Created 3 years, 10 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
« no previous file with comments | « runtime/bin/eventhandler_test.cc ('k') | runtime/bin/run_vm_tests.cc » ('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 "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
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
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler_test.cc ('k') | runtime/bin/run_vm_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698