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

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

Issue 997003004: [bindings] Migrate V8TestingScope out of V8Binding.h/cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 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 "config.h" 6 #include "config.h"
7 #include "bindings/core/v8/ScriptStreamer.h" 7 #include "bindings/core/v8/ScriptStreamer.h"
8 8
9 #include "bindings/core/v8/ScriptSourceCode.h" 9 #include "bindings/core/v8/ScriptSourceCode.h"
10 #include "bindings/core/v8/ScriptStreamerThread.h" 10 #include "bindings/core/v8/ScriptStreamerThread.h"
11 #include "bindings/core/v8/V8Binding.h" 11 #include "bindings/core/v8/V8Binding.h"
12 #include "bindings/core/v8/V8ScriptRunner.h" 12 #include "bindings/core/v8/V8ScriptRunner.h"
13 #include "bindings/core/v8/V8TestingScope.h"
13 #include "core/dom/Element.h" 14 #include "core/dom/Element.h"
14 #include "core/dom/PendingScript.h" 15 #include "core/dom/PendingScript.h"
15 #include "core/frame/Settings.h" 16 #include "core/frame/Settings.h"
16 #include "core/testing/UnitTestHelpers.h" 17 #include "core/testing/UnitTestHelpers.h"
17 #include "platform/Task.h" 18 #include "platform/Task.h"
18 #include "platform/heap/Handle.h" 19 #include "platform/heap/Handle.h"
19 #include "public/platform/Platform.h" 20 #include "public/platform/Platform.h"
20 21
21 #include <gtest/gtest.h> 22 #include <gtest/gtest.h>
22 #include <v8.h> 23 #include <v8.h>
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 EXPECT_TRUE(sourceCode.streamer()); 384 EXPECT_TRUE(sourceCode.streamer());
384 v8::TryCatch tryCatch; 385 v8::TryCatch tryCatch;
385 v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(sourceCode, is olate()); 386 v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(sourceCode, is olate());
386 EXPECT_FALSE(script.IsEmpty()); 387 EXPECT_FALSE(script.IsEmpty());
387 EXPECT_FALSE(tryCatch.HasCaught()); 388 EXPECT_FALSE(tryCatch.HasCaught());
388 } 389 }
389 390
390 } // namespace 391 } // namespace
391 392
392 } // namespace blink 393 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptPromiseTest.cpp ('k') | Source/bindings/core/v8/SerializedScriptValueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698