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

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

Issue 2588403002: TestingPlatformSupport: register Platform instance correctly (Closed)
Patch Set: new plan Created 4 years 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/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) {

Powered by Google App Engine
This is Rietveld 408576698