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

Unified Diff: cc/test/scheduler_test_common.h

Issue 2150533004: cc: Send all begin frames using a PostTask. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_unittest_no_deadline
Patch Set: Created 4 years, 5 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: cc/test/scheduler_test_common.h
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h
index 8bb8a9d565875f8e53dc4b7fba6042c7f01eb7db..aa8a777f993b175a644e4657b29c5fefa49e4173 100644
--- a/cc/test/scheduler_test_common.h
+++ b/cc/test/scheduler_test_common.h
@@ -38,40 +38,6 @@ class FakeDelayBasedTimeSourceClient : public DelayBasedTimeSourceClient {
DISALLOW_COPY_AND_ASSIGN(FakeDelayBasedTimeSourceClient);
};
-class FakeDelayBasedTimeSource : public DelayBasedTimeSource {
- public:
- explicit FakeDelayBasedTimeSource(base::SingleThreadTaskRunner* task_runner)
- : DelayBasedTimeSource(task_runner) {}
- ~FakeDelayBasedTimeSource() override {}
-
- void SetNow(base::TimeTicks time) { now_ = time; }
- base::TimeTicks Now() const override;
-
- protected:
- base::TimeTicks now_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(FakeDelayBasedTimeSource);
-};
-
-class TestDelayBasedTimeSource : public DelayBasedTimeSource {
- public:
- TestDelayBasedTimeSource(base::SimpleTestTickClock* now_src,
- OrderedSimpleTaskRunner* task_runner);
- ~TestDelayBasedTimeSource() override;
-
- protected:
- // Overridden from DelayBasedTimeSource
- base::TimeTicks Now() const override;
- std::string TypeString() const override;
-
- // Not owned.
- base::SimpleTestTickClock* now_src_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TestDelayBasedTimeSource);
-};
-
class FakeCompositorTimingHistory : public CompositorTimingHistory {
public:
static std::unique_ptr<FakeCompositorTimingHistory> Create(

Powered by Google App Engine
This is Rietveld 408576698