0

Reformat all gn files in /pdf.

`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

This CL was uploaded by git cl split.

R=hnakashima@chromium.org

Bug: 1041419
Change-Id: I18cd60acb329e7110d0a40062470c4a8280e39a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1998514
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730913}
This commit is contained in:
Nico Weber
2020-01-13 22:56:20 +00:00
committed by Commit Bot
parent 238914d9f9
commit 87de37d084
2 changed files with 41 additions and 105 deletions
pdf
BUILD.gn
pdfium
fuzzers

@ -38,9 +38,7 @@ if (enable_pdf) {
"//ui/gfx/range",
]
public_deps = [
"//gin",
]
public_deps = [ "//gin" ]
public = [
"pdf.h",
@ -131,13 +129,9 @@ if (enable_pdf) {
source_set("features") {
configs += [ ":pdf_common_config" ]
deps = [
"//base",
]
deps = [ "//base" ]
public = [
"pdf_features.h",
]
public = [ "pdf_features.h" ]
sources = [
"pdf_features.cc",
@ -191,9 +185,7 @@ if (enable_pdf) {
"//ui/gfx/range",
]
data = [
"test/data/",
]
data = [ "test/data/" ]
if (pdf_engine == 0) {
configs += [ "//v8:external_startup_data" ]

@ -74,83 +74,61 @@ group("pdf_fuzzers") {
fuzzer_test("pdfium_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdfium_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdfium_fuzzer_src" ]
dict = "dicts/pdf.dict"
seed_corpus = "//third_party/pdfium/testing/resources"
}
fuzzer_test("pdf_cmap_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_cmap_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_cmap_fuzzer_src" ]
}
fuzzer_test("pdf_codec_a85_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_a85_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_codec_a85_fuzzer_src" ]
}
fuzzer_test("pdf_codec_fax_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_fax_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_codec_fax_fuzzer_src" ]
}
fuzzer_test("pdf_codec_rle_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_rle_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_codec_rle_fuzzer_src" ]
}
fuzzer_test("pdf_codec_icc_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_icc_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_codec_icc_fuzzer_src" ]
dict = "dicts/pdf_codec_icc.dict"
}
fuzzer_test("pdf_codec_jbig2_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_jbig2_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_codec_jbig2_fuzzer_src" ]
}
fuzzer_test("pdf_font_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_font_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_font_fuzzer_src" ]
}
fuzzer_test("pdf_hint_table_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_hint_table_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_hint_table_fuzzer_src" ]
}
fuzzer_test("pdf_jpx_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_jpx_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_jpx_fuzzer_src" ]
seed_corpus = "corpora/pdf_jpx"
}
fuzzer_test("pdf_psengine_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_psengine_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_psengine_fuzzer_src" ]
}
fuzzer_test("pdf_scanlinecompositor_fuzzer") {
@ -162,16 +140,12 @@ fuzzer_test("pdf_scanlinecompositor_fuzzer") {
fuzzer_test("pdf_streamparser_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_streamparser_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_streamparser_fuzzer_src" ]
}
fuzzer_test("pdf_xml_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_xml_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_xml_fuzzer_src" ]
dict = "dicts/pdf_xml.dict"
seed_corpus = "//third_party/libxml/fuzz/seed_corpus"
}
@ -179,9 +153,7 @@ fuzzer_test("pdf_xml_fuzzer") {
if (pdf_enable_v8) {
fuzzer_test("pdf_cjs_util_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_cjs_util_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_cjs_util_fuzzer_src" ]
}
fuzzer_test("pdf_fx_date_helpers_fuzzer") {
@ -195,9 +167,8 @@ if (pdf_enable_v8) {
if (pdf_enable_xfa_bmp) {
fuzzer_test("pdf_codec_bmp_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_bmp_fuzzer_src",
]
deps =
[ "//third_party/pdfium/testing/fuzzers:pdf_codec_bmp_fuzzer_src" ]
seed_corpus = "corpora/pdf_codec_bmp"
}
}
@ -205,9 +176,8 @@ if (pdf_enable_v8) {
if (pdf_enable_xfa_gif) {
fuzzer_test("pdf_codec_gif_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_gif_fuzzer_src",
]
deps =
[ "//third_party/pdfium/testing/fuzzers:pdf_codec_gif_fuzzer_src" ]
dict = "dicts/pdf_codec_gif.dict"
seed_corpus = "corpora/pdf_codec_gif"
}
@ -215,9 +185,8 @@ if (pdf_enable_v8) {
fuzzer_test("pdf_codec_jpeg_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_jpeg_fuzzer_src",
]
deps =
[ "//third_party/pdfium/testing/fuzzers:pdf_codec_jpeg_fuzzer_src" ]
dict = "dicts/pdf_codec_jpeg.dict"
seed_corpus = "corpora/pdf_codec_jpeg"
}
@ -225,9 +194,8 @@ if (pdf_enable_v8) {
if (pdf_enable_xfa_png) {
fuzzer_test("pdf_codec_png_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_png_fuzzer_src",
]
deps =
[ "//third_party/pdfium/testing/fuzzers:pdf_codec_png_fuzzer_src" ]
dict = "dicts/pdf_codec_png.dict"
seed_corpuses = [
"corpora/pdf_codec_png",
@ -241,9 +209,8 @@ if (pdf_enable_v8) {
if (pdf_enable_xfa_tiff) {
fuzzer_test("pdf_codec_tiff_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_codec_tiff_fuzzer_src",
]
deps =
[ "//third_party/pdfium/testing/fuzzers:pdf_codec_tiff_fuzzer_src" ]
dict = "dicts/pdf_codec_tiff.dict"
seed_corpus = "corpora/pdf_codec_tiff"
}
@ -251,17 +218,13 @@ if (pdf_enable_v8) {
fuzzer_test("pdf_css_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_css_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_css_fuzzer_src" ]
dict = "dicts/pdf_css.dict"
}
fuzzer_test("pdf_fm2js_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_fm2js_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_fm2js_fuzzer_src" ]
dict = "dicts/pdf_formcalc.dict"
}
@ -275,47 +238,36 @@ if (pdf_enable_v8) {
fuzzer_test("pdf_formcalc_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_formcalc_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_formcalc_fuzzer_src" ]
dict = "dicts/pdf_formcalc.dict"
}
if (pdf_enable_xfa_gif) {
fuzzer_test("pdf_lzw_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_lzw_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_lzw_fuzzer_src" ]
}
}
fuzzer_test("pdf_bidi_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_bidi_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_bidi_fuzzer_src" ]
}
fuzzer_test("pdf_cfx_barcode_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_cfx_barcode_fuzzer_src",
]
deps =
[ "//third_party/pdfium/testing/fuzzers:pdf_cfx_barcode_fuzzer_src" ]
}
fuzzer_test("pdf_cfgas_stringformatter_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_cfgas_stringformatter_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_cfgas_stringformatter_fuzzer_src" ]
}
fuzzer_test("pdfium_xfa_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdfium_xfa_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdfium_xfa_fuzzer_src" ]
dict = "dicts/pdf.dict"
seed_corpus = "corpora/xfa"
}
@ -334,9 +286,7 @@ if (pdf_enable_v8) {
}
fuzzer_test("pdfium_xfa_lpm_fuzzer") {
sources = [
"pdfium_xfa_lpm_fuzzer/fuzzer.cc",
]
sources = [ "pdfium_xfa_lpm_fuzzer/fuzzer.cc" ]
deps = [
":proto_to_xfa",
"//base",
@ -356,9 +306,7 @@ if (pdf_enable_v8) {
}
test("pdfium_xfa_lpm_unittest") {
sources = [
"pdfium_xfa_lpm_fuzzer/simple_xfa_pdf_unittest.cc",
]
sources = [ "pdfium_xfa_lpm_fuzzer/simple_xfa_pdf_unittest.cc" ]
deps = [
":proto_to_xfa",
@ -372,14 +320,10 @@ if (pdf_enable_v8) {
if (is_clang) {
fuzzer_test("pdf_nametree_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_nametree_fuzzer_src",
]
deps = [ "//third_party/pdfium/testing/fuzzers:pdf_nametree_fuzzer_src" ]
}
}
proto_library("xfa_proto") {
sources = [
"pdfium_xfa_lpm_fuzzer/xfa.proto",
]
sources = [ "pdfium_xfa_lpm_fuzzer/xfa.proto" ]
}