diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-01-06 10:06:12 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-01-06 10:06:12 -0800 |
commit | aa326bd6b169dc1b5b9b83048c71799799ab34c6 (patch) | |
tree | 5cdae330aa2fb40fecc701655b5c33ce85bf9ed3 /testing/embedder_test.h | |
parent | d368261cc8d604286e29ca6358700e6bb051dcaa (diff) | |
download | pdfium-aa326bd6b169dc1b5b9b83048c71799799ab34c6.tar.xz |
Return unique_ptrs from test_support functions
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1563513002 .
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); |