diff options
author | jochen <jochen@chromium.org> | 2016-05-31 12:07:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-31 12:07:40 -0700 |
commit | 38a1f0a14bf17512f89bb5c7ed82847ba46456fa (patch) | |
tree | 831f78a86a4775f09862fbefb8fc40107ccde8c6 /testing/embedder_test.cpp | |
parent | 48d91dd174933b4881fb500b76fb2e3ecbc7f548 (diff) | |
download | pdfium-38a1f0a14bf17512f89bb5c7ed82847ba46456fa.tar.xz |
Fix V8 isolate setup in embedder tests and roll V8 to 055bfa7.
R=thestig@chromium.org
BUG=
Review-Url: https://codereview.chromium.org/2019383002
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r-- | testing/embedder_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 033313dbe2..3d3b2ad844 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -58,7 +58,12 @@ EmbedderTest::EmbedderTest() #endif // FPDF_ENABLE_V8 } -EmbedderTest::~EmbedderTest() {} +EmbedderTest::~EmbedderTest() { +#ifdef PDF_ENABLE_V8 + v8::V8::ShutdownPlatform(); + delete platform_; +#endif // PDF_ENABLE_V8 +} void EmbedderTest::SetUp() { FPDF_LIBRARY_CONFIG config; @@ -93,11 +98,6 @@ void EmbedderTest::TearDown() { FPDFAvail_Destroy(avail_); FPDF_DestroyLibrary(); -#ifdef PDF_ENABLE_V8 - v8::V8::ShutdownPlatform(); - delete platform_; -#endif // PDF_ENABLE_V8 - delete loader_; } |