1 // Copyright 2015 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include <memory> 6 7 #include "public/cpp/fpdf_scopers.h" 8 #include "testing/embedder_test.h" 9 #include "testing/gtest/include/gtest/gtest.h" 10 11 class FPDFRenderPatternEmbedderTest : public EmbedderTest {}; 12 TEST_F(FPDFRenderPatternEmbedderTest,LoadError_547706)13TEST_F(FPDFRenderPatternEmbedderTest, LoadError_547706) { 14 // Test shading where object is a dictionary instead of a stream. 15 EXPECT_TRUE(OpenDocument("bug_547706.pdf")); 16 FPDF_PAGE page = LoadPage(0); 17 ASSERT_TRUE(page); 18 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); 19 CompareBitmap(bitmap.get(), 612, 792, "1940568c9ba33bac5d0b1ee9558c76b3"); 20 UnloadPage(page); 21 } 22