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

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

Issue 2820753002: Revert of Split PendingScript into PendingScript and ClassicPendingScript (Closed)
Patch Set: Created 3 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
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 c846b48bf55893e4c7b5dfa17c919c9467f88247..fc7de6b435e9d035096e0b4898d00ca994ae2191 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
@@ -11,8 +11,9 @@
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8BindingForTesting.h"
#include "bindings/core/v8/V8ScriptRunner.h"
-#include "core/dom/ClassicPendingScript.h"
#include "core/dom/ClassicScript.h"
+#include "core/dom/Element.h"
+#include "core/dom/PendingScript.h"
#include "core/frame/Settings.h"
#include "platform/heap/Handle.h"
#include "platform/testing/UnitTestHelpers.h"
@@ -35,10 +36,9 @@
settings_(Settings::Create()),
resource_request_("http://www.streaming-test.com/"),
resource_(ScriptResource::Create(resource_request_, "UTF-8")),
- pending_script_(
- ClassicPendingScript::CreateForTesting(resource_.Get())) {
+ pending_script_(PendingScript::CreateForTesting(resource_.Get())) {
resource_->SetStatus(ResourceStatus::kPending);
- pending_script_ = ClassicPendingScript::CreateForTesting(resource_.Get());
+ pending_script_ = PendingScript::CreateForTesting(resource_.Get());
ScriptStreamer::SetSmallScriptThresholdForTesting(0);
}
@@ -47,9 +47,7 @@
pending_script_->Dispose();
}
- ClassicPendingScript* GetPendingScript() const {
- return pending_script_.Get();
- }
+ PendingScript* GetPendingScript() const { return pending_script_.Get(); }
protected:
void AppendData(const char* data) {
@@ -92,7 +90,7 @@
// ScriptResource::appendData.
ResourceRequest resource_request_;
Persistent<ScriptResource> resource_;
- Persistent<ClassicPendingScript> pending_script_;
+ Persistent<PendingScript> pending_script_;
};
class TestPendingScriptClient
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp ('k') | third_party/WebKit/Source/core/dom/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698