From 281d1d293dab54cadd214e5a1c098583fbbe0788 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 15 Jul 2015 17:10:52 -0700 Subject: Flip the shut down order in tests. This matches the Chromium PDF plugin changes in https://codereview.chromium.org/1230313006/ R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1237233006 . --- samples/pdfium_test.cc | 2 +- testing/embedder_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 7e9ca68cef..0d76b63f26 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -550,8 +550,8 @@ void RenderPdf(const std::string& name, const char* pBuf, size_t len, } FORM_DoDocumentAAction(form, FPDFDOC_AACTION_WC); - FPDF_CloseDocument(doc); FPDFDOC_ExitFormFillEnvironment(form); + FPDF_CloseDocument(doc); FPDFAvail_Destroy(pdf_avail); fprintf(stderr, "Rendered %d pages.\n", rendered_pages); diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 02d0fae789..447b4d12e4 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -170,8 +170,8 @@ void EmbedderTest::SetUp() { void EmbedderTest::TearDown() { if (document_) { FORM_DoDocumentAAction(form_handle_, FPDFDOC_AACTION_WC); - FPDF_CloseDocument(document_); FPDFDOC_ExitFormFillEnvironment(form_handle_); + FPDF_CloseDocument(document_); } FPDFAvail_Destroy(avail_); FPDF_DestroyLibrary(); -- cgit v1.2.3