summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview_c_api_test.c
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-07-12 19:55:02 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-13 14:07:05 +0000
commit53aafa99985e93c527ea2803400f250025cc7f01 (patch)
treed7a9597118a377baf9fe296b42d7baa48cca1ee0 /fpdfsdk/fpdfview_c_api_test.c
parent0b6e9aed1756d19ed812895208be5cae5633325b (diff)
downloadpdfium-53aafa99985e93c527ea2803400f250025cc7f01.tar.xz
Basic APIs and test for retrieving embedded attachment count and name
1. Added APIs for retrieving embedded attachment count and file name. * Added an embedder test testing them. Bug=pdfium:174 Change-Id: I181b8e0b81495d8a7fd8c3f79dbbc0f907f5e3fd Reviewed-on: https://pdfium-review.googlesource.com/7490 Commit-Queue: Jane Liu <janeliulwq@google.com> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r--fpdfsdk/fpdfview_c_api_test.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c
index 1c066dd295..2fcaf7455f 100644
--- a/fpdfsdk/fpdfview_c_api_test.c
+++ b/fpdfsdk/fpdfview_c_api_test.c
@@ -10,6 +10,7 @@
#include "fpdfsdk/fpdfview_c_api_test.h"
#include "public/fpdf_annot.h"
+#include "public/fpdf_attachment.h"
#include "public/fpdf_dataavail.h"
#include "public/fpdf_doc.h"
#include "public/fpdf_edit.h"
@@ -34,7 +35,7 @@ fnptr g_c_api_test_fnptr = NULL; // Extern, so can't know it doesn't change.
// Function to call from gtest harness to ensure linker resolution.
int CheckPDFiumCApi() {
- //fpdf_annot.h
+ // fpdf_annot.h
CHK(FPDFAnnot_IsSupportedSubtype);
CHK(FPDFPage_CreateAnnot);
CHK(FPDFPage_GetAnnotCount);
@@ -61,6 +62,10 @@ int CheckPDFiumCApi() {
CHK(FPDFAnnot_GetFlags);
CHK(FPDFAnnot_SetFlags);
+ // fpdf_attachment.h
+ CHK(FPDFDoc_GetAttachmentCount);
+ CHK(FPDFDoc_GetAttachmentName);
+
// fpdf_dataavail.h
CHK(FPDFAvail_Create);
CHK(FPDFAvail_Destroy);