Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp |
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp |
index 551005152cb1f4df5feb938782ca4236a1c40ae8..7478fa51acbc146f5353659bd7e295b0f4509cb1 100644 |
--- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp |
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp |
@@ -85,6 +85,7 @@ class AnimationWorkletTestPlatform : public TestingPlatformSupport { |
class AnimationWorkletThreadTest : public ::testing::Test { |
public: |
void SetUp() override { |
+ m_testPlatform.reset(WTF::makeUnique<AnimationWorkletTestPlatform>()); |
AnimationWorkletThread::createSharedBackingThreadForTest(); |
m_reportingProxy = TestAnimationWorkletReportingProxy::create(); |
m_securityOrigin = |
@@ -128,7 +129,7 @@ class AnimationWorkletThreadTest : public ::testing::Test { |
RefPtr<SecurityOrigin> m_securityOrigin; |
std::unique_ptr<WorkerReportingProxy> m_reportingProxy; |
- AnimationWorkletTestPlatform m_testPlatform; |
+ ScopedTestingPlatformSupport<AnimationWorkletTestPlatform> m_testPlatform; |
}; |
TEST_F(AnimationWorkletThreadTest, Basic) { |