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

Unified Diff: components/proximity_auth/proximity_monitor_impl_unittest.cc

Issue 1178423008: Provision to start base::SimpleTestTickClock at initial ticks Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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: components/proximity_auth/proximity_monitor_impl_unittest.cc
diff --git a/components/proximity_auth/proximity_monitor_impl_unittest.cc b/components/proximity_auth/proximity_monitor_impl_unittest.cc
index 6fe5506f6134bfcf7df166b91884dffdef12fca8..966e75581a3d941cfa92229c5e03a902d96d394f 100644
--- a/components/proximity_auth/proximity_monitor_impl_unittest.cc
+++ b/components/proximity_auth/proximity_monitor_impl_unittest.cc
@@ -76,7 +76,7 @@ CreateAndRegisterMockBluetoothAdapter() {
class ProximityAuthProximityMonitorImplTest : public testing::Test {
public:
ProximityAuthProximityMonitorImplTest()
- : clock_(new base::SimpleTestTickClock()),
+ : clock_(new base::SimpleTestTickClock(base::TimeTicks())),
bluetooth_adapter_(CreateAndRegisterMockBluetoothAdapter()),
remote_bluetooth_device_(&*bluetooth_adapter_,
0,
@@ -544,7 +544,8 @@ TEST_F(ProximityAuthProximityMonitorImplTest,
RemoteDevice::BLUETOOTH_CLASSIC, kBluetoothAddress,
kPersistentSymmetricKey, std::string());
- scoped_ptr<base::TickClock> clock(new base::SimpleTestTickClock());
+ scoped_ptr<base::TickClock> clock(
+ new base::SimpleTestTickClock(base::TimeTicks()));
ProximityMonitorImpl monitor(unnamed_remote_device, std::move(clock));
monitor.AddObserver(&observer_);
monitor.Start();

Powered by Google App Engine
This is Rietveld 408576698