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

Unified Diff: components/scheduler/child/scheduler_tqm_delegate_for_test.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: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/scheduler/child/scheduler_tqm_delegate_for_test.cc
diff --git a/components/scheduler/child/scheduler_tqm_delegate_for_test.cc b/components/scheduler/child/scheduler_tqm_delegate_for_test.cc
index 4ff373f5939680446a0730179455f3c961cd4516..b082e6f68630ce5c76d4a6dd9051a66256c02aba 100644
--- a/components/scheduler/child/scheduler_tqm_delegate_for_test.cc
+++ b/components/scheduler/child/scheduler_tqm_delegate_for_test.cc
@@ -62,6 +62,10 @@ base::TimeTicks SchedulerTqmDelegateForTest::NowTicks() {
return task_runner_->NowTicks();
}
+double SchedulerTqmDelegateForTest::currentTime() const {
+ return base::Time::Now().ToDoubleT();
+}
+
void SchedulerTqmDelegateForTest::OnNoMoreImmediateWork() {}
} // namespace scheduler

Powered by Google App Engine
This is Rietveld 408576698