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

Unified Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 2633293003: Remove TestingPlatformMockScheduler (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
index cf90b8125da1be9c5630a3cada6d21abeaf07418..1f8166390d02c7f5dcd99735745ab718f902001f 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
@@ -84,33 +84,6 @@ class TestingCompositorSupport : public WebCompositorSupport {
bool isLeftSideVerticalScrollbar) override;
};
-class TestingPlatformMockScheduler : public WebScheduler {
- WTF_MAKE_NONCOPYABLE(TestingPlatformMockScheduler);
-
- public:
- TestingPlatformMockScheduler();
- ~TestingPlatformMockScheduler() override;
-
- // WebScheduler implementation:
- WebTaskRunner* loadingTaskRunner() override { return nullptr; }
- WebTaskRunner* timerTaskRunner() override { return nullptr; }
- void shutdown() override {}
- bool shouldYieldForHighPriorityWork() override { return false; }
- bool canExceedIdleDeadlineIfRequired() override { return false; }
- void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override {}
- void postNonNestableIdleTask(const WebTraceLocation&,
- WebThread::IdleTask*) override {}
- std::unique_ptr<WebViewScheduler> createWebViewScheduler(
- InterventionReporter*,
- WebViewScheduler::WebViewSchedulerSettings*) override {
- return nullptr;
- }
- void suspendTimerQueue() override {}
- void resumeTimerQueue() override {}
- void addPendingNavigation(WebScheduler::NavigatingFrameType) override {}
- void removePendingNavigation(WebScheduler::NavigatingFrameType) override {}
-};
-
// A base class to override Platform methods for testing. You can override the
// behavior by subclassing TestingPlatformSupport or using
// ScopedTestingPlatformSupport (see below).

Powered by Google App Engine
This is Rietveld 408576698