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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.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/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..c3eed7ee469fa75b80962960a3a8e7d2d6b1e46f 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(new 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) {

Powered by Google App Engine
This is Rietveld 408576698