diff options
Diffstat (limited to 'base/test/simple_test_clock.cc')
-rw-r--r-- | base/test/simple_test_clock.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/test/simple_test_clock.cc b/base/test/simple_test_clock.cc index 3bd6080..a2bdc2a 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 |