Index: base/test/simple_test_tick_clock.h |
diff --git a/base/test/simple_test_tick_clock.h b/base/test/simple_test_tick_clock.h |
index aebdebcbcf54e7016a1629b5405eb40cbf22d801..629ced9f7841408e6eaffbeffd9f50ae4d15f3b8 100644 |
--- a/base/test/simple_test_tick_clock.h |
+++ b/base/test/simple_test_tick_clock.h |
@@ -17,8 +17,9 @@ namespace base { |
// called from any thread. |
class SimpleTestTickClock : public TickClock { |
public: |
- // Starts off with a clock set to TimeTicks(). |
- SimpleTestTickClock(); |
+ // Start off with a clock set to some initial tick(s) |
+ // Avoids having to Advance(initial) for tests |
+ SimpleTestTickClock(TimeTicks initial = TimeTicks()); |
Paweł Hajdan Jr.
2015/06/30 11:40:19
Default arguments are prohibited, please see https
Ankur Verma
2015/06/30 11:58:39
Quoting from the above documentation:
"In addition
Paweł Hajdan Jr.
2015/07/15 17:36:59
Ah, you're right, I didn't notice this. Sorry.
|
~SimpleTestTickClock() override; |
TimeTicks NowTicks() override; |