summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_view_embeddertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdf_view_embeddertest.cpp')
-rw-r--r--fpdfsdk/fpdf_view_embeddertest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/fpdfsdk/fpdf_view_embeddertest.cpp b/fpdfsdk/fpdf_view_embeddertest.cpp
index 40e1c9df5d..9ba406a41c 100644
--- a/fpdfsdk/fpdf_view_embeddertest.cpp
+++ b/fpdfsdk/fpdf_view_embeddertest.cpp
@@ -133,6 +133,9 @@ TEST_F(FPDFViewEmbeddertest, ViewerRefDummy) {
char buf[100];
EXPECT_EQ(0U, FPDF_VIEWERREF_GetName(document(), "foo", nullptr, 0));
EXPECT_EQ(0U, FPDF_VIEWERREF_GetName(document(), "foo", buf, sizeof(buf)));
+
+ FPDF_PAGERANGE page_range = FPDF_VIEWERREF_GetPrintPageRange(document());
+ EXPECT_FALSE(page_range);
}
TEST_F(FPDFViewEmbeddertest, ViewerRef) {
@@ -172,6 +175,9 @@ TEST_F(FPDFViewEmbeddertest, ViewerRef) {
ASSERT_EQ(8U,
FPDF_VIEWERREF_GetName(document(), "ViewArea", buf, sizeof(buf)));
EXPECT_STREQ("CropBox", buf);
+
+ FPDF_PAGERANGE page_range = FPDF_VIEWERREF_GetPrintPageRange(document());
+ EXPECT_TRUE(page_range);
}
TEST_F(FPDFViewEmbeddertest, NamedDests) {