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

Unified Diff: components/proximity_auth/bluetooth_throttler_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/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..cdd5515f8f5132c6140cb3563b29ff9adb7951d2 100644
--- a/components/proximity_auth/bluetooth_throttler_impl_unittest.cc
+++ b/components/proximity_auth/bluetooth_throttler_impl_unittest.cc
@@ -34,12 +34,11 @@ class TestBluetoothThrottler : public BluetoothThrottlerImpl {
class ProximityAuthBluetoothThrottlerImplTest : public testing::Test {
public:
ProximityAuthBluetoothThrottlerImplTest()
- : clock_(new base::SimpleTestTickClock),
- throttler_(make_scoped_ptr(clock_)) {
- // The throttler treats null times as special, so start with a non-null
- // time.
- clock_->Advance(base::TimeDelta::FromSeconds(1));
- }
+ // The throttler treats null times as special, so start with a non-null
+ // time.
+ : clock_(new base::SimpleTestTickClock(base::TimeTicks() +
+ base::TimeDelta::FromSeconds(1))),
+ throttler_(make_scoped_ptr(clock_)) {}
void PerformConnectionStateTransition(Connection::Status old_status,
Connection::Status new_status) {

Powered by Google App Engine
This is Rietveld 408576698