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

Unified Diff: third_party/WebKit/Source/core/paint/VideoPainterTest.cpp

Issue 2307143002: Remove non-layer-list codepath from PaintArtifactCompositor (Closed)
Patch Set: Formatting cleanup Created 4 years, 3 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/core/paint/VideoPainterTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp b/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp
index c8887508953a245373b8659f380c086e5f707fc7..49a37a94fd09d493fe0bc3477705be51df943d64 100644
--- a/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/VideoPainterTest.cpp
@@ -85,12 +85,12 @@ public:
}
};
-class VideoPainterTestForSPv2 : public ::testing::TestWithParam<WebLayerTreeViewImplForTesting::LayerListPolicy> {
+class VideoPainterTestForSPv2 : public ::testing::Test {
protected:
void SetUp() override
{
RuntimeEnabledFeatures::setSlimmingPaintV2Enabled(true);
- m_chromeClient = new StubChromeClientForSPv2(GetParam());
+ m_chromeClient = new StubChromeClientForSPv2();
m_frameLoaderClient = new StubFrameLoaderClient;
Page::PageClients clients;
fillWithEmptyClients(clients);
@@ -117,11 +117,7 @@ private:
std::unique_ptr<DummyPageHolder> m_pageHolder;
};
-INSTANTIATE_TEST_CASE_P(, VideoPainterTestForSPv2, ::testing::Values(
- WebLayerTreeViewImplForTesting::DontUseLayerLists,
- WebLayerTreeViewImplForTesting::UseLayerLists));
-
-TEST_P(VideoPainterTestForSPv2, VideoLayerAppearsInLayerTree)
+TEST_F(VideoPainterTestForSPv2, VideoLayerAppearsInLayerTree)
{
// Insert a <video> and allow it to begin loading.
document().body()->setInnerHTML("<video width=300 height=200 src=test.ogv>", ASSERT_NO_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698