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

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

Issue 1132753008: Replaced TestNowSource with SimpleTestTickClock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased again. Replaces TimeSource with TickClock in TestAlwaysFailTimeSource 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 4190ea1666208d7affbf6643226df89b7b97b531..f1e03da6e5069bb3897cff8ce8340eda9f8df51f 100644
--- a/components/scheduler/child/test_time_source.h
+++ b/components/scheduler/child/test_time_source.h
@@ -6,23 +6,20 @@
#define COMPONENTS_SCHEDULER_CHILD_TEST_TIME_SOURCE_H_
#include "base/memory/ref_counted.h"
+#include "base/test/simple_test_tick_clock.h"
#include "base/time/tick_clock.h"
-namespace cc {
-class TestNowSource;
-}
-
namespace scheduler {
class TestTimeSource : public base::TickClock {
public:
- explicit TestTimeSource(scoped_refptr<cc::TestNowSource> time_source);
+ explicit TestTimeSource(base::SimpleTestTickClock* time_source);
~TestTimeSource() override;
base::TimeTicks NowTicks() override;
private:
- scoped_refptr<cc::TestNowSource> time_source_;
+ base::SimpleTestTickClock* time_source_;
DISALLOW_COPY_AND_ASSIGN(TestTimeSource);
};

Powered by Google App Engine
This is Rietveld 408576698