summaryrefslogtreecommitdiffstats
path: root/chrome/test/unit
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-23 03:09:52 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-23 03:09:52 +0000
commitfa8a2b1b050009d67e03cf03a26d7d558afe0ecb (patch)
tree09108ff8271c1ca005d439213db16a784977175f /chrome/test/unit
parentb6b60c9b2afa70010fe38ed7c753f4c8e37e7131 (diff)
downloadchromium_src-fa8a2b1b050009d67e03cf03a26d7d558afe0ecb.zip
chromium_src-fa8a2b1b050009d67e03cf03a26d7d558afe0ecb.tar.gz
chromium_src-fa8a2b1b050009d67e03cf03a26d7d558afe0ecb.tar.bz2
Adds a RenderViewTest.PrintLayoutTest.
This change adds a new test 'RenderViewTest.PrintLayoutTest', which prints an HTML page and verify its output. To process a print job and verify its output, this change adds a pseudo-printer device "MockPrinter" into the MockRenderThread object. This MockPrinter object receives print-related IPC messages, process print jobs, and store the MD5 checksum of the output data. The current RenderViewTest.PrintLayoutTest retrieves the MD5 checksum values and just compare them with expected values. Nevertheless, please feel free to give me your ideas to improve this test. Finally, this change is inspired by PrintingLayoutTextTests (created by maruel) and a RenderViewTest.OnPrintPages (created by Mohamed Mansour). I would like to express my best gratitude to them. BUG=none TEST=none Review URL: http://codereview.chromium.org/100255 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/unit')
-rw-r--r--chrome/test/unit/unittests.vcproj16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/test/unit/unittests.vcproj b/chrome/test/unit/unittests.vcproj
index 6d967e4..d99a072 100644
--- a/chrome/test/unit/unittests.vcproj
+++ b/chrome/test/unit/unittests.vcproj
@@ -973,6 +973,22 @@
>
</File>
<File
+ RelativePath="..\..\renderer\mock_printer.cc"
+ >
+ </File>
+ <File
+ RelativePath="..\..\renderer\mock_printer.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\renderer\mock_printer_driver_win.cc"
+ >
+ </File>
+ <File
+ RelativePath="..\..\renderer\mock_printer_driver_win.h"
+ >
+ </File>
+ <File
RelativePath="..\..\renderer\mock_render_process.h"
>
</File>