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

Unified Diff: third_party/WebKit/Source/core/page/PrintContextTest.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 | « no previous file | third_party/WebKit/Source/web/PageOverlayTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/PrintContextTest.cpp
diff --git a/third_party/WebKit/Source/core/page/PrintContextTest.cpp b/third_party/WebKit/Source/core/page/PrintContextTest.cpp
index a6612f217b857ba29622892e347002244b5c0e04..17cad95726093f1c82d840e6ffb1263d41a2401c 100644
--- a/third_party/WebKit/Source/core/page/PrintContextTest.cpp
+++ b/third_party/WebKit/Source/core/page/PrintContextTest.cpp
@@ -37,7 +37,7 @@ class MockPrintContext : public PrintContext {
}
};
-class MockCanvas : public PaintCanvas {
+class MockCanvas : public SkCanvas {
public:
enum OperationType { DrawRect, DrawPoint };
@@ -46,7 +46,7 @@ class MockCanvas : public PaintCanvas {
SkRect rect;
};
- MockCanvas() : PaintCanvas(kPageWidth, kPageHeight) {}
+ MockCanvas() : SkCanvas(kPageWidth, kPageHeight) {}
void onDrawAnnotation(const SkRect& rect,
const char key[],
@@ -88,7 +88,7 @@ class PrintContextTest : public RenderingTest {
document().body()->setInnerHTML(bodyContent);
}
- void printSinglePage(PaintCanvas& canvas) {
+ void printSinglePage(MockCanvas& canvas) {
IntRect pageRect(0, 0, kPageWidth, kPageHeight);
printContext().begin(pageRect.width(), pageRect.height());
document().view()->updateAllLifecyclePhases();
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/PageOverlayTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698