From 0efab9428fe9fe0a1af4f8eba9fabb78b1eee44a Mon Sep 17 00:00:00 2001 From: thestig Date: Wed, 29 Jun 2016 06:47:46 -0700 Subject: Disable failing embedder tests for Skia builds. BUG=pdfium:525,pdfium:526 Review-Url: https://codereview.chromium.org/2106043002 --- core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp | 7 ++++++- core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp b/core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp index 5c6a8c513f..bbaf7b389d 100644 --- a/core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp +++ b/core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp @@ -7,7 +7,12 @@ class FPDFRenderLoadImageEmbeddertest : public EmbedderTest {}; -TEST_F(FPDFRenderLoadImageEmbeddertest, Bug_554151) { +#if defined(_SKIA_SUPPORT_) +#define MAYBE_Bug_554151 DISABLED_Bug_554151 +#else +#define MAYBE_Bug_554151 Bug_554151 +#endif +TEST_F(FPDFRenderLoadImageEmbeddertest, MAYBE_Bug_554151) { // Test scanline downsampling with a BitsPerComponent of 4. // Should not crash. EXPECT_TRUE(OpenDocument("bug_554151.pdf")); diff --git a/core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp b/core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp index 176c923372..48fe352fe7 100644 --- a/core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp +++ b/core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp @@ -7,7 +7,12 @@ class FPDFRenderPatternEmbeddertest : public EmbedderTest {}; -TEST_F(FPDFRenderPatternEmbeddertest, LoadError_547706) { +#if defined(_SKIA_SUPPORT_) +#define MAYBE_LoadError_547706 DISABLED_LoadError_547706 +#else +#define MAYBE_LoadError_547706 LoadError_547706 +#endif +TEST_F(FPDFRenderPatternEmbeddertest, MAYBE_LoadError_547706) { // Test shading where object is a dictionary instead of a stream. EXPECT_TRUE(OpenDocument("bug_547706.pdf")); FPDF_PAGE page = LoadPage(0); -- cgit v1.2.3