From 9ccf08746e57a03fd9afc187cb3e23404cdc88bb Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 19 Dec 2017 18:50:15 +0000 Subject: Add missing fpdfview_c_api_test.c entries. Add a presubmit check to prevent future missing entries. Also fix an erroneous header entry. Change-Id: I8aeafd820de984f5af90b3e4ea428f582e82f254 Reviewed-on: https://pdfium-review.googlesource.com/21571 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- fpdfsdk/fpdfview_c_api_test.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index 1526ffa8ae..de4fa1c564 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -59,6 +59,7 @@ int CheckPDFiumCApi() { CHK(FPDFAnnot_SetRect); CHK(FPDFAnnot_GetRect); CHK(FPDFAnnot_HasKey); + CHK(FPDFAnnot_GetValueType); CHK(FPDFAnnot_SetStringValue); CHK(FPDFAnnot_GetStringValue); CHK(FPDFAnnot_GetLinkedAnnot); @@ -71,6 +72,7 @@ int CheckPDFiumCApi() { CHK(FPDFDoc_GetAttachmentCount); CHK(FPDFDoc_AddAttachment); CHK(FPDFDoc_GetAttachment); + CHK(FPDFDoc_DeleteAttachment); CHK(FPDFAttachment_GetName); CHK(FPDFAttachment_HasKey); CHK(FPDFAttachment_GetValueType); @@ -210,6 +212,9 @@ int CheckPDFiumCApi() { CHK(FPDF_SetFormFieldHighlightAlpha); CHK(FPDF_RemoveFormFieldHighlight); CHK(FPDF_FFLDraw); +#ifdef _SKIA_SUPPORT_ + CHK(FPDF_FFLRecord); +#endif CHK(FPDF_GetFormType); #ifdef PDF_ENABLE_XFA CHK(FPDF_LoadXFA); @@ -251,6 +256,7 @@ int CheckPDFiumCApi() { CHK(FPDF_StructTree_GetChildAtIndex); CHK(FPDF_StructElement_GetAltText); CHK(FPDF_StructElement_GetType); + CHK(FPDF_StructElement_GetTitle); CHK(FPDF_StructElement_CountChildren); CHK(FPDF_StructElement_GetChildAtIndex); @@ -303,6 +309,14 @@ int CheckPDFiumCApi() { CHK(FPDF_InitLibraryWithConfig); CHK(FPDF_DestroyLibrary); CHK(FPDF_SetSandBoxPolicy); +#if defined(_WIN32) +#if defined(PDFIUM_PRINT_TEXT_WITH_GDI) + CHK(FPDF_SetTypefaceAccessibleFunc); + CHK(FPDF_SetPrintTextWithGDI); +#endif + CHK(FPDF_SetPrintPostscriptLevel); + CHK(FPDF_SetPrintMode); +#endif CHK(FPDF_LoadDocument); CHK(FPDF_LoadMemDocument); CHK(FPDF_LoadCustomDocument); @@ -315,8 +329,14 @@ int CheckPDFiumCApi() { CHK(FPDF_GetPageWidth); CHK(FPDF_GetPageHeight); CHK(FPDF_GetPageSizeByIndex); +#ifdef _WIN32 + CHK(FPDF_RenderPage); +#endif CHK(FPDF_RenderPageBitmap); CHK(FPDF_RenderPageBitmapWithMatrix); +#ifdef _SKIA_SUPPORT_ + CHK(FPDF_RenderPageSkp); +#endif CHK(FPDF_ClosePage); CHK(FPDF_CloseDocument); CHK(FPDF_DeviceToPage); -- cgit v1.2.3