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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #include "bindings/core/v8/ScriptStreamer.h" 6 #include "bindings/core/v8/ScriptStreamer.h"
7 7
8 #include "bindings/core/v8/ScriptSourceCode.h" 8 #include "bindings/core/v8/ScriptSourceCode.h"
9 #include "bindings/core/v8/ScriptStreamerThread.h" 9 #include "bindings/core/v8/ScriptStreamerThread.h"
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 testing::runPendingTasks(); 81 testing::runPendingTasks();
82 } 82 }
83 83
84 WebTaskRunner* m_loadingTaskRunner; // NOT OWNED 84 WebTaskRunner* m_loadingTaskRunner; // NOT OWNED
85 V8TestingScope m_scope; 85 V8TestingScope m_scope;
86 OwnPtr<Settings> m_settings; 86 OwnPtr<Settings> m_settings;
87 // The Resource and PendingScript where we stream from. These don't really 87 // The Resource and PendingScript where we stream from. These don't really
88 // fetch any data outside the test; the test controls the data by calling 88 // fetch any data outside the test; the test controls the data by calling
89 // ScriptResource::appendData. 89 // ScriptResource::appendData.
90 ResourceRequest m_resourceRequest; 90 ResourceRequest m_resourceRequest;
91 RefPtrWillBePersistent<ScriptResource> m_resource; 91 Persistent<ScriptResource> m_resource;
92 OwnPtrWillBePersistent<PendingScript> m_pendingScript; 92 Persistent<PendingScript> m_pendingScript;
93 }; 93 };
94 94
95 class TestScriptResourceClient : public ScriptResourceClient { 95 class TestScriptResourceClient : public ScriptResourceClient {
96 public: 96 public:
97 TestScriptResourceClient() 97 TestScriptResourceClient()
98 : m_finished(false) { } 98 : m_finished(false) { }
99 99
100 void notifyFinished(Resource*) override { m_finished = true; } 100 void notifyFinished(Resource*) override { m_finished = true; }
101 String debugName() const override { return "TestScriptResourceClient"; } 101 String debugName() const override { return "TestScriptResourceClient"; }
102 102
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 EXPECT_TRUE(sourceCode.streamer()); 375 EXPECT_TRUE(sourceCode.streamer());
376 v8::TryCatch tryCatch(isolate()); 376 v8::TryCatch tryCatch(isolate());
377 v8::Local<v8::Script> script; 377 v8::Local<v8::Script> script;
378 EXPECT_TRUE(V8ScriptRunner::compileScript(sourceCode, isolate()).ToLocal(&sc ript)); 378 EXPECT_TRUE(V8ScriptRunner::compileScript(sourceCode, isolate()).ToLocal(&sc ript));
379 EXPECT_FALSE(tryCatch.HasCaught()); 379 EXPECT_FALSE(tryCatch.HasCaught());
380 } 380 }
381 381
382 } // namespace 382 } // namespace
383 383
384 } // namespace blink 384 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698