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.cpp | |
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.cpp')
-rw-r--r-- | testing/embedder_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index e99c2e351a..cb9068564a 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -90,7 +90,6 @@ void EmbedderTest::TearDown() { #endif // PDF_ENABLE_V8 delete loader_; - free(file_contents_); } bool EmbedderTest::CreateEmptyDocument() { @@ -111,7 +110,7 @@ bool EmbedderTest::OpenDocument(const std::string& filename, if (!file_contents_) return false; - loader_ = new TestLoader(file_contents_, file_length_); + loader_ = new TestLoader(file_contents_.get(), file_length_); file_access_.m_FileLen = static_cast<unsigned long>(file_length_); file_access_.m_GetBlock = TestLoader::GetBlock; file_access_.m_Param = loader_; |