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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h

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/platform/scroll/ScrollbarTestSuite.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h b/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
index 6bb469fd2122046298c088d22d70046e044c9eb7..55012b10c8dfe698465d94f66096b91612c4788d 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
@@ -89,14 +89,13 @@ class ScrollbarTestSuite : public testing::Test {
void SetUp() override {
TestingPlatformSupport::Config config;
config.compositorSupport = Platform::current()->compositorSupport();
- m_fakePlatform =
- WTF::makeUnique<TestingPlatformSupportWithMockScheduler>(config);
+ m_fakePlatform.reset(
+ WTF::makeUnique<TestingPlatformSupportWithMockScheduler>(config));
}
- void TearDown() override { m_fakePlatform = nullptr; }
-
private:
- std::unique_ptr<TestingPlatformSupportWithMockScheduler> m_fakePlatform;
+ ScopedTestingPlatformSupport<TestingPlatformSupportWithMockScheduler>
+ m_fakePlatform;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698