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

Unified Diff: third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp b/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
index 6d6e8af35b080ca4a5a77d22ae6f3bdfed8cb8c5..64c7232693cbc7e4bf50d2852976843d95a549ee 100644
--- a/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
+++ b/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
@@ -12,11 +12,29 @@
namespace blink {
namespace {
-class MockScheduler final : public TestingPlatformMockScheduler {
+class MockScheduler final : public WebScheduler {
public:
MockScheduler() {}
~MockScheduler() override {}
+
+ // WebScheduler implementation:
+ WebTaskRunner* loadingTaskRunner() override { return nullptr; }
+ WebTaskRunner* timerTaskRunner() override { return nullptr; }
+ void shutdown() override {}
bool shouldYieldForHighPriorityWork() override { return true; }
+ 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 {}
private:
DISALLOW_COPY_AND_ASSIGN(MockScheduler);
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698