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

Side by Side 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 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/base/task_queue_manager_delegate_for_test.h" 5 #include "components/scheduler/base/task_queue_manager_delegate_for_test.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 9
10 namespace scheduler { 10 namespace scheduler {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 bool TaskQueueManagerDelegateForTest::IsNested() const { 46 bool TaskQueueManagerDelegateForTest::IsNested() const {
47 return false; 47 return false;
48 } 48 }
49 49
50 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() { 50 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() {
51 return time_source_->NowTicks(); 51 return time_source_->NowTicks();
52 } 52 }
53 53
54 double TaskQueueManagerDelegateForTest::CurrentTimeSeconds() const {
55 return (time_source_->NowTicks() - base::TimeTicks::UnixEpoch()).InSecondsF();
56 }
57
54 void TaskQueueManagerDelegateForTest::OnNoMoreImmediateWork() {} 58 void TaskQueueManagerDelegateForTest::OnNoMoreImmediateWork() {}
55 59
56 } // namespace scheduler 60 } // namespace scheduler
OLDNEW
« 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