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

Unified Diff: cc/surfaces/display_scheduler_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 | « cc/scheduler/scheduler_unittest.cc ('k') | cc/surfaces/surface_display_output_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_scheduler_unittest.cc
diff --git a/cc/surfaces/display_scheduler_unittest.cc b/cc/surfaces/display_scheduler_unittest.cc
index 0f2725dbc713d64c2b72f77a51a33875a0bf802a..703339f17019d14e378e2658c5b166c1b1da79d3 100644
--- a/cc/surfaces/display_scheduler_unittest.cc
+++ b/cc/surfaces/display_scheduler_unittest.cc
@@ -71,15 +71,14 @@ class TestDisplayScheduler : public DisplayScheduler {
class DisplaySchedulerTest : public testing::Test {
public:
DisplaySchedulerTest()
- : now_src_(new base::SimpleTestTickClock()),
+ : now_src_(new base::SimpleTestTickClock(
+ base::TimeTicks() + base::TimeDelta::FromMicroseconds(1))),
task_runner_(new base::NullTaskRunner),
client_(new FakeDisplaySchedulerClient),
scheduler_(new TestDisplayScheduler(client_.get(),
&fake_begin_frame_source_,
task_runner_.get(),
- kMaxPendingSwaps)) {
- now_src_->Advance(base::TimeDelta::FromMicroseconds(10000));
- }
+ kMaxPendingSwaps)) {}
~DisplaySchedulerTest() override {}
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/surfaces/surface_display_output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698