| 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));
|
|
|