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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp

Issue 2582903002: Use scoped REF test helpers for SPv2 and RootLayerScrolls. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp
index 67cf7b324ce4599d0f442390244db3ac22582ffe..0f55ae596b840d4495e13ba8cff0d75568932107 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp
@@ -4,8 +4,8 @@
#include "platform/graphics/paint/PaintChunker.h"
-#include "platform/RuntimeEnabledFeatures.h"
#include "platform/testing/PaintPropertyTestHelpers.h"
+#include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -16,13 +16,10 @@ using ::testing::ElementsAre;
namespace blink {
namespace {
-class PaintChunkerTest : public ::testing::Test {
- protected:
- void SetUp() override {
- RuntimeEnabledFeatures::setSlimmingPaintV2Enabled(true);
- }
-
- void TearDown() override { m_featuresBackup.restore(); }
+class PaintChunkerTest : public ::testing::Test,
+ private ScopedSlimmingPaintV2ForTest {
+ public:
+ PaintChunkerTest() : ScopedSlimmingPaintV2ForTest(true) {}
protected:
class TestDisplayItemClient : public DisplayItemClient {
@@ -30,9 +27,6 @@ class PaintChunkerTest : public ::testing::Test {
LayoutRect visualRect() const final { return LayoutRect(); }
};
TestDisplayItemClient m_client;
-
- private:
- RuntimeEnabledFeatures::Backup m_featuresBackup;
};
class TestDisplayItem : public DisplayItem {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698