summaryrefslogtreecommitdiff
path: root/testing/test_support.cpp
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 /testing/test_support.cpp
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 'testing/test_support.cpp')
-rw-r--r--testing/test_support.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/test_support.cpp b/testing/test_support.cpp
index a530b3ea4c..6e1bb64bc0 100644
--- a/testing/test_support.cpp
+++ b/testing/test_support.cpp
@@ -210,3 +210,15 @@ int TestSaver::WriteBlockCallback(FPDF_FILEWRITE* pFileWrite,
pThis->m_String.append(static_cast<const char*>(data), size);
return 1;
}
+
+namespace pdfium {
+
+void FPDF_Test::SetUp() {
+ FPDF_InitLibrary();
+}
+
+void FPDF_Test::TearDown() {
+ FPDF_DestroyLibrary();
+}
+
+} // namespace pdfium