Index: chrome/renderer/printing/print_web_view_helper_browsertest.cc |
diff --git a/chrome/renderer/printing/print_web_view_helper_browsertest.cc b/chrome/renderer/printing/print_web_view_helper_browsertest.cc |
index 0b36227c56e8502078de3d179e3d4e7ccc75a0a1..b812dc53d01a512df680797c6b68a4b1c6aee8b4 100644 |
--- a/chrome/renderer/printing/print_web_view_helper_browsertest.cc |
+++ b/chrome/renderer/printing/print_web_view_helper_browsertest.cc |
@@ -317,7 +317,7 @@ TEST_F(PrintWebViewHelperTest, BlockScriptInitiatedPrintingFromPopup) { |
VerifyPagesPrinted(true); |
} |
-#if defined(OS_WIN) || defined(OS_MACOSX) |
+#if (defined(OS_WIN) && !WIN_PDF_METAFILE_FOR_PRINTING) || defined(OS_MACOSX) |
// TODO(estade): I don't think this test is worth porting to Linux. We will have |
// to rip out and replace most of the IPC code if we ever plan to improve |
// printing, and the comment below by sverrir suggests that it doesn't do much |
@@ -403,7 +403,8 @@ const TestPageData kTestPages[] = { |
// TODO(estade): need to port MockPrinter to get this on Linux. This involves |
// hooking up Cairo to read a pdf stream, or accessing the cairo surface in the |
// metafile directly. |
-#if defined(OS_WIN) || defined(OS_MACOSX) |
+// Same for printing via PDF on Windows. |
+#if (defined(OS_WIN) && !WIN_PDF_METAFILE_FOR_PRINTING) || defined(OS_MACOSX) |
TEST_F(PrintWebViewHelperTest, PrintLayoutTest) { |
bool baseline = false; |