diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-04-17 21:55:18 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-17 21:55:18 +0000 |
commit | 384e6fefb42ab5d3d71dd60f7f8d5f5155228804 (patch) | |
tree | 8fe0d065f51f6a459bd2be6adf625c3dd7a716f7 /testing | |
parent | 13aa65a71294cac6e4bdaab73ddd6f4b9fcd8676 (diff) | |
download | pdfium-384e6fefb42ab5d3d71dd60f7f8d5f5155228804.tar.xz |
CFX_XML Cleanup
Cleanup formatting and unused variables in the CFX_XML classes.
Change-Id: I1aff6317a3da38a141a071ba69c7893d0f669732
Reviewed-on: https://pdfium-review.googlesource.com/30730
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libfuzzer/pdf_xml_fuzzer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/libfuzzer/pdf_xml_fuzzer.cc b/testing/libfuzzer/pdf_xml_fuzzer.cc index b9cb01580c..97b9d3c7cf 100644 --- a/testing/libfuzzer/pdf_xml_fuzzer.cc +++ b/testing/libfuzzer/pdf_xml_fuzzer.cc @@ -9,7 +9,7 @@ #include "core/fxcrt/cfx_memorystream.h" #include "core/fxcrt/fx_safe_types.h" #include "core/fxcrt/fx_system.h" -#include "core/fxcrt/xml/cfx_xmlnode.h" +#include "core/fxcrt/xml/cfx_xmlelement.h" #include "core/fxcrt/xml/cfx_xmlparser.h" #include "third_party/base/ptr_util.h" @@ -20,7 +20,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { auto stream = pdfium::MakeRetain<CFX_MemoryStream>(const_cast<uint8_t*>(data), size, false); - auto root = pdfium::MakeUnique<CFX_XMLNode>(); + auto root = pdfium::MakeUnique<CFX_XMLElement>(L"ROOT"); CFX_XMLParser parser(root.get(), stream); if (!parser.Parse()) return 0; |