summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-03 09:44:28 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-08 14:52:51 +0000
commit5553d8b11634935c34e7774325eda6afd61c8f56 (patch)
treea33d4014b3c7f1ef88bf84e3ec3ef05a53af1b7f /BUILD.gn
parent5183e8679844eeff2c5dda2a2e02762487429a1f (diff)
downloadpdfium-5553d8b11634935c34e7774325eda6afd61c8f56.tar.xz
Initialize V8 once in embedder tests
This CL moves the initialization of the V8 platform to happen in the GTest environment so it's only run once. This takes the CFXJSE_FormCalcContextEmbedderTest Debug time from ~25s to ~19s on my local machine. Bug: pdfium:928 Change-Id: Ie8c27606721e7056de42e7d9474b0621f1e7212f Reviewed-on: https://pdfium-review.googlesource.com/22070 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn1
1 files changed, 1 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 0bc8134720..50f83c8dbf 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2913,6 +2913,7 @@ test("pdfium_embeddertests") {
"fpdfsdk/pwl/cpwl_edit_embeddertest.cpp",
"testing/embedder_test.cpp",
"testing/embedder_test.h",
+ "testing/embedder_test_main.cpp",
"testing/embedder_test_mock_delegate.h",
"testing/embedder_test_timer_handling_delegate.h",
"testing/fake_file_access.cpp",