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

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

Issue 2588403002: TestingPlatformSupport: register Platform instance correctly (Closed)
Patch Set: review #16 and merge master Created 3 years, 11 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/BaseAudioContextTest.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
index 0e76d24655733aa96881966f26f2e2020cd091dc..883cab659be6c3a96740116c00107c1235c1d991 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
@@ -18,6 +18,7 @@
#include "platform/testing/TestingPlatformSupport.h"
#include "public/platform/WebAudioDevice.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -80,6 +81,7 @@ class BaseAudioContextTest : public ::testing::Test {
using AutoplayStatus = BaseAudioContext::AutoplayStatus;
void SetUp() override {
+ m_testPlatform.reset(WTF::makeUnique<BaseAudioContextTestPlatform>());
m_dummyPageHolder = DummyPageHolder::create();
m_dummyFrameOwner = DummyFrameOwner::create();
document().updateSecurityOrigin(
@@ -124,7 +126,7 @@ class BaseAudioContextTest : public ::testing::Test {
Persistent<LocalFrame> m_childFrame;
- BaseAudioContextTestPlatform m_testPlatform;
+ ScopedTestingPlatformSupport<BaseAudioContextTestPlatform> m_testPlatform;
};
TEST_F(BaseAudioContextTest, AutoplayMetrics_NoRestriction) {

Powered by Google App Engine
This is Rietveld 408576698