forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.gn
127 lines (112 loc) · 2.73 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# 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.
import("//testing/libfuzzer/fuzzer_test.gni")
source_set("lib") {
sources = [
"bundled_exchanges_parser.cc",
"bundled_exchanges_parser.h",
"bundled_exchanges_parser_factory.cc",
"bundled_exchanges_parser_factory.h",
"data_decoder_service.cc",
"data_decoder_service.h",
"image_decoder_impl.cc",
"image_decoder_impl.h",
"json_parser_impl.cc",
"json_parser_impl.h",
"xml_parser.cc",
"xml_parser.h",
]
if (is_chromeos) {
sources += [
"ble_scan_parser_impl.cc",
"ble_scan_parser_impl.h",
]
}
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//base",
"//components/cbor",
"//mojo/public/cpp/bindings",
"//net",
"//skia",
"//third_party/blink/public:blink",
"//third_party/libxml",
"//ui/gfx",
"//ui/gfx/geometry",
]
public_deps = [
"//services/data_decoder/public/mojom",
"//services/service_manager/public/cpp",
]
}
source_set("tests") {
testonly = true
sources = [
"bundled_exchanges_parser_factory_unittest.cc",
"bundled_exchanges_parser_unittest.cc",
"image_decoder_impl_unittest.cc",
"public/cpp/json_sanitizer_unittest.cc",
"public/cpp/safe_bundled_exchanges_parser_unittest.cc",
"public/cpp/safe_xml_parser_unittest.cc",
"public/cpp/testing_json_parser_unittest.cc",
"xml_parser_unittest.cc",
]
if (is_chromeos) {
sources += [ "ble_scan_parser_impl_unittest.cc" ]
}
deps = [
":lib",
"//base",
"//base/test:test_support",
"//components/cbor",
"//gin",
"//gin:gin_test",
"//services/data_decoder/public/cpp",
"//services/data_decoder/public/cpp:test_support",
"//skia",
"//testing/gtest",
"//third_party/blink/public:blink",
"//ui/gfx",
]
data_deps = [
"//tools/v8_context_snapshot",
]
configs += [
"//tools/v8_context_snapshot:use_v8_context_snapshot",
"//v8:external_startup_data",
]
}
fuzzer_test("bundled_exchanges_parser_fuzzer") {
sources = [
"bundled_exchanges_parser_fuzzer.cc",
]
deps = [
":lib",
"//base",
"//mojo/core/embedder",
]
seed_corpus = "//services/test/data/bundled_exchanges"
}
fuzzer_test("xml_parser_fuzzer") {
sources = [
"xml_parser_fuzzer.cc",
]
deps = [
":lib",
"//base",
"//third_party/libxml:libxml",
]
dict = "//third_party/libxml/fuzz/xml.dict"
seed_corpus = "//third_party/libxml/fuzz/seed_corpus"
}
if (is_chromeos) {
fuzzer_test("ble_scan_parser_fuzzer") {
sources = [
"ble_scan_parser_impl_fuzzer.cc",
]
deps = [
":lib",
]
}
}