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

Unified Diff: media/base/null_video_sink_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/audio/win/audio_device_listener_win_unittest.cc ('k') | media/base/pipeline_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/null_video_sink_unittest.cc
diff --git a/media/base/null_video_sink_unittest.cc b/media/base/null_video_sink_unittest.cc
index 996edc0fe8d154329574280f6a1d78ec122d69ab..ae394d451aead5df3ba48b3b10cc02158ba979fb 100644
--- a/media/base/null_video_sink_unittest.cc
+++ b/media/base/null_video_sink_unittest.cc
@@ -25,10 +25,10 @@ ACTION_P(RunClosure, closure) {
class NullVideoSinkTest : public testing::Test,
public VideoRendererSink::RenderCallback {
public:
- NullVideoSinkTest() {
- // Never use null TimeTicks since they have special connotations.
- tick_clock_.Advance(base::TimeDelta::FromMicroseconds(12345));
- }
+ NullVideoSinkTest()
+ : // Never use null TimeTicks since they have special connotations.
+ tick_clock_(base::TimeTicks() +
+ base::TimeDelta::FromMicroseconds(12345)) {}
~NullVideoSinkTest() override {}
scoped_ptr<NullVideoSink> ConstructSink(bool clockless,
« no previous file with comments | « media/audio/win/audio_device_listener_win_unittest.cc ('k') | media/base/pipeline_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698