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

Unified Diff: third_party/WebKit/Source/wtf/FunctionalTest.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/FilePrintStream.cpp ('k') | third_party/WebKit/Source/wtf/HashMapTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/FunctionalTest.cpp
diff --git a/third_party/WebKit/Source/wtf/FunctionalTest.cpp b/third_party/WebKit/Source/wtf/FunctionalTest.cpp
index 8157975c4aff68e484a2331f7e4d2dc6f750764e..174d26d47043517999450bd46f32e10742382c71 100644
--- a/third_party/WebKit/Source/wtf/FunctionalTest.cpp
+++ b/third_party/WebKit/Source/wtf/FunctionalTest.cpp
@@ -318,13 +318,13 @@ TEST(FunctionalTest, MemberFunctionPartBind) {
TEST(FunctionalTest, MemberFunctionBindByUniquePtr) {
std::unique_ptr<Function<int()>> function1 =
- WTF::bind(&A::f, wrapUnique(new A(10)));
+ WTF::bind(&A::f, makeUnique<A>(10));
EXPECT_EQ(10, (*function1)());
}
TEST(FunctionalTest, MemberFunctionBindByPassedUniquePtr) {
std::unique_ptr<Function<int()>> function1 =
- WTF::bind(&A::f, passed(wrapUnique(new A(10))));
+ WTF::bind(&A::f, passed(makeUnique<A>(10)));
EXPECT_EQ(10, (*function1)());
}
« no previous file with comments | « third_party/WebKit/Source/wtf/FilePrintStream.cpp ('k') | third_party/WebKit/Source/wtf/HashMapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698