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

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, 10 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 testing::runPendingTasks(); 82 testing::runPendingTasks();
83 } 83 }
84 84
85 WebTaskRunner* m_loadingTaskRunner; // NOT OWNED 85 WebTaskRunner* m_loadingTaskRunner; // NOT OWNED
86 V8TestingScope m_scope; 86 V8TestingScope m_scope;
87 OwnPtr<Settings> m_settings; 87 OwnPtr<Settings> m_settings;
88 // The Resource and PendingScript where we stream from. These don't really 88 // The Resource and PendingScript where we stream from. These don't really
89 // fetch any data outside the test; the test controls the data by calling 89 // fetch any data outside the test; the test controls the data by calling
90 // ScriptResource::appendData. 90 // ScriptResource::appendData.
91 ResourceRequest m_resourceRequest; 91 ResourceRequest m_resourceRequest;
92 RefPtrWillBePersistent<ScriptResource> m_resource; 92 Persistent<ScriptResource> m_resource;
93 OwnPtrWillBePersistent<PendingScript> m_pendingScript; 93 Persistent<PendingScript> m_pendingScript;
94 }; 94 };
95 95
96 class TestScriptResourceClient : public ScriptResourceClient { 96 class TestScriptResourceClient : public ScriptResourceClient {
97 public: 97 public:
98 TestScriptResourceClient() 98 TestScriptResourceClient()
99 : m_finished(false) { } 99 : m_finished(false) { }
100 100
101 void notifyFinished(Resource*) override { m_finished = true; } 101 void notifyFinished(Resource*) override { m_finished = true; }
102 String debugName() const override { return "TestScriptResourceClient"; } 102 String debugName() const override { return "TestScriptResourceClient"; }
103 103
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 EXPECT_TRUE(sourceCode.streamer()); 376 EXPECT_TRUE(sourceCode.streamer());
377 v8::TryCatch tryCatch(isolate()); 377 v8::TryCatch tryCatch(isolate());
378 v8::Local<v8::Script> script; 378 v8::Local<v8::Script> script;
379 EXPECT_TRUE(V8ScriptRunner::compileScript(sourceCode, isolate()).ToLocal(&sc ript)); 379 EXPECT_TRUE(V8ScriptRunner::compileScript(sourceCode, isolate()).ToLocal(&sc ript));
380 EXPECT_FALSE(tryCatch.HasCaught()); 380 EXPECT_FALSE(tryCatch.HasCaught());
381 } 381 }
382 382
383 } // namespace 383 } // namespace
384 384
385 } // namespace blink 385 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698