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

Unified Diff: media/filters/video_renderer_algorithm_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/cast/test/simulator.cc ('k') | media/renderers/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_renderer_algorithm_unittest.cc
diff --git a/media/filters/video_renderer_algorithm_unittest.cc b/media/filters/video_renderer_algorithm_unittest.cc
index e35aa01940786b898690c59bbf4ab0b10e708b66..3b4e8f2bad352fca712d7ccca2dd063c01d1eae4 100644
--- a/media/filters/video_renderer_algorithm_unittest.cc
+++ b/media/filters/video_renderer_algorithm_unittest.cc
@@ -68,12 +68,12 @@ class TickGenerator {
class VideoRendererAlgorithmTest : public testing::Test {
public:
VideoRendererAlgorithmTest()
- : tick_clock_(new base::SimpleTestTickClock()),
+ // Always start the TickClock at a non-zero value since null values have
+ // special connotations.
+ : tick_clock_(new base::SimpleTestTickClock(
+ base::TimeTicks() + base::TimeDelta::FromMicroseconds(10000))),
algorithm_(base::Bind(&WallClockTimeSource::GetWallClockTimes,
base::Unretained(&time_source_))) {
- // Always start the TickClock at a non-zero value since null values have
- // special connotations.
- tick_clock_->Advance(base::TimeDelta::FromMicroseconds(10000));
time_source_.set_tick_clock_for_testing(tick_clock_.get());
}
~VideoRendererAlgorithmTest() override {}
« no previous file with comments | « media/cast/test/simulator.cc ('k') | media/renderers/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698