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

Unified Diff: chrome/browser/captive_portal/captive_portal_service_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: chrome/browser/captive_portal/captive_portal_service_unittest.cc
diff --git a/chrome/browser/captive_portal/captive_portal_service_unittest.cc b/chrome/browser/captive_portal/captive_portal_service_unittest.cc
index 6b73a0d2d565fbc59e65bd4cf2eff568affd5717..2c9ddf19101e84ca36cb185522d60125bad05523 100644
--- a/chrome/browser/captive_portal/captive_portal_service_unittest.cc
+++ b/chrome/browser/captive_portal/captive_portal_service_unittest.cc
@@ -102,8 +102,7 @@ class CaptivePortalServiceTest : public testing::Test,
CaptivePortalService::set_state_for_testing(testing_state);
profile_.reset(new TestingProfile());
- tick_clock_.reset(new base::SimpleTestTickClock());
- tick_clock_->Advance(base::TimeTicks::Now() - tick_clock_->NowTicks());
+ tick_clock_.reset(new base::SimpleTestTickClock(base::TimeTicks::Now()));
service_.reset(new CaptivePortalService(profile_.get(), tick_clock_.get()));
// Use no delays for most tests.

Powered by Google App Engine
This is Rietveld 408576698