From 3fff90a670d860a7b0319aa0edf8628917d0a122 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 1 Nov 2017 13:12:39 +0000 Subject: Move some XFA JS code into fxjs/ This CL renames cxfa_scriptcontext to cfxjse_engine and cxfa_fm2jscontext to cfxjse_formcalc_context. From reading the code, the script context appears to handle the v8 setup and object code. The formcalc context code is related to handling the JS code generated from the transpiler. I, think, these new names make the intended usage clearer. They also move the code into fxjs/ to keep along side the rest of the JS code. Change-Id: I50619fbe48ca1f553a44cf0e0cb0210be8e45e4f Reviewed-on: https://pdfium-review.googlesource.com/17130 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- testing/libfuzzer/pdf_fm2js_fuzzer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/libfuzzer') diff --git a/testing/libfuzzer/pdf_fm2js_fuzzer.cc b/testing/libfuzzer/pdf_fm2js_fuzzer.cc index c93804a92e..2541dfbcc8 100644 --- a/testing/libfuzzer/pdf_fm2js_fuzzer.cc +++ b/testing/libfuzzer/pdf_fm2js_fuzzer.cc @@ -8,7 +8,7 @@ #include "core/fxcrt/cfx_widetextbuf.h" #include "core/fxcrt/fx_safe_types.h" #include "core/fxcrt/fx_string.h" -#include "xfa/fxfa/fm2js/cxfa_fm2jscontext.h" +#include "fxjs/cfxjse_formcalc_context.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { FX_SAFE_SIZE_T safe_size = size; @@ -18,6 +18,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { CFX_WideTextBuf js; WideString input = WideString::FromUTF8(ByteStringView(data, safe_size.ValueOrDie())); - CXFA_FM2JSContext::Translate(input.AsStringView(), &js); + CFXJSE_FormCalcContext::Translate(input.AsStringView(), &js); return 0; } -- cgit v1.2.3