summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfedit_embeddertest.cpp
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-25 12:59:29 +0200
committerChromium commit bot <commit-bot@chromium.org>2017-09-25 12:44:35 +0000
commit92627618a93720c6153828b8a8d1c6ed17c6e91f (patch)
tree9a9eb6b76ff402da02bd68ffc5e321967b3da4c5 /fpdfsdk/fpdfedit_embeddertest.cpp
parentf5777a117a7557507616eaf585de5eb266531e16 (diff)
downloadpdfium-92627618a93720c6153828b8a8d1c6ed17c6e91f.tar.xz
API: rename FPDFPage_CountObject() to FPDFPage_CountObjects()
Keep the old name, but mark it as deprecated and don't use it in own code. Change-Id: I17b88dccacf494a03562c0d003cfcb2bc03bf430 Reviewed-on: https://pdfium-review.googlesource.com/14750 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfedit_embeddertest.cpp')
-rw-r--r--fpdfsdk/fpdfedit_embeddertest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfedit_embeddertest.cpp b/fpdfsdk/fpdfedit_embeddertest.cpp
index f8c053a6ad..44d5aaf438 100644
--- a/fpdfsdk/fpdfedit_embeddertest.cpp
+++ b/fpdfsdk/fpdfedit_embeddertest.cpp
@@ -1021,7 +1021,7 @@ TEST_F(FPDFEditEmbeddertest, ExtractImageBitmap) {
ASSERT_TRUE(OpenDocument("embedded_images.pdf"));
FPDF_PAGE page = LoadPage(0);
ASSERT_TRUE(page);
- ASSERT_EQ(39, FPDFPage_CountObject(page));
+ ASSERT_EQ(39, FPDFPage_CountObjects(page));
FPDF_PAGEOBJECT obj = FPDFPage_GetObject(page, 32);
EXPECT_NE(FPDF_PAGEOBJ_IMAGE, FPDFPageObj_GetType(obj));
@@ -1075,7 +1075,7 @@ TEST_F(FPDFEditEmbeddertest, GetImageData) {
EXPECT_TRUE(OpenDocument("embedded_images.pdf"));
FPDF_PAGE page = LoadPage(0);
ASSERT_TRUE(page);
- ASSERT_EQ(39, FPDFPage_CountObject(page));
+ ASSERT_EQ(39, FPDFPage_CountObjects(page));
// Retrieve an image object with flate-encoded data stream.
FPDF_PAGEOBJECT obj = FPDFPage_GetObject(page, 33);