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_ext_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/fpdf_ext.h"
6
#
include
"public/fpdfview.h"
7
#
include
"testing/embedder_test.h"
8
#
include
"testing/gtest/include/gtest/gtest.h"
9
10
class
FPDFExtEmbedderTest
:
public
EmbedderTest
{};
11
12
TEST_F
(
FPDFExtEmbedderTest
,
PageModeUnknown
) {
13
EXPECT_EQ(
PAGEMODE_UNKNOWN
,
FPDFDoc_GetPageMode
(
nullptr
)
);
14
}
15
16
TEST_F
(
FPDFExtEmbedderTest
,
PageModeUseNone
) {
17
ASSERT_TRUE(OpenDocument(
"hello_world.pdf"
));
18
EXPECT_EQ(
PAGEMODE_USENONE
, FPDFDoc_GetPageMode(document()));
19
}
20
21
TEST_F
(
FPDFExtEmbedderTest
,
PageModeUseOutlines
) {
22
ASSERT_TRUE(OpenDocument(
"use_outlines.pdf"
));
23
EXPECT_EQ(
PAGEMODE_USEOUTLINES
, FPDFDoc_GetPageMode(document()));
24
}
EmbedderTest
Definition
embedder_test.h:39
FPDFExtEmbedderTest
Definition
fpdf_ext_embeddertest.cpp:10
FPDFDoc_GetPageMode
FPDF_EXPORT int FPDF_CALLCONV FPDFDoc_GetPageMode(FPDF_DOCUMENT document)
Definition
fpdf_ext.cpp:84
PAGEMODE_UNKNOWN
#define PAGEMODE_UNKNOWN
Definition
fpdf_ext.h:92
PAGEMODE_USENONE
#define PAGEMODE_USENONE
Definition
fpdf_ext.h:94
PAGEMODE_USEOUTLINES
#define PAGEMODE_USEOUTLINES
Definition
fpdf_ext.h:96
TEST_F
TEST_F(FPDFExtEmbedderTest, PageModeUnknown)
Definition
fpdf_ext_embeddertest.cpp:12
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fpdfsdk
fpdf_ext_embeddertest.cpp
Generated on Sat Sep 21 2024 00:57:22 for Qt by
1.12.0