diff options
author | Jane Liu <janeliulwq@google.com> | 2017-07-24 16:40:54 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-24 21:19:22 +0000 |
commit | 54a4214c86bc790cc2a3ae454b1aa709e868fa1a (patch) | |
tree | ebd92341381e3a16d386caf5280bc7626925b910 /fpdfsdk/fpdfview_c_api_test.c | |
parent | 6a388c1595522e26a633fbed1022752f4c80ac0c (diff) | |
download | pdfium-54a4214c86bc790cc2a3ae454b1aa709e868fa1a.tar.xz |
Basic APIs and tests for adding attachments
1. Added APIs for adding attachments, setting attachment files, and
modifying attachment dictionary entries.
* Added two embedder tests covering all new APIs.
Bug=pdfium:174
Change-Id: I65f43cd6ca4887b71f9f7bcee64a87ba6b7e2706
Reviewed-on: https://pdfium-review.googlesource.com/8671
Commit-Queue: Jane Liu <janeliulwq@google.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r-- | fpdfsdk/fpdfview_c_api_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index 97bacbba54..95a0175999 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -66,11 +66,14 @@ int CheckPDFiumCApi() { // fpdf_attachment.h CHK(FPDFDoc_GetAttachmentCount); + CHK(FPDFDoc_AddAttachment); CHK(FPDFDoc_GetAttachment); CHK(FPDFAttachment_GetName); CHK(FPDFAttachment_HasKey); CHK(FPDFAttachment_GetValueType); + CHK(FPDFAttachment_SetStringValue); CHK(FPDFAttachment_GetStringValue); + CHK(FPDFAttachment_SetFile); CHK(FPDFAttachment_GetFile); // fpdf_dataavail.h |