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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add some layout tests Created 3 years, 8 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 a4fdd9a621ac9e6189eff363f58aab2873344f59..d985b749bdb33d75fc12eb278e6d5f3b701d391b 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
@@ -218,10 +218,10 @@ class AudioWorkletGlobalScopeTest : public ::testing::Test {
AudioBuffer::create(1, kRenderQuantumFrames, kTestingSampleRate);
AudioBuffer* outputBuffer =
AudioBuffer::create(1, kRenderQuantumFrames, kTestingSampleRate);
- DOMFloat32Array* inputChannelData = inputBuffer->getChannelData(0);
+ DOMFloat32Array* inputChannelData = inputBuffer->getChannelData(0).view();
float* inputArrayData = inputChannelData->data();
EXPECT_TRUE(inputArrayData);
- DOMFloat32Array* outputChannelData = outputBuffer->getChannelData(0);
+ DOMFloat32Array* outputChannelData = outputBuffer->getChannelData(0).view();
float* outputArrayData = outputChannelData->data();
EXPECT_TRUE(outputArrayData);

Powered by Google App Engine
This is Rietveld 408576698