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

Unified Diff: media/base/wall_clock_time_source_unittest.cc

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 | « media/base/time_delta_interpolator_unittest.cc ('k') | media/blink/video_frame_compositor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/wall_clock_time_source_unittest.cc
diff --git a/media/base/wall_clock_time_source_unittest.cc b/media/base/wall_clock_time_source_unittest.cc
index dee7aff51d13272ea3f66236fa6f0e969f48defb..f86cea77c54f20294124fea72e2a8153c4f99b99 100644
--- a/media/base/wall_clock_time_source_unittest.cc
+++ b/media/base/wall_clock_time_source_unittest.cc
@@ -11,9 +11,10 @@ namespace media {
class WallClockTimeSourceTest : public testing::Test {
public:
- WallClockTimeSourceTest() : tick_clock_(new base::SimpleTestTickClock()) {
+ WallClockTimeSourceTest()
+ : tick_clock_(new base::SimpleTestTickClock(
+ base::TimeTicks() + base::TimeDelta::FromSeconds(1))) {
time_source_.set_tick_clock_for_testing(tick_clock_.get());
- AdvanceTimeInSeconds(1);
}
~WallClockTimeSourceTest() override {}
« no previous file with comments | « media/base/time_delta_interpolator_unittest.cc ('k') | media/blink/video_frame_compositor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698