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

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

Issue 2516493002: requestIdleCallback: Yield for high priority work (Closed)
Patch Set: Added a test Created 4 years, 1 month 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 992f9d304ca7c1dc4442e8f4ffb315275001e7e8..7978c7dd4b6ecf997e5249aa947bb54f2a1c474c 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
@@ -58,7 +58,6 @@ namespace scheduler {
class RendererScheduler;
class RendererSchedulerImpl;
}
-class TestingPlatformMockWebTaskRunner;
class WebCompositorSupport;
class WebThread;
@@ -92,8 +91,8 @@ class TestingPlatformMockScheduler : public WebScheduler {
void runAllTasks();
// WebScheduler implementation:
- WebTaskRunner* loadingTaskRunner() override;
- WebTaskRunner* timerTaskRunner() override;
+ WebTaskRunner* loadingTaskRunner() override { return nullptr; }
+ WebTaskRunner* timerTaskRunner() override { return nullptr; }
void shutdown() override {}
bool shouldYieldForHighPriorityWork() override { return false; }
bool canExceedIdleDeadlineIfRequired() override { return false; }
@@ -113,7 +112,6 @@ class TestingPlatformMockScheduler : public WebScheduler {
private:
WTF::Deque<std::unique_ptr<WebTaskRunner::Task>> m_tasks;
- std::unique_ptr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner;
};
class TestingPlatformSupport : public Platform {

Powered by Google App Engine
This is Rietveld 408576698