diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-01-06 10:16:32 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-01-06 10:16:32 -0800 |
commit | 0aa3531a87dde44ffd90416f6d621b1828edaf22 (patch) | |
tree | 9b5f0e12a5e1aec13fd3d4f0242efcc6834d830e /testing/embedder_test.h | |
parent | d483eb46d8920547d1b47351e65fa0299eaba191 (diff) | |
download | pdfium-0aa3531a87dde44ffd90416f6d621b1828edaf22.tar.xz |
Merge to XFA: Return unique_ptrs from test_support functions
Orignal Review URL: https://codereview.chromium.org/1563513002 .
(cherry picked from commit aa326bd6b169dc1b5b9b83048c71799799ab34c6)
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1564583004 .
Diffstat (limited to 'testing/embedder_test.h')
-rw-r--r-- | testing/embedder_test.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/embedder_test.h b/testing/embedder_test.h index c780cca74b..a21a55de2c 100644 --- a/testing/embedder_test.h +++ b/testing/embedder_test.h @@ -14,6 +14,7 @@ #include "public/fpdf_formfill.h" #include "public/fpdfview.h" #include "testing/gtest/include/gtest/gtest.h" +#include "testing/test_support.h" #ifdef PDF_ENABLE_V8 #include "v8/include/v8.h" @@ -129,7 +130,7 @@ class EmbedderTest : public ::testing::Test, void* external_isolate_; TestLoader* loader_; size_t file_length_; - char* file_contents_; + std::unique_ptr<char, pdfium::FreeDeleter> file_contents_; private: static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type); |