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

Unified Diff: components/timers/alarm_timer_unittest.cc

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 | « components/timers/alarm_timer_chromeos.cc ('k') | components/tracing/child_trace_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/timers/alarm_timer_unittest.cc
diff --git a/components/timers/alarm_timer_unittest.cc b/components/timers/alarm_timer_unittest.cc
index 14c55a9fc7bdff6dfec4068c9c57aaa976693fad..69ac9d362b13654a3595a75059792327afe2d7bc 100644
--- a/components/timers/alarm_timer_unittest.cc
+++ b/components/timers/alarm_timer_unittest.cc
@@ -4,6 +4,8 @@
#include <sys/timerfd.h>
+#include <memory>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
@@ -57,7 +59,7 @@ class OneShotAlarmTimerTester {
bool* did_run_;
const base::TimeDelta delay_;
- scoped_ptr<timers::OneShotAlarmTimer> timer_;
+ std::unique_ptr<timers::OneShotAlarmTimer> timer_;
DISALLOW_COPY_AND_ASSIGN(OneShotAlarmTimerTester);
};
@@ -85,7 +87,7 @@ class OneShotSelfDeletingAlarmTimerTester {
bool* did_run_;
const base::TimeDelta delay_;
- scoped_ptr<timers::OneShotAlarmTimer> timer_;
+ std::unique_ptr<timers::OneShotAlarmTimer> timer_;
DISALLOW_COPY_AND_ASSIGN(OneShotSelfDeletingAlarmTimerTester);
};
@@ -116,7 +118,7 @@ class RepeatingAlarmTimerTester {
bool* did_run_;
const base::TimeDelta delay_;
int counter_;
- scoped_ptr<timers::RepeatingAlarmTimer> timer_;
+ std::unique_ptr<timers::RepeatingAlarmTimer> timer_;
DISALLOW_COPY_AND_ASSIGN(RepeatingAlarmTimerTester);
};
« no previous file with comments | « components/timers/alarm_timer_chromeos.cc ('k') | components/tracing/child_trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698