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

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

Issue 956333002: Refactor TimeBase to post tasks. Workers to use real Idle tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 8 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/fetch/CachingCorrectnessTest.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..8dcc647956a6cdb2087870a744b09523e163f724 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/fetch/CachingCorrectnessTest.cpp ('k') | Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698