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

Unified Diff: components/scheduler/base/task_queue_manager_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: 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 side-by-side diff with in-line comments
Download patch
Index: components/scheduler/base/task_queue_manager_delegate_for_test.cc
diff --git a/components/scheduler/base/task_queue_manager_delegate_for_test.cc b/components/scheduler/base/task_queue_manager_delegate_for_test.cc
index d1d2316d34a295999ab13f2f4434b9ff34987dcb..fe3d0e5c90b93613823d424a22d2818910366c63 100644
--- a/components/scheduler/base/task_queue_manager_delegate_for_test.cc
+++ b/components/scheduler/base/task_queue_manager_delegate_for_test.cc
@@ -51,6 +51,10 @@ base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() {
return time_source_->NowTicks();
}
+double TaskQueueManagerDelegateForTest::CurrentTimeSeconds() const {
+ return (time_source_->NowTicks() - base::TimeTicks::UnixEpoch()).InSecondsF();
+}
+
void TaskQueueManagerDelegateForTest::OnNoMoreImmediateWork() {}
} // namespace scheduler
« no previous file with comments | « components/scheduler/base/task_queue_manager_delegate_for_test.h ('k') | components/scheduler/child/idle_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698