From e4b035b722ad69d4a4357c54cd3c9f1f8574b067 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Sun, 26 Mar 2017 15:48:34 -0700 Subject: Use PartitionAlloc for JavaScript ArrayBuffers and strings. BUG=pdfium:681 Change-Id: I5073d80d9bd623b73e578d5ba2226c39c371bab0 Reviewed-on: https://pdfium-review.googlesource.com/3097 Commit-Queue: Chris Palmer Reviewed-by: Tom Sepez --- core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'core/fpdfapi') diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp b/core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp index 331cec3813..fdf31243b7 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp @@ -14,13 +14,20 @@ #include "core/fpdfapi/parser/cpdf_parser.h" #include "core/fpdfapi/parser/cpdf_reference.h" #include "testing/gtest/include/gtest/gtest.h" +#include "testing/test_support.h" #include "third_party/base/ptr_util.h" -class CPDF_PageContentGeneratorTest : public testing::Test { +class CPDF_PageContentGeneratorTest : public pdfium::FPDF_Test { protected: - void SetUp() override { CPDF_ModuleMgr::Get()->InitPageModule(); } + void SetUp() override { + FPDF_Test::SetUp(); + CPDF_ModuleMgr::Get()->InitPageModule(); + } - void TearDown() override { CPDF_ModuleMgr::Destroy(); } + void TearDown() override { + CPDF_ModuleMgr::Destroy(); + FPDF_Test::TearDown(); + } void TestProcessPath(CPDF_PageContentGenerator* pGen, CFX_ByteTextBuf* buf, -- cgit v1.2.3