diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-02-19 15:33:13 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-19 15:33:13 +0000 |
commit | 916b4b05ce7b4dd5a254a72a1d98051655627dbc (patch) | |
tree | 68a8de3867a4a0e766d3cc33bfd96071950b54b6 /testing | |
parent | 03632fb7fd1f6924f464708155ed0338d46f9862 (diff) | |
download | pdfium-916b4b05ce7b4dd5a254a72a1d98051655627dbc.tar.xz |
Skip font loading in formcalc embedder tests
This CL changes XFA to skip font loading for embedder tests. This takes
the runtime for the CFXJSE_Formcalc_ECFXJSE_FormCalcContextEmbedderTest
run from ~25sec to ~5sec.
Change-Id: If9989c5a3474cccd3915ec3f5c178d7af48aae37
Reviewed-on: https://pdfium-review.googlesource.com/27191
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/xfa_js_embedder_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/xfa_js_embedder_test.cpp b/testing/xfa_js_embedder_test.cpp index 8ac17f3083..133a938643 100644 --- a/testing/xfa_js_embedder_test.cpp +++ b/testing/xfa_js_embedder_test.cpp @@ -11,6 +11,7 @@ #include "fxjs/cfxjse_engine.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/base/ptr_util.h" +#include "xfa/fxfa/cxfa_ffapp.h" XFAJSEmbedderTest::XFAJSEmbedderTest() : array_buffer_allocator_( @@ -26,9 +27,13 @@ void XFAJSEmbedderTest::SetUp() { EmbedderTest::SetExternalIsolate(isolate_); EmbedderTest::SetUp(); + + CXFA_FFApp::SkipFontLoadForTesting(true); } void XFAJSEmbedderTest::TearDown() { + CXFA_FFApp::SkipFontLoadForTesting(false); + value_.reset(); script_context_ = nullptr; |