| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/test/scheduler_test_common.h" | 5 #include "cc/test/scheduler_test_common.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| 11 void FakeTimeSourceClient::OnTimerTick() { | 11 void FakeTimeSourceClient::OnTimerTick() { |
| 12 tick_called_ = true; | 12 tick_called_ = true; |
| 13 } | 13 } |
| 14 | 14 |
| 15 base::TimeTicks FakeDelayBasedTimeSource::Now() const { return now_; } | 15 base::TimeTicks FakeDelayBasedTimeSource::Now() const { return now_; } |
| 16 | 16 |
| 17 base::TimeTicks TestScheduler::Now() const { |
| 18 return test_task_runner_->Now(); |
| 19 } |
| 20 |
| 17 } // namespace cc | 21 } // namespace cc |
| OLD | NEW |