From 53aafa99985e93c527ea2803400f250025cc7f01 Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Wed, 12 Jul 2017 19:55:02 -0400 Subject: 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 Reviewed-by: dsinclair --- fpdfsdk/fpdfview_c_api_test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fpdfsdk/fpdfview_c_api_test.c') 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); -- cgit v1.2.3