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

Unified Diff: components/scheduler/child/test_time_source.h

Issue 1163143002: Scheduler/child/TimeSource could be replaced with base/time/DefaultTickClock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/test_time_source.h
diff --git a/components/scheduler/child/test_time_source.h b/components/scheduler/child/test_time_source.h
index 6219a4dbd8afa92b0d0d7f5c4bdbab197f661243..92b23f1debea3a6662634fc6e7edf5f6318e7a09 100644
--- a/components/scheduler/child/test_time_source.h
+++ b/components/scheduler/child/test_time_source.h
@@ -6,7 +6,7 @@
#define COMPONENTS_SCHEDULER_CHILD_TEST_TIME_SOURCE_H_
#include "base/memory/ref_counted.h"
-#include "components/scheduler/child/time_source.h"
+#include "base/time/tick_clock.h"
namespace cc {
class TestNowSource;
@@ -14,12 +14,12 @@ class TestNowSource;
namespace scheduler {
-class TestTimeSource : public TimeSource {
+class TestTimeSource : public TickClock {
public:
explicit TestTimeSource(scoped_refptr<cc::TestNowSource> time_source);
~TestTimeSource() override;
- base::TimeTicks Now() const override;
+ base::TimeTicks NowTicks() override;
private:
scoped_refptr<cc::TestNowSource> time_source_;

Powered by Google App Engine
This is Rietveld 408576698