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

Unified Diff: components/proximity_auth/bluetooth_throttler_impl_unittest.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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/proximity_auth/bluetooth_throttler_impl.cc ('k') | components/proximity_auth/connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/bluetooth_throttler_impl_unittest.cc
diff --git a/components/proximity_auth/bluetooth_throttler_impl_unittest.cc b/components/proximity_auth/bluetooth_throttler_impl_unittest.cc
index 5cfc4c9fc85799a4f9f788ea524d440ae287e274..427110fae7eb1d6e664699f80f9314fe7c62f7ac 100644
--- a/components/proximity_auth/bluetooth_throttler_impl_unittest.cc
+++ b/components/proximity_auth/bluetooth_throttler_impl_unittest.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/time/time.h"
#include "components/proximity_auth/fake_connection.h"
@@ -18,7 +19,7 @@ namespace {
class TestBluetoothThrottler : public BluetoothThrottlerImpl {
public:
- explicit TestBluetoothThrottler(scoped_ptr<base::TickClock> clock)
+ explicit TestBluetoothThrottler(std::unique_ptr<base::TickClock> clock)
: BluetoothThrottlerImpl(std::move(clock)) {}
~TestBluetoothThrottler() override {}
@@ -35,7 +36,7 @@ class ProximityAuthBluetoothThrottlerImplTest : public testing::Test {
public:
ProximityAuthBluetoothThrottlerImplTest()
: clock_(new base::SimpleTestTickClock),
- throttler_(make_scoped_ptr(clock_)) {
+ throttler_(base::WrapUnique(clock_)) {
// The throttler treats null times as special, so start with a non-null
// time.
clock_->Advance(base::TimeDelta::FromSeconds(1));
« no previous file with comments | « components/proximity_auth/bluetooth_throttler_impl.cc ('k') | components/proximity_auth/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698