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

Unified Diff: base/test/simple_test_clock.cc

Issue 12314056: Make chrome/browser/extensions use base::Clock instead of MockTimeProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add include Created 7 years, 10 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 | « base/test/simple_test_clock.h ('k') | base/test/simple_test_tick_clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/simple_test_clock.cc
diff --git a/base/test/simple_test_clock.cc b/base/test/simple_test_clock.cc
index 3bd6080fe9bc0a77a7c633d479aa9ac9caba8ca4..a2bdc2ac3d87d84fad9fb36df9d2bab6211b328a 100644
--- a/base/test/simple_test_clock.cc
+++ b/base/test/simple_test_clock.cc
@@ -20,4 +20,9 @@ void SimpleTestClock::Advance(TimeDelta delta) {
now_ += delta;
}
+void SimpleTestClock::SetNow(Time now) {
+ AutoLock lock(lock_);
+ now_ = now;
+}
+
} // namespace base
« no previous file with comments | « base/test/simple_test_clock.h ('k') | base/test/simple_test_tick_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698