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
jbig2_embeddertest.cpp
Go to the documentation of this file.
1
// Copyright 2016 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/gtest/include/gtest/gtest.h"
8
9
class
JBig2EmbedderTest
:
public
EmbedderTest
{};
10
11
#
if
defined
(
PDF_USE_SKIA
)
12
// TODO(crbug.com/pdfium/11): Fix this test and enable.
13
#
define
MAYBE_Bug_631912
DISABLED_Bug_631912
14
#
else
15
#
define
MAYBE_Bug_631912
Bug_631912
16
#
endif
17
TEST_F
(
JBig2EmbedderTest
,
MAYBE_Bug_631912
) {
18
// Test jbig2 image in PDF file can be loaded successfully.
19
// Should not crash.
20
ASSERT_TRUE(OpenDocument(
"bug_631912.pdf"
));
21
FPDF_PAGE page = LoadPage(0);
22
ASSERT_TRUE(page);
23
ScopedFPDFBitmap bitmap = RenderLoadedPage(page);
24
CompareBitmap(bitmap.get(), 691, 432,
"726c2b8c89df0ab40627322d1dddd521"
);
25
UnloadPage(page);
26
}
EmbedderTest
Definition
embedder_test.h:39
JBig2EmbedderTest
Definition
jbig2_embeddertest.cpp:9
MAYBE_Bug_631912
#define MAYBE_Bug_631912
Definition
jbig2_embeddertest.cpp:15
TEST_F
TEST_F(JBig2EmbedderTest, MAYBE_Bug_631912)
Definition
jbig2_embeddertest.cpp:17
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcodec
jbig2
jbig2_embeddertest.cpp
Generated on Sat Sep 21 2024 00:54:39 for Qt by
1.12.0