summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorChris Palmer <palmer@chromium.org>2017-03-26 15:48:34 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-26 23:04:12 +0000
commite4b035b722ad69d4a4357c54cd3c9f1f8574b067 (patch)
tree1ef73460f84b03c2711c041d047db1d5131807b4 /xfa
parentb8227824c221733e8636c42c3aee8ccff9efd719 (diff)
downloadpdfium-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 'xfa')
-rw-r--r--xfa/fde/cfde_txtedtbuf_unittest.cpp4
1 files changed, 3 insertions, 1 deletions
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<CFDE_TxtEdtBuf>();
buf_->SetChunkSizeForTesting(5);
}
+
size_t ChunkCount() const { return buf_->m_chunks.size(); }
std::unique_ptr<CFDE_TxtEdtBuf> buf_;