OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "modules/webaudio/AudioWorkletThread.h" | 5 #include "modules/webaudio/AudioWorkletThread.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include "bindings/core/v8/ScriptSourceCode.h" | 8 #include "bindings/core/v8/ScriptSourceCode.h" |
9 #include "bindings/core/v8/SourceLocation.h" | 9 #include "bindings/core/v8/SourceLocation.h" |
10 #include "bindings/core/v8/V8GCController.h" | 10 #include "bindings/core/v8/V8GCController.h" |
11 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" | 11 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
12 #include "core/inspector/ConsoleMessage.h" | 12 #include "core/inspector/ConsoleMessage.h" |
13 #include "core/workers/WorkerBackingThread.h" | 13 #include "core/workers/WorkerBackingThread.h" |
14 #include "core/workers/WorkerLoaderProxy.h" | |
15 #include "core/workers/WorkerOrWorkletGlobalScope.h" | 14 #include "core/workers/WorkerOrWorkletGlobalScope.h" |
16 #include "core/workers/WorkerReportingProxy.h" | 15 #include "core/workers/WorkerReportingProxy.h" |
17 #include "core/workers/WorkerThreadStartupData.h" | 16 #include "core/workers/WorkerThreadStartupData.h" |
18 #include "platform/CrossThreadFunctional.h" | 17 #include "platform/CrossThreadFunctional.h" |
19 #include "platform/WaitableEvent.h" | 18 #include "platform/WaitableEvent.h" |
20 #include "platform/WebThreadSupportingGC.h" | 19 #include "platform/WebThreadSupportingGC.h" |
21 #include "platform/heap/Handle.h" | 20 #include "platform/heap/Handle.h" |
22 #include "platform/testing/TestingPlatformSupport.h" | 21 #include "platform/testing/TestingPlatformSupport.h" |
23 #include "platform/testing/UnitTestHelpers.h" | 22 #include "platform/testing/UnitTestHelpers.h" |
24 #include "platform/wtf/PtrUtil.h" | 23 #include "platform/wtf/PtrUtil.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 ASSERT_TRUE(second_isolate); | 161 ASSERT_TRUE(second_isolate); |
163 EXPECT_EQ(first_isolate, second_isolate); | 162 EXPECT_EQ(first_isolate, second_isolate); |
164 | 163 |
165 // Verify that the isolate can run some scripts correctly in the second | 164 // Verify that the isolate can run some scripts correctly in the second |
166 // worklet. | 165 // worklet. |
167 CheckWorkletCanExecuteScript(second_worklet.get()); | 166 CheckWorkletCanExecuteScript(second_worklet.get()); |
168 second_worklet->TerminateAndWait(); | 167 second_worklet->TerminateAndWait(); |
169 } | 168 } |
170 | 169 |
171 } // namespace blink | 170 } // namespace blink |
OLD | NEW |