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 "public/cpp/fpdf_scopers.h"
6 #include "testing/embedder_test.h"
7 #include "testing/embedder_test_constants.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 
10 class FPDFRenderPatternEmbedderTest : public EmbedderTest {};
11 
TEST_F(FPDFRenderPatternEmbedderTest,LoadError_547706)12 TEST_F(FPDFRenderPatternEmbedderTest, LoadError_547706) {
13   // Test shading where object is a dictionary instead of a stream.
14   ASSERT_TRUE(OpenDocument("bug_547706.pdf"));
15   FPDF_PAGE page = LoadPage(0);
16   ASSERT_TRUE(page);
17   ScopedFPDFBitmap bitmap = RenderLoadedPage(page);
18   CompareBitmap(bitmap.get(), 612, 792, pdfium::kBlankPage612By792Checksum);
19   UnloadPage(page);
20 }
21