Index: pdf/pdfium/fuzzers/BUILD.gn |
diff --git a/pdf/pdfium/fuzzers/BUILD.gn b/pdf/pdfium/fuzzers/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fce0b8c4eac368cc64e6e4d4dada5332485c80c7 |
--- /dev/null |
+++ b/pdf/pdfium/fuzzers/BUILD.gn |
@@ -0,0 +1,54 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# PDFium fuzzers. |
+ |
+import("//third_party/pdfium/pdfium.gni") |
+import("//testing/test.gni") |
+import("//testing/libfuzzer/fuzzer_test.gni") |
+ |
+group("fuzzers") { |
+} |
+ |
+fuzzer_test("pdfium_fuzzer") { |
+ sources = [ |
+ "pdfium_fuzzer.cc", |
+ ] |
+ deps = [ |
+ "//third_party/pdfium", |
+ "//third_party/pdfium:test_support", |
+ "//v8", |
+ "//v8:v8_libplatform", |
+ ] |
+ additional_configs = [ |
+ "//third_party/pdfium:pdfium_config", |
+ "//v8:external_startup_data", |
+ ] |
+ dict = "dicts/pdf.dict" |
+} |
+ |
+fuzzer_test("pdf_jpx_fuzzer") { |
+ sources = [] |
+ deps = [ |
+ "//third_party/pdfium/testing/libfuzzer:pdf_jpx_fuzzer", |
+ ] |
+} |
+ |
+if (pdf_enable_xfa) { |
+ fuzzer_test("pdf_fm2js_fuzzer") { |
+ sources = [] |
+ deps = [ |
+ "//third_party/pdfium/testing/libfuzzer:pdf_fm2js_fuzzer", |
+ ] |
+ dict = "dicts/pdf_fm2js.dict" |
+ } |
+ |
+ fuzzer_test("pdf_xml_fuzzer") { |
+ sources = [] |
+ deps = [ |
+ "//third_party/pdfium/testing/libfuzzer:pdf_xml_fuzzer", |
+ ] |
+ dict = "dicts/pdf_xml.dict" |
+ } |
+} |