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

Unified Diff: media/cast/test/simulator.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/end2end_unittest.cc ('k') | media/filters/video_renderer_algorithm_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/simulator.cc
diff --git a/media/cast/test/simulator.cc b/media/cast/test/simulator.cc
index a2aa6e45b91b7e84d153ceba5cf4a5e4753660df..53fdfd90bb7a9708c0b5d7348c2b2b0a26aeee79 100644
--- a/media/cast/test/simulator.cc
+++ b/media/cast/test/simulator.cc
@@ -293,8 +293,8 @@ void RunSimulation(const base::FilePath& source_path,
const std::string& extra_data,
const NetworkSimulationModel& model) {
// Fake clock. Make sure start time is non zero.
- base::SimpleTestTickClock testing_clock;
- testing_clock.Advance(base::TimeDelta::FromSeconds(1));
+ base::SimpleTestTickClock testing_clock(base::TimeTicks() +
+ base::TimeDelta::FromSeconds(1));
// Task runner.
scoped_refptr<test::FakeSingleThreadTaskRunner> task_runner =
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/filters/video_renderer_algorithm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698