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

Unified Diff: base/test/simple_test_clock.h

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 | « no previous file | base/test/simple_test_clock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/simple_test_clock.h
diff --git a/base/test/simple_test_clock.h b/base/test/simple_test_clock.h
index a83312fa7cccbe789b3c746051f7f0d5665d6147..f96dabf0b72f2e798d01e3eef26d28fa0fcf4969 100644
--- a/base/test/simple_test_clock.h
+++ b/base/test/simple_test_clock.h
@@ -13,7 +13,7 @@
namespace base {
// SimpleTestClock is a Clock implementation that gives control over
-// the returned Time objects. All methods can be called from any
+// the returned Time objects. All methods may be called from any
// thread.
class SimpleTestClock : public Clock {
public:
@@ -23,10 +23,12 @@ class SimpleTestClock : public Clock {
virtual Time Now() OVERRIDE;
- // Sets the current time forward by |delta|. Safe to call from any
- // thread.
+ // Advances the clock by |delta|.
void Advance(TimeDelta delta);
+ // Sets the clock to the given time.
+ void SetNow(Time now);
+
private:
// Protects |now_|.
Lock lock_;
« no previous file with comments | « no previous file | base/test/simple_test_clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698