summaryrefslogtreecommitdiff
path: root/testing/test_support.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-01-05 10:17:30 -0800
committerTom Sepez <tsepez@chromium.org>2016-01-05 10:17:30 -0800
commit8ab45eafebfd510554920e09e5ee85e94701dea9 (patch)
tree5395b97d113552edc0c4c6bf3142302441da666e /testing/test_support.h
parent0861c161376074bce453de31fdf96e120c482696 (diff)
downloadpdfium-8ab45eafebfd510554920e09e5ee85e94701dea9.tar.xz
Merge to XFA: Make FPDF_WIDESTRING work regardless of endianness.
Original Review URL: https://codereview.chromium.org/1554363002 . (cherry picked from commit ed34cdf99d5a4b33e57f81f9244a311f6fb86db3) TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1559373002 .
Diffstat (limited to 'testing/test_support.h')
-rw-r--r--testing/test_support.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/testing/test_support.h b/testing/test_support.h
index a2241144a4..d48d5596f4 100644
--- a/testing/test_support.h
+++ b/testing/test_support.h
@@ -19,7 +19,11 @@ char* GetFileContents(const char* filename, size_t* retlen);
// Converts a FPDF_WIDESTRING to a std::wstring.
// Deals with differences between UTF16LE and wchar_t.
-std::wstring GetWideString(FPDF_WIDESTRING wstr);
+std::wstring GetPlatformWString(const FPDF_WIDESTRING wstr);
+
+// Returns a newly mallocated FPDF_WIDESTRING (caller must free()).
+// Deals with differences between UTF16LE and wchar_t.
+FPDF_WIDESTRING GetFPDFWideString(const std::wstring& wstr);
#ifdef PDF_ENABLE_V8
#ifdef V8_USE_EXTERNAL_STARTUP_DATA