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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.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/compositorworker/CompositorWorkerThreadTest.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
index 1747a4f3d50375c3a9688beb22a43fe679c6aada..921fc644c653c58a60e672afe0960b96bd5e0367 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
@@ -96,6 +96,7 @@ class CompositorWorkerTestPlatform : public TestingPlatformSupport {
class CompositorWorkerThreadTest : public ::testing::Test {
public:
void SetUp() override {
+ m_testPlatform.reset(WTF::makeUnique<CompositorWorkerTestPlatform>());
CompositorWorkerThread::createSharedBackingThreadForTest();
m_objectProxy = TestCompositorWorkerObjectProxy::create();
m_securityOrigin =
@@ -143,7 +144,7 @@ class CompositorWorkerThreadTest : public ::testing::Test {
RefPtr<SecurityOrigin> m_securityOrigin;
std::unique_ptr<InProcessWorkerObjectProxy> m_objectProxy;
- CompositorWorkerTestPlatform m_testPlatform;
+ ScopedTestingPlatformSupport<CompositorWorkerTestPlatform> m_testPlatform;
};
TEST_F(CompositorWorkerThreadTest, Basic) {

Powered by Google App Engine
This is Rietveld 408576698