summaryrefslogtreecommitdiff
path: root/testing/js_embedder_test.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-20 19:33:20 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-20 19:33:20 +0000
commite75538b44dc0afd1951a29d4574a8bdb11ca336f (patch)
treedc9c001acd600eb2c2e1e02321ffda580d273f91 /testing/js_embedder_test.cpp
parentfbeb04b695541935569611bc58a5dce0f2e6aed6 (diff)
downloadpdfium-e75538b44dc0afd1951a29d4574a8bdb11ca336f.tar.xz
Fix nits in JSEmbedderTest.
Change-Id: Ib03ee28f7a52cd5aa53c315402141b3b6cff5e7d Reviewed-on: https://pdfium-review.googlesource.com/21892 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/js_embedder_test.cpp')
-rw-r--r--testing/js_embedder_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/js_embedder_test.cpp b/testing/js_embedder_test.cpp
index 064a961049..e9eb70d1ec 100644
--- a/testing/js_embedder_test.cpp
+++ b/testing/js_embedder_test.cpp
@@ -3,11 +3,12 @@
// 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),
- m_pIsolate(nullptr) {}
+ : m_pArrayBufferAllocator(pdfium::MakeUnique<FXJS_ArrayBufferAllocator>()) {
+}
JSEmbedderTest::~JSEmbedderTest() {}