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

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

Issue 2379973005: Fix #includes in libfuzzer (Closed)
Patch Set: More include fixes Created 4 years, 2 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 | « testing/libfuzzer/pdf_fm2js_fuzzer.cc ('k') | testing/libfuzzer/pdf_jpx_fuzzer.cc » ('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 <cstdint> 5 #include <cstdint>
6 6
7 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
7 #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h" 8 #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h"
8 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
9 9
10 struct DummyLinearizedDictionary { 10 struct DummyLinearizedDictionary {
11 int end_of_first_page_offset; 11 int end_of_first_page_offset;
12 int number_of_pages; 12 int number_of_pages;
13 int first_page_object_number; 13 int first_page_object_number;
14 int first_page_number; 14 int first_page_number;
15 int primary_hint_stream_offset; 15 int primary_hint_stream_offset;
16 int primary_hint_stream_length; 16 int primary_hint_stream_length;
17 int shared_hint_table_offset; 17 int shared_hint_table_offset;
18 }; 18 };
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 CPDF_Dictionary* dummy_linearized_dict = new CPDF_Dictionary; 85 CPDF_Dictionary* dummy_linearized_dict = new CPDF_Dictionary;
86 86
87 { 87 {
88 HintTableForFuzzing hint_table(&dummy_dict, dummy_linearized_dict); 88 HintTableForFuzzing hint_table(&dummy_dict, dummy_linearized_dict);
89 hint_table.Fuzz(data, size); 89 hint_table.Fuzz(data, size);
90 } 90 }
91 91
92 dummy_linearized_dict->Release(); 92 dummy_linearized_dict->Release();
93 return 0; 93 return 0;
94 } 94 }
OLDNEW
« no previous file with comments | « testing/libfuzzer/pdf_fm2js_fuzzer.cc ('k') | testing/libfuzzer/pdf_jpx_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698