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

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

Issue 1652083002: Prepare for per-webview virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 months 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 <utility> 7 #include <utility>
8 8
9 #include "base/time/default_tick_clock.h" 9 #include "base/time/default_tick_clock.h"
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const { 86 bool LazySchedulerMessageLoopDelegateForTests::IsNested() const {
87 return EnsureMessageLoop()->IsNested(); 87 return EnsureMessageLoop()->IsNested();
88 } 88 }
89 89
90 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() { 90 base::TimeTicks LazySchedulerMessageLoopDelegateForTests::NowTicks() {
91 return time_source_->NowTicks(); 91 return time_source_->NowTicks();
92 } 92 }
93 93
94 double LazySchedulerMessageLoopDelegateForTests::CurrentTimeSeconds() const {
95 return base::Time::Now().ToDoubleT();
96 }
97
98 void LazySchedulerMessageLoopDelegateForTests::OnNoMoreImmediateWork() {}
99
100 } // namespace scheduler 94 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698