Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp |
index cf60f794230812462c0af56b947fc3e7bb982446..ef6ca0d27ef2caa2dd87a4f03b05c72248f8c385 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp |
@@ -80,6 +80,7 @@ class BaseAudioContextTest : public ::testing::Test { |
using AutoplayStatus = BaseAudioContext::AutoplayStatus; |
void SetUp() override { |
+ m_testPlatform.reset(new BaseAudioContextTestPlatform); |
m_dummyPageHolder = DummyPageHolder::create(); |
m_dummyFrameOwner = DummyFrameOwner::create(); |
document().updateSecurityOrigin( |
@@ -131,7 +132,7 @@ class BaseAudioContextTest : public ::testing::Test { |
Persistent<LocalFrame> m_childFrame; |
Persistent<DocumentLoader> m_childDocumentLoader; |
- BaseAudioContextTestPlatform m_testPlatform; |
+ ScopedTestingPlatformSupport<BaseAudioContextTestPlatform> m_testPlatform; |
}; |
TEST_F(BaseAudioContextTest, AutoplayMetrics_NoRestriction) { |