| 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 #include "bindings/core/v8/ScriptStreamer.h" | 5 #include "bindings/core/v8/ScriptStreamer.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 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/V8BindingForCore.h" | 11 #include "bindings/core/v8/V8BindingForCore.h" |
| 12 #include "bindings/core/v8/V8BindingForTesting.h" | 12 #include "bindings/core/v8/V8BindingForTesting.h" |
| 13 #include "bindings/core/v8/V8ScriptRunner.h" | 13 #include "bindings/core/v8/V8ScriptRunner.h" |
| 14 #include "core/dom/ClassicPendingScript.h" | 14 #include "core/dom/ClassicPendingScript.h" |
| 15 #include "core/dom/ClassicScript.h" | 15 #include "core/dom/ClassicScript.h" |
| 16 #include "core/dom/MockScriptElementBase.h" | 16 #include "core/dom/MockScriptElementBase.h" |
| 17 #include "core/frame/Settings.h" | 17 #include "core/frame/Settings.h" |
| 18 #include "platform/heap/Handle.h" | 18 #include "platform/heap/Handle.h" |
| 19 #include "platform/scheduler/child/web_scheduler.h" |
| 19 #include "platform/testing/UnitTestHelpers.h" | 20 #include "platform/testing/UnitTestHelpers.h" |
| 20 #include "public/platform/Platform.h" | 21 #include "public/platform/Platform.h" |
| 21 #include "public/platform/WebScheduler.h" | |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "v8/include/v8.h" | 23 #include "v8/include/v8.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 class ScriptStreamingTest : public ::testing::Test { | 29 class ScriptStreamingTest : public ::testing::Test { |
| 30 public: | 30 public: |
| 31 ScriptStreamingTest() | 31 ScriptStreamingTest() |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 | 430 |
| 431 pending_script_ = nullptr; | 431 pending_script_ = nullptr; |
| 432 ThreadState::Current()->CollectGarbage(BlinkGC::kNoHeapPointersOnStack, | 432 ThreadState::Current()->CollectGarbage(BlinkGC::kNoHeapPointersOnStack, |
| 433 BlinkGC::kGCWithSweep, | 433 BlinkGC::kGCWithSweep, |
| 434 BlinkGC::kForcedGC); | 434 BlinkGC::kForcedGC); |
| 435 } | 435 } |
| 436 | 436 |
| 437 } // namespace | 437 } // namespace |
| 438 | 438 |
| 439 } // namespace blink | 439 } // namespace blink |
| OLD | NEW |