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 --- xfa/fde/cfde_txtedtbuf_unittest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xfa') diff --git a/xfa/fde/cfde_txtedtbuf_unittest.cpp b/xfa/fde/cfde_txtedtbuf_unittest.cpp index 9c564093e5..aa80a66b60 100644 --- a/xfa/fde/cfde_txtedtbuf_unittest.cpp +++ b/xfa/fde/cfde_txtedtbuf_unittest.cpp @@ -8,12 +8,14 @@ #include "testing/test_support.h" #include "third_party/base/ptr_util.h" -class CFDE_TxtEdtBufTest : public testing::Test { +class CFDE_TxtEdtBufTest : public pdfium::FPDF_Test { public: void SetUp() override { + FPDF_Test::SetUp(); buf_ = pdfium::MakeUnique(); buf_->SetChunkSizeForTesting(5); } + size_t ChunkCount() const { return buf_->m_chunks.size(); } std::unique_ptr buf_; -- cgit v1.2.3