From 304578020122cc4d2a4a8c1598694ef2b9be92b5 Mon Sep 17 00:00:00 2001 From: Jochen Eisinger Date: Wed, 15 Jul 2015 14:28:17 +0200 Subject: Pump the v8 message loop in tests R=tsepez@chromium.org, ulan@chromium.org BUG=none Review URL: https://codereview.chromium.org/1230393006 . --- samples/pdfium_test.cc | 2 ++ testing/embedder_test.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 5147266c99..be126149ac 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -616,6 +616,8 @@ int main(int argc, const char* argv[]) { if (!file_contents) continue; RenderPdf(filename, file_contents, file_length, options); + while (v8::platform::PumpMessageLoop(platform, v8::Isolate::GetCurrent())) + continue; free(file_contents); } diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index ee2ad086a7..ba33ca6e49 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -173,6 +173,8 @@ void EmbedderTest::TearDown() { FPDF_CloseDocument(document_); FPDFDOC_ExitFormFillEnvironment(form_handle_); } + while (v8::platform::PumpMessageLoop(platform_, v8::Isolate::GetCurrent())) + continue; FPDFAvail_Destroy(avail_); FPDF_DestroyLibrary(); v8::V8::ShutdownPlatform(); -- cgit v1.2.3