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

Unified Diff: third_party/WebKit/Source/wtf/HashMapTest.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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 | « third_party/WebKit/Source/wtf/FunctionalTest.cpp ('k') | third_party/WebKit/Source/wtf/HashSetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashMapTest.cpp
diff --git a/third_party/WebKit/Source/wtf/HashMapTest.cpp b/third_party/WebKit/Source/wtf/HashMapTest.cpp
index 8437fbf3c60668867047b41c1ab62dfe6f0cc191..2d47cd8ee860131c105129de99526366cf7c7a71 100644
--- a/third_party/WebKit/Source/wtf/HashMapTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashMapTest.cpp
@@ -249,7 +249,7 @@ TEST(HashMapTest, AddResult) {
result.storedValue->value = wrapUnique(simple1);
EXPECT_EQ(simple1, map.get(1));
- IntSimpleMap::AddResult result2 = map.add(1, wrapUnique(new SimpleClass(2)));
+ IntSimpleMap::AddResult result2 = map.add(1, makeUnique<SimpleClass>(2));
EXPECT_FALSE(result2.isNewEntry);
EXPECT_EQ(1, result.storedValue->key);
EXPECT_EQ(1, result.storedValue->value->v());
« no previous file with comments | « third_party/WebKit/Source/wtf/FunctionalTest.cpp ('k') | third_party/WebKit/Source/wtf/HashSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698