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

Side by Side Diff: components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CachingCorrectnessTest Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tes ts.h" 5 #include "components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tes ts.h"
6 6
7 #include "base/time/default_tick_clock.h" 7 #include "base/time/default_tick_clock.h"
8 8
9 namespace scheduler { 9 namespace scheduler {
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const { 84 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const {
85 return EnsureMessageLoop()->IsNested(); 85 return EnsureMessageLoop()->IsNested();
86 } 86 }
87 87
88 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() { 88 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() {
89 return time_source_->NowTicks(); 89 return time_source_->NowTicks();
90 } 90 }
91 91
92 double LazySchedulerMessageLoopDelegateForTests::CurrentTimeSeconds() const {
93 return base::Time::Now().ToDoubleT();
94 }
95
92 void LazySchedulerMessageLoopDelegateForTests::OnNoMoreImmediateWork() {} 96 void LazySchedulerMessageLoopDelegateForTests::OnNoMoreImmediateWork() {}
93 97
94 } // namespace scheduler 98 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.h ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698