Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: testing/libfuzzer/pdf_xml_fuzzer.cc

Issue 1746053003: Remove foxitlib.h and foxitxfa.h and IWYU. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review cleanup Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | xfa.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The PDFium Authors. All rights reserved. 1 // Copyright 2016 The PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cstddef> 5 #include <cstddef>
6 #include <cstdint> 6 #include <cstdint>
7 #include <limits> 7 #include <limits>
8 #include <memory> 8 #include <memory>
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
11 #include "core/include/fxcrt/fx_system.h" 11 #include "core/include/fxcrt/fx_system.h"
12 #include "xfa/src/foxitlib.h"
13 #include "xfa/src/fxfa/src/common/xfa_parser.h" 12 #include "xfa/src/fxfa/src/common/xfa_parser.h"
14 #include "xfa/src/fxfa/src/parser/xfa_parser_imp.h" 13 #include "xfa/src/fxfa/src/parser/xfa_parser_imp.h"
15 14
16 namespace { 15 namespace {
17 16
18 IFDE_XMLNode* XFA_FDEExtension_GetDocumentNode( 17 IFDE_XMLNode* XFA_FDEExtension_GetDocumentNode(
19 IFDE_XMLDoc* pXMLDoc, 18 IFDE_XMLDoc* pXMLDoc,
20 FX_BOOL bVerifyWellFormness = FALSE) { 19 FX_BOOL bVerifyWellFormness = FALSE) {
21 if (!pXMLDoc) { 20 if (!pXMLDoc) {
22 return nullptr; 21 return nullptr;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 if (!doc->LoadXML(parser.release())) 66 if (!doc->LoadXML(parser.release()))
68 return 0; 67 return 0;
69 68
70 int32_t load_result = doc->DoLoad(nullptr); 69 int32_t load_result = doc->DoLoad(nullptr);
71 if (load_result < 100) 70 if (load_result < 100)
72 return 0; 71 return 0;
73 72
74 (void)XFA_FDEExtension_GetDocumentNode(doc.get()); 73 (void)XFA_FDEExtension_GetDocumentNode(doc.get());
75 return 0; 74 return 0;
76 } 75 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | xfa.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698