Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_render_pattern_embeddertest.cpp
Go to the documentation of this file.
1
// Copyright 2015 The PDFium Authors
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
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
}
EmbedderTest
Definition
embedder_test.h:39
FPDFRenderPatternEmbedderTest
Definition
fpdf_render_pattern_embeddertest.cpp:10
TEST_F
TEST_F(FPDFRenderPatternEmbedderTest, LoadError_547706)
Definition
fpdf_render_pattern_embeddertest.cpp:12
pdfium::kBlankPage612By792Checksum
const char kBlankPage612By792Checksum[]
Definition
embedder_test_constants.cpp:29
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
render
fpdf_render_pattern_embeddertest.cpp
Generated on Sat Sep 21 2024 00:53:52 for Qt by
1.12.0