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

Unified Diff: third_party/WebKit/Source/platform/threading/BackgroundTaskRunnerTest.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
Index: third_party/WebKit/Source/platform/threading/BackgroundTaskRunnerTest.cpp
diff --git a/third_party/WebKit/Source/platform/threading/BackgroundTaskRunnerTest.cpp b/third_party/WebKit/Source/platform/threading/BackgroundTaskRunnerTest.cpp
index e8c39359b44d30ee3ab60976a8d561c6207223ac..6717d30ae60e1c5b5ad61c178bbf19a075c9efc0 100644
--- a/third_party/WebKit/Source/platform/threading/BackgroundTaskRunnerTest.cpp
+++ b/third_party/WebKit/Source/platform/threading/BackgroundTaskRunnerTest.cpp
@@ -22,7 +22,7 @@ void PingPongTask(WaitableEvent* doneEvent) {
class BackgroundTaskRunnerTest : public testing::Test {};
TEST_F(BackgroundTaskRunnerTest, RunShortTaskOnBackgroundThread) {
- std::unique_ptr<WaitableEvent> doneEvent = wrapUnique(new WaitableEvent());
+ std::unique_ptr<WaitableEvent> doneEvent = makeUnique<WaitableEvent>();
BackgroundTaskRunner::postOnBackgroundThread(
BLINK_FROM_HERE,
crossThreadBind(&PingPongTask, crossThreadUnretained(doneEvent.get())),
@@ -32,7 +32,7 @@ TEST_F(BackgroundTaskRunnerTest, RunShortTaskOnBackgroundThread) {
}
TEST_F(BackgroundTaskRunnerTest, RunLongTaskOnBackgroundThread) {
- std::unique_ptr<WaitableEvent> doneEvent = wrapUnique(new WaitableEvent());
+ std::unique_ptr<WaitableEvent> doneEvent = makeUnique<WaitableEvent>();
BackgroundTaskRunner::postOnBackgroundThread(
BLINK_FROM_HERE,
crossThreadBind(&PingPongTask, crossThreadUnretained(doneEvent.get())),

Powered by Google App Engine
This is Rietveld 408576698