From 5553d8b11634935c34e7774325eda6afd61c8f56 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 3 Jan 2018 09:44:28 -0500 Subject: 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 Commit-Queue: dsinclair --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) (limited to 'BUILD.gn') 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", -- cgit v1.2.3