summaryrefslogtreecommitdiff
path: root/testing/test_support.h
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-07-19 10:19:42 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-19 14:35:29 +0000
commit4442d453f570fda76ec4852e2bb03e7ec8bfb825 (patch)
treed0de96e6725c03af321cc3735b9aed46285da5f0 /testing/test_support.h
parentc5ea630cb5eecb7d4f7f20938b8e4b52a982c0a6 (diff)
downloadpdfium-4442d453f570fda76ec4852e2bb03e7ec8bfb825.tar.xz
Added testing flag --save-attachments that saves embedded attachments
1. Added --save-attachments flag in pdfium_test to save embedded attachments using fpdf_attachment APIs. Bug=pdfium:174 Change-Id: I62f09aeb0ab1431f6e127da389518878a7214423 Reviewed-on: https://pdfium-review.googlesource.com/7990 Commit-Queue: Jane Liu <janeliulwq@google.com> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/test_support.h')
-rw-r--r--testing/test_support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/test_support.h b/testing/test_support.h
index 7676e5783b..feec4bbe0b 100644
--- a/testing/test_support.h
+++ b/testing/test_support.h
@@ -62,6 +62,10 @@ std::unique_ptr<char, pdfium::FreeDeleter> GetFileContents(const char* filename,
std::vector<std::string> StringSplit(const std::string& str, char delimiter);
+// Converts a FPDF_WIDESTRING to a std::string.
+// Deals with differences between UTF16LE and UTF8.
+std::string GetPlatformString(FPDF_WIDESTRING wstr);
+
// Converts a FPDF_WIDESTRING to a std::wstring.
// Deals with differences between UTF16LE and wchar_t.
std::wstring GetPlatformWString(FPDF_WIDESTRING wstr);