diff options
author | Lei Zhang <thestig@chromium.org> | 2015-11-04 20:26:50 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-11-04 20:26:50 -0800 |
commit | cd39695e618374ae0cfb4d3467602fd9a5365c55 (patch) | |
tree | 286cb35aa53758f753366536a76f78ad8d327938 | |
parent | d440f01f7e1cb24f2d569865a721bfd854f06dd5 (diff) | |
download | pdfium-cd39695e618374ae0cfb4d3467602fd9a5365c55.tar.xz |
XFA: Set the right FPDF_FORMFILLINFO version for embedder tests.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1409993013 .
-rw-r--r-- | testing/embedder_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 36405d300c..99e294bc8e 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -138,7 +138,11 @@ bool EmbedderTest::OpenDocument(const std::string& filename) { FPDF_FORMFILLINFO* formfillinfo = static_cast<FPDF_FORMFILLINFO*>(this); memset(formfillinfo, 0, sizeof(FPDF_FORMFILLINFO)); +#ifdef PDF_ENABLE_XFA + formfillinfo->version = 2; +#else formfillinfo->version = 1; +#endif formfillinfo->FFI_SetTimer = SetTimerTrampoline; formfillinfo->FFI_KillTimer = KillTimerTrampoline; formfillinfo->FFI_GetPage = GetPageTrampoline; |