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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp

Issue 2793593002: AudioWorklet prototype
Patch Set: Merge changes, AudioParam bug fix Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
index dce023870d427f21d3f80c3a431cd092f801b99c..a9c46f5f5edde56aad1eef47371ee5f30344e8e4 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
@@ -21,6 +21,7 @@
#include "modules/webaudio/AudioWorkletProcessor.h"
#include "modules/webaudio/AudioWorkletProcessorDefinition.h"
#include "modules/webaudio/AudioWorkletThread.h"
+#include "platform/audio/AudioArray.h"
#include "platform/bindings/ScriptState.h"
#include "platform/bindings/V8BindingMacros.h"
#include "platform/bindings/V8ObjectConstructor.h"
@@ -251,7 +252,8 @@ class AudioWorkletGlobalScopeTest : public ::testing::Test {
// Then invoke the process() method to perform JS buffer manipulation. The
// output buffer should contain a constant value of 2.
- processor->Process(input_buffer, output_buffer);
+ HashMap<String, AudioFloatArray*> audio_param_data_map;
+ processor->Process(input_buffer, output_buffer, audio_param_data_map);
for (unsigned i = 0; i < output_buffer->length(); ++i) {
EXPECT_EQ(output_array_data[i], 2);
}

Powered by Google App Engine
This is Rietveld 408576698