Index: testing/test_support.h |
diff --git a/testing/test_support.h b/testing/test_support.h |
index 1018421ba77190d3898c69057a7423778bb5d217..9665e1f9722303197735d5375877c9f81159cb8e 100644 |
--- a/testing/test_support.h |
+++ b/testing/test_support.h |
@@ -8,6 +8,8 @@ |
#include <stdlib.h> |
#include <string> |
+#include "../public/fpdfview.h" |
+ |
#ifdef PDF_ENABLE_V8 |
#include "v8/include/libplatform/libplatform.h" |
#include "v8/include/v8.h" |
@@ -16,6 +18,9 @@ |
// Reads the entire contents of a file into a newly malloc'd buffer. |
char* GetFileContents(const char* filename, size_t* retlen); |
+// Convert a FPDF_WIDESTRING to a newly malloc'd wchar_t buffer. |
+wchar_t* GetWideString(FPDF_WIDESTRING wstr); |
dsinclair
2015/11/04 14:15:07
const FPDF_WIDESTRING wstr
dsinclair
2015/11/04 14:15:07
FX_WCHAR?
dsinclair
2015/11/04 14:15:07
Can this return a unique_ptr?
Lei Zhang
2015/11/04 22:11:29
But then we'll need to pull in core/ #includes. We
Lei Zhang
2015/11/04 22:11:29
typedef const unsigned short* FPDF_WIDESTRING;
->
Lei Zhang
2015/11/04 22:11:29
Went with std::wstring.
|
+ |
#ifdef PDF_ENABLE_V8 |
#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
bool InitializeV8ForPDFium(const std::string& exe_path, |