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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp

Issue 1802123002: Unify Resource loading status tracking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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/bindings/core/v8/ScriptStreamerTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
index 8f91bcfe6a1c539b470a96a0ed4e5c85e30f1ab4..0e2c62d0edcd50844845afd758297d90ecc2b7a3 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
@@ -34,7 +34,7 @@ public:
, m_resource(ScriptResource::create(m_resourceRequest, "UTF-8"))
, m_pendingScript(PendingScript::create(0, m_resource.get()))
{
- m_resource->setLoading(true);
+ m_resource->setStatus(Resource::Pending);
m_pendingScript = PendingScript::create(0, m_resource.get());
ScriptStreamer::setSmallScriptThresholdForTesting(0);
}
@@ -68,7 +68,7 @@ protected:
void finish()
{
m_resource->finish();
- m_resource->setLoading(false);
+ m_resource->setStatus(Resource::Cached);
}
void processTasksUntilStreamingComplete()

Powered by Google App Engine
This is Rietveld 408576698