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

Unified Diff: base/test/test_mock_time_task_runner.cc

Issue 2258713003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « base/test/test_discardable_memory_allocator.cc ('k') | base/test/test_reg_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_mock_time_task_runner.cc
diff --git a/base/test/test_mock_time_task_runner.cc b/base/test/test_mock_time_task_runner.cc
index 7dca3a931d7f60252924dbcc5f1a416976278bad..6dfecaf838ba8ee5e5b36f8d067e021e4d51f4c5 100644
--- a/base/test/test_mock_time_task_runner.cc
+++ b/base/test/test_mock_time_task_runner.cc
@@ -165,12 +165,12 @@ TimeTicks TestMockTimeTaskRunner::NowTicks() const {
std::unique_ptr<Clock> TestMockTimeTaskRunner::GetMockClock() const {
DCHECK(thread_checker_.CalledOnValidThread());
- return WrapUnique(new MockClock(this));
+ return MakeUnique<MockClock>(this);
}
std::unique_ptr<TickClock> TestMockTimeTaskRunner::GetMockTickClock() const {
DCHECK(thread_checker_.CalledOnValidThread());
- return WrapUnique(new MockTickClock(this));
+ return MakeUnique<MockTickClock>(this);
}
bool TestMockTimeTaskRunner::HasPendingTask() const {
« no previous file with comments | « base/test/test_discardable_memory_allocator.cc ('k') | base/test/test_reg_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698