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

Unified Diff: Source/core/fetch/ResourceTest.cpp

Issue 1134523002: Implement timers by posting delayed tasks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 5 years, 7 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 | « Source/core/Init.cpp ('k') | Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceTest.cpp
diff --git a/Source/core/fetch/ResourceTest.cpp b/Source/core/fetch/ResourceTest.cpp
index 9cd3cf1fa408f0209b66bc06c8075b48fdc32d28..5dd02c66dd8a81713f34f16d74ffa465dc483415 100644
--- a/Source/core/fetch/ResourceTest.cpp
+++ b/Source/core/fetch/ResourceTest.cpp
@@ -22,7 +22,7 @@ namespace {
class MockPlatform final : public Platform {
public:
- MockPlatform() { }
+ MockPlatform() : m_oldPlatform(Platform::current()) { }
~MockPlatform() override { }
// From blink::Platform:
@@ -40,7 +40,13 @@ public:
return m_cachedURLs;
}
+ WebThread* currentThread() override
+ {
+ return m_oldPlatform->currentThread();
+ }
+
private:
+ Platform* m_oldPlatform; // Not owned.
Vector<WebURL> m_cachedURLs;
};
« no previous file with comments | « Source/core/Init.cpp ('k') | Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698