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

Unified Diff: test/cctest/test-hashmap.cc

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)
Patch Set: Created 4 years, 3 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
Index: test/cctest/test-hashmap.cc
diff --git a/test/cctest/test-hashmap.cc b/test/cctest/test-hashmap.cc
index 2d423b454369a24f609718cdbe793e6c208265fe..cd38bbf33e4001f3476f082f2594d9c3645b90c6 100644
--- a/test/cctest/test-hashmap.cc
+++ b/test/cctest/test-hashmap.cc
@@ -34,17 +34,13 @@
using namespace v8::internal;
-static bool DefaultMatchFun(void* a, void* b) {
- return a == b;
-}
-
typedef uint32_t (*IntKeyHash)(uint32_t key);
class IntSet {
public:
- explicit IntSet(IntKeyHash hash) : hash_(hash), map_(DefaultMatchFun) {}
+ explicit IntSet(IntKeyHash hash) : hash_(hash), map_() {}
marja 2016/09/30 10:27:33 Ditto
Leszek Swirski 2016/09/30 10:44:28 Done.
void Insert(int x) {
CHECK_NE(0, x); // 0 corresponds to (void*)NULL - illegal key value

Powered by Google App Engine
This is Rietveld 408576698