Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: testing/test_support.h

Issue 1424743006: Make JS app.setTimeOut() work again. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: self review Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698