From 129b0135adf99be8e2c3015267a4689c6d62dca1 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 24 May 2017 09:33:20 -0400 Subject: More FM2JSContext tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL adds tests for the FormCalc methods that don't require passing in a formcalc object reference. Change-Id: Ica6f15704cce525d38d25a27d1628089d2fc5a5a Reviewed-on: https://pdfium-review.googlesource.com/5691 Reviewed-by: Nicolás Peña Commit-Queue: dsinclair --- testing/xfa_js_embedder_test.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testing/xfa_js_embedder_test.h') diff --git a/testing/xfa_js_embedder_test.h b/testing/xfa_js_embedder_test.h index 62c3597b07..afbdb26e1a 100644 --- a/testing/xfa_js_embedder_test.h +++ b/testing/xfa_js_embedder_test.h @@ -11,6 +11,9 @@ #include "fxjs/cfxjse_value.h" #include "fxjs/fxjs_v8.h" #include "testing/embedder_test.h" +#include "xfa/fxfa/parser/cxfa_document.h" +#include "xfa/fxfa/parser/cxfa_node.h" +#include "xfa/fxfa/parser/cxfa_object.h" class CXFA_ScriptContext; @@ -27,6 +30,7 @@ class XFAJSEmbedderTest : public EmbedderTest { bool must_linearize = false) override; v8::Isolate* GetIsolate() const { return isolate_; } + CXFA_Document* GetXFADocument(); bool Execute(const CFX_ByteStringC& input); CFXJSE_Value* GetValue() const { return value_.get(); } -- cgit v1.2.3