diff options
author | tsepez <tsepez@chromium.org> | 2016-10-03 15:24:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-03 15:24:27 -0700 |
commit | 36eb4bdcae719cf33c536ff72ac000482aed8382 (patch) | |
tree | b3c3467fa10eafc3863a619ef511d1bf20af6367 /testing | |
parent | 76383db4906c9357292846ace77566b34eb47de9 (diff) | |
download | pdfium-36eb4bdcae719cf33c536ff72ac000482aed8382.tar.xz |
Add ptr_util.h from base until std::make_unique<> available
Review-Url: https://codereview.chromium.org/2386273004
Diffstat (limited to 'testing')
-rw-r--r-- | testing/js_embedder_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/js_embedder_test.cpp b/testing/js_embedder_test.cpp index a8b0d5bfcf..064a961049 100644 --- a/testing/js_embedder_test.cpp +++ b/testing/js_embedder_test.cpp @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "testing/js_embedder_test.h" +#include "third_party/base/ptr_util.h" JSEmbedderTest::JSEmbedderTest() : m_pArrayBufferAllocator(new FXJS_ArrayBufferAllocator), @@ -21,7 +22,7 @@ void JSEmbedderTest::SetUp() { v8::Isolate::Scope isolate_scope(m_pIsolate); v8::HandleScope handle_scope(m_pIsolate); FXJS_PerIsolateData::SetUp(m_pIsolate); - m_Engine = WrapUnique(new CFXJS_Engine(m_pIsolate)); + m_Engine = pdfium::MakeUnique<CFXJS_Engine>(m_pIsolate); m_Engine->InitializeEngine(); } |