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

Side by Side Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp

Issue 2719813002: Rename classes that derived from EmptyLocalFrameClient. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/HTMLNames.h" 5 #include "core/HTMLNames.h"
6 #include "core/frame/FrameView.h" 6 #include "core/frame/FrameView.h"
7 #include "core/layout/LayoutTestHelper.h" 7 #include "core/layout/LayoutTestHelper.h"
8 #include "core/layout/LayoutView.h" 8 #include "core/layout/LayoutView.h"
9 #include "core/paint/PaintLayer.h" 9 #include "core/paint/PaintLayer.h"
10 #include "platform/graphics/GraphicsLayer.h" 10 #include "platform/graphics/GraphicsLayer.h"
11 #include "platform/graphics/paint/RasterInvalidationTracking.h" 11 #include "platform/graphics/paint/RasterInvalidationTracking.h"
12 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" 12 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class BoxPaintInvalidatorTest : public ::testing::WithParamInterface<bool>, 16 class BoxPaintInvalidatorTest : public ::testing::WithParamInterface<bool>,
17 private ScopedRootLayerScrollingForTest, 17 private ScopedRootLayerScrollingForTest,
18 public RenderingTest { 18 public RenderingTest {
19 public: 19 public:
20 BoxPaintInvalidatorTest() 20 BoxPaintInvalidatorTest()
21 : ScopedRootLayerScrollingForTest(GetParam()), 21 : ScopedRootLayerScrollingForTest(GetParam()),
22 RenderingTest(SingleChildFrameLoaderClient::create()) {} 22 RenderingTest(SingleChildLocalFrameClient::create()) {}
23 23
24 protected: 24 protected:
25 const RasterInvalidationTracking* getRasterInvalidationTracking() const { 25 const RasterInvalidationTracking* getRasterInvalidationTracking() const {
26 // TODO(wangxianzhu): Test SPv2. 26 // TODO(wangxianzhu): Test SPv2.
27 return layoutView() 27 return layoutView()
28 .layer() 28 .layer()
29 ->graphicsLayerBacking() 29 ->graphicsLayerBacking()
30 ->getRasterInvalidationTracking(); 30 ->getRasterInvalidationTracking();
31 } 31 }
32 32
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 getRasterInvalidationTracking()->trackedRasterInvalidations; 584 getRasterInvalidationTracking()->trackedRasterInvalidations;
585 ASSERT_EQ(1u, rasterInvalidations.size()); 585 ASSERT_EQ(1u, rasterInvalidations.size());
586 EXPECT_EQ(IntRect(0, 120, 70, 120), rasterInvalidations[0].rect); 586 EXPECT_EQ(IntRect(0, 120, 70, 120), rasterInvalidations[0].rect);
587 EXPECT_EQ(static_cast<const DisplayItemClient*>(target->layoutObject()), 587 EXPECT_EQ(static_cast<const DisplayItemClient*>(target->layoutObject()),
588 rasterInvalidations[0].client); 588 rasterInvalidations[0].client);
589 EXPECT_EQ(PaintInvalidationIncremental, rasterInvalidations[0].reason); 589 EXPECT_EQ(PaintInvalidationIncremental, rasterInvalidations[0].reason);
590 document().view()->setTracksPaintInvalidations(false); 590 document().view()->setTracksPaintInvalidations(false);
591 } 591 }
592 592
593 } // namespace blink 593 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContextTest.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698