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

Unified Diff: base/test/simple_test_tick_clock.h

Issue 1178423008: Provision to start base::SimpleTestTickClock at initial ticks Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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 | « ash/wm/maximize_mode/maximize_mode_controller_unittest.cc ('k') | base/test/simple_test_tick_clock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8efe241bba4cae09614a1511b4ecbf9810e225d3 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);
~SimpleTestTickClock() override;
TimeTicks NowTicks() override;
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller_unittest.cc ('k') | base/test/simple_test_tick_clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698