OLD | NEW |
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/ScriptStreamingMode.h" | 11 #include "bindings/core/v8/ScriptStreamingMode.h" |
12 #include "bindings/core/v8/V8Binding.h" | 12 #include "bindings/core/v8/V8Binding.h" |
13 #include "bindings/core/v8/V8ScriptRunner.h" | 13 #include "bindings/core/v8/V8ScriptRunner.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 "platform/Task.h" | 17 #include "platform/Task.h" |
17 #include "platform/heap/Handle.h" | 18 #include "platform/heap/Handle.h" |
18 #include "public/platform/Platform.h" | 19 #include "public/platform/Platform.h" |
19 | 20 |
20 #include <gtest/gtest.h> | 21 #include <gtest/gtest.h> |
21 #include <v8.h> | 22 #include <v8.h> |
22 | 23 |
23 namespace blink { | 24 namespace blink { |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(sourceCode, is
olate()); | 391 v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(sourceCode, is
olate()); |
391 EXPECT_FALSE(script.IsEmpty()); | 392 EXPECT_FALSE(script.IsEmpty()); |
392 EXPECT_FALSE(tryCatch.HasCaught()); | 393 EXPECT_FALSE(tryCatch.HasCaught()); |
393 } | 394 } |
394 | 395 |
395 INSTANTIATE_TEST_CASE_P(ScriptStreamingInstantiation, ScriptStreamingTest, ::tes
ting::Values(false, true)); | 396 INSTANTIATE_TEST_CASE_P(ScriptStreamingInstantiation, ScriptStreamingTest, ::tes
ting::Values(false, true)); |
396 | 397 |
397 } // namespace | 398 } // namespace |
398 | 399 |
399 } // namespace blink | 400 } // namespace blink |
OLD | NEW |