OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # PDFium fuzzers. |
| 6 |
| 7 import("//third_party/pdfium/pdfium.gni") |
| 8 import("//testing/test.gni") |
| 9 import("//testing/libfuzzer/fuzzer_test.gni") |
| 10 |
| 11 group("fuzzers") { |
| 12 } |
| 13 |
| 14 fuzzer_test("pdfium_fuzzer") { |
| 15 sources = [ |
| 16 "pdfium_fuzzer.cc", |
| 17 ] |
| 18 deps = [ |
| 19 "//third_party/pdfium", |
| 20 "//third_party/pdfium:test_support", |
| 21 "//v8", |
| 22 "//v8:v8_libplatform", |
| 23 ] |
| 24 additional_configs = [ |
| 25 "//third_party/pdfium:pdfium_config", |
| 26 "//v8:external_startup_data", |
| 27 ] |
| 28 dict = "dicts/pdf.dict" |
| 29 } |
| 30 |
| 31 fuzzer_test("pdf_jpx_fuzzer") { |
| 32 sources = [] |
| 33 deps = [ |
| 34 "//third_party/pdfium/testing/libfuzzer:pdf_jpx_fuzzer", |
| 35 ] |
| 36 } |
| 37 |
| 38 if (pdf_enable_xfa) { |
| 39 fuzzer_test("pdf_fm2js_fuzzer") { |
| 40 sources = [] |
| 41 deps = [ |
| 42 "//third_party/pdfium/testing/libfuzzer:pdf_fm2js_fuzzer", |
| 43 ] |
| 44 dict = "dicts/pdf_fm2js.dict" |
| 45 } |
| 46 |
| 47 fuzzer_test("pdf_xml_fuzzer") { |
| 48 sources = [] |
| 49 deps = [ |
| 50 "//third_party/pdfium/testing/libfuzzer:pdf_xml_fuzzer", |
| 51 ] |
| 52 dict = "dicts/pdf_xml.dict" |
| 53 } |
| 54 } |
OLD | NEW |