diff options
author | Chris Palmer <palmer@chromium.org> | 2017-03-26 15:48:34 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-26 23:04:12 +0000 |
commit | e4b035b722ad69d4a4357c54cd3c9f1f8574b067 (patch) | |
tree | 1ef73460f84b03c2711c041d047db1d5131807b4 /core/fpdfapi | |
parent | b8227824c221733e8636c42c3aee8ccff9efd719 (diff) | |
download | pdfium-e4b035b722ad69d4a4357c54cd3c9f1f8574b067.tar.xz |
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 <palmer@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
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, |