Index: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp |
index a79f95da18af2cce2f82da4bae96dffd417f8721..f532ed74d67875cc3174b7e51375523f0e254d9c 100644 |
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp |
@@ -231,14 +231,15 @@ class RecordingImageBufferSurfaceTest : public Test { |
std::unique_ptr<ImageBuffer> m_imageBuffer; |
}; |
-#define CALL_TEST_TASK_WRAPPER(TEST_METHOD) \ |
- { \ |
- TestingPlatformSupportWithMockScheduler testingPlatform; \ |
- Platform::current()->currentThread()->getWebTaskRunner()->postTask( \ |
- BLINK_FROM_HERE, \ |
- WTF::bind(&RecordingImageBufferSurfaceTest::TEST_METHOD, \ |
- WTF::unretained(this))); \ |
- testingPlatform.runUntilIdle(); \ |
+#define CALL_TEST_TASK_WRAPPER(TEST_METHOD) \ |
+ { \ |
+ ScopedTestingPlatformSupport<TestingPlatformSupportWithMockScheduler> \ |
+ platform; \ |
+ Platform::current()->currentThread()->getWebTaskRunner()->postTask( \ |
+ BLINK_FROM_HERE, \ |
+ WTF::bind(&RecordingImageBufferSurfaceTest::TEST_METHOD, \ |
+ WTF::unretained(this))); \ |
+ platform->runUntilIdle(); \ |
} |
TEST_F(RecordingImageBufferSurfaceTest, testEmptyPicture) { |