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_; |