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

Side by Side Diff: third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerTest.cpp

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "core/loader/modulescript/ModuleTreeLinker.h" 5 #include "core/loader/modulescript/ModuleTreeLinker.h"
6 6
7 #include "bindings/core/v8/ScriptModule.h" 7 #include "bindings/core/v8/ScriptModule.h"
8 #include "bindings/core/v8/V8BindingForCore.h" 8 #include "bindings/core/v8/V8BindingForCore.h"
9 #include "bindings/core/v8/V8BindingForTesting.h" 9 #include "bindings/core/v8/V8BindingForTesting.h"
10 #include "bindings/core/v8/V8ThrowException.h"
11 #include "core/dom/Modulator.h" 10 #include "core/dom/Modulator.h"
12 #include "core/dom/ModuleScript.h" 11 #include "core/dom/ModuleScript.h"
13 #include "core/loader/modulescript/ModuleScriptFetchRequest.h" 12 #include "core/loader/modulescript/ModuleScriptFetchRequest.h"
14 #include "core/loader/modulescript/ModuleTreeLinkerRegistry.h" 13 #include "core/loader/modulescript/ModuleTreeLinkerRegistry.h"
15 #include "core/testing/DummyModulator.h" 14 #include "core/testing/DummyModulator.h"
16 #include "core/testing/DummyPageHolder.h" 15 #include "core/testing/DummyPageHolder.h"
17 #include "platform/bindings/ScriptState.h" 16 #include "platform/bindings/ScriptState.h"
17 #include "platform/bindings/V8ThrowException.h"
18 #include "platform/heap/Handle.h" 18 #include "platform/heap/Handle.h"
19 #include "platform/weborigin/KURL.h" 19 #include "platform/weborigin/KURL.h"
20 #include "platform/wtf/text/StringBuilder.h" 20 #include "platform/wtf/text/StringBuilder.h"
21 #include "public/platform/Platform.h" 21 #include "public/platform/Platform.h"
22 #include "public/platform/scheduler/renderer/renderer_scheduler.h" 22 #include "public/platform/scheduler/renderer/renderer_scheduler.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace blink { 25 namespace blink {
26 26
27 namespace { 27 namespace {
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 auto ancestor_list = GetModulator()->GetAncestorListForTreeFetch(url); 525 auto ancestor_list = GetModulator()->GetAncestorListForTreeFetch(url);
526 EXPECT_EQ(0u, ancestor_list.size()); 526 EXPECT_EQ(0u, ancestor_list.size());
527 527
528 EXPECT_TRUE(client->WasNotifyFinished()); 528 EXPECT_TRUE(client->WasNotifyFinished());
529 ASSERT_TRUE(client->GetModuleScript()); 529 ASSERT_TRUE(client->GetModuleScript());
530 EXPECT_EQ(client->GetModuleScript()->InstantiationState(), 530 EXPECT_EQ(client->GetModuleScript()->InstantiationState(),
531 ModuleInstantiationState::kInstantiated); 531 ModuleInstantiationState::kInstantiated);
532 } 532 }
533 533
534 } // namespace blink 534 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698