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

Unified Diff: third_party/WebKit/Source/web/PageOverlayTest.cpp

Issue 2715793002: Change mock canvases to paint into SkCanvas (Closed)
Patch Set: Fix deps Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContextTest.cpp ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/PageOverlayTest.cpp
diff --git a/third_party/WebKit/Source/web/PageOverlayTest.cpp b/third_party/WebKit/Source/web/PageOverlayTest.cpp
index 36e698caf734f7fe1ac2e6588ee7ef13fd9d834b..24acc0704211f28018f83f6c69b2e64d09378855 100644
--- a/third_party/WebKit/Source/web/PageOverlayTest.cpp
+++ b/third_party/WebKit/Source/web/PageOverlayTest.cpp
@@ -109,10 +109,10 @@ class RuntimeFeatureChange {
bool m_oldValue;
};
-class MockCanvas : public PaintCanvas {
+class MockCanvas : public SkCanvas {
public:
- MockCanvas(int width, int height) : PaintCanvas(width, height) {}
- MOCK_METHOD2(onDrawRect, void(const SkRect&, const PaintFlags&));
+ MockCanvas(int width, int height) : SkCanvas(width, height) {}
+ MOCK_METHOD2(onDrawRect, void(const SkRect&, const SkPaint&));
};
TEST_F(PageOverlayTest, PageOverlay_AcceleratedCompositing) {
@@ -132,7 +132,7 @@ TEST_F(PageOverlayTest, PageOverlay_AcceleratedCompositing) {
EXPECT_CALL(canvas, onDrawRect(_, _)).Times(AtLeast(0));
EXPECT_CALL(canvas,
onDrawRect(SkRect::MakeWH(viewportWidth, viewportHeight),
- Property(&PaintFlags::getColor, SK_ColorYELLOW)));
+ Property(&SkPaint::getColor, SK_ColorYELLOW)));
GraphicsLayer* graphicsLayer = pageOverlay->graphicsLayer();
WebRect rect(0, 0, viewportWidth, viewportHeight);
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContextTest.cpp ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698