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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp

Issue 2856743002: Clean up bindings/core/v8 (Part 4) (Closed)
Patch Set: Rebase 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 "modules/webaudio/AudioWorkletGlobalScope.h" 5 #include "modules/webaudio/AudioWorkletGlobalScope.h"
6 6
7 #include "bindings/core/v8/ScriptSourceCode.h" 7 #include "bindings/core/v8/ScriptSourceCode.h"
8 #include "bindings/core/v8/ScriptValue.h" 8 #include "bindings/core/v8/ScriptValue.h"
9 #include "bindings/core/v8/SourceLocation.h" 9 #include "bindings/core/v8/SourceLocation.h"
10 #include "bindings/core/v8/ToV8ForCore.h" 10 #include "bindings/core/v8/ToV8ForCore.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/V8BindingMacros.h"
14 #include "bindings/core/v8/V8GCController.h" 13 #include "bindings/core/v8/V8GCController.h"
15 #include "bindings/core/v8/V8ObjectConstructor.h"
16 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" 14 #include "bindings/core/v8/WorkerOrWorkletScriptController.h"
17 #include "core/dom/TaskRunnerHelper.h" 15 #include "core/dom/TaskRunnerHelper.h"
18 #include "core/workers/WorkerBackingThread.h" 16 #include "core/workers/WorkerBackingThread.h"
19 #include "core/workers/WorkerReportingProxy.h" 17 #include "core/workers/WorkerReportingProxy.h"
20 #include "core/workers/WorkerThreadStartupData.h" 18 #include "core/workers/WorkerThreadStartupData.h"
21 #include "modules/webaudio/AudioBuffer.h" 19 #include "modules/webaudio/AudioBuffer.h"
22 #include "modules/webaudio/AudioWorkletProcessor.h" 20 #include "modules/webaudio/AudioWorkletProcessor.h"
23 #include "modules/webaudio/AudioWorkletProcessorDefinition.h" 21 #include "modules/webaudio/AudioWorkletProcessorDefinition.h"
24 #include "modules/webaudio/AudioWorkletThread.h" 22 #include "modules/webaudio/AudioWorkletThread.h"
25 #include "platform/bindings/ScriptState.h" 23 #include "platform/bindings/ScriptState.h"
24 #include "platform/bindings/V8BindingMacros.h"
25 #include "platform/bindings/V8ObjectConstructor.h"
26 #include "platform/weborigin/SecurityOrigin.h" 26 #include "platform/weborigin/SecurityOrigin.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 namespace { 31 namespace {
32 32
33 static const size_t kRenderQuantumFrames = 128; 33 static const size_t kRenderQuantumFrames = 128;
34 34
35 // This is a typical sample rate. 35 // This is a typical sample rate.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 thread->TerminateAndWait(); 261 thread->TerminateAndWait();
262 } 262 }
263 263
264 TEST_F(AudioWorkletGlobalScopeTest, BufferProcessing) { 264 TEST_F(AudioWorkletGlobalScopeTest, BufferProcessing) {
265 std::unique_ptr<AudioWorkletThread> thread = CreateAudioWorkletThread(); 265 std::unique_ptr<AudioWorkletThread> thread = CreateAudioWorkletThread();
266 RunSimpleProcessTest(thread.get()); 266 RunSimpleProcessTest(thread.get());
267 thread->TerminateAndWait(); 267 thread->TerminateAndWait();
268 } 268 }
269 269
270 } // namespace blink 270 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698