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

Side by Side Diff: third_party/sfntly/BUILD.gn

Issue 2268863003: Add a fuzzer for SfntlyWrapper::SubsetFont(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test corpus Created 4 years, 3 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 | « base/test/fuzzed_data_provider.cc ('k') | third_party/sfntly/fuzzers/DEPS » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium 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 import("//testing/libfuzzer/fuzzer_test.gni")
6
5 declare_args() { 7 declare_args() {
6 # Flip to true to build sfntly sample programs. 8 # Flip to true to build sfntly sample programs.
7 build_sfntly_samples = false 9 build_sfntly_samples = false
8 } 10 }
9 11
10 config("sfntly_common_config") { 12 config("sfntly_common_config") {
11 defines = [ "SFNTLY_NO_EXCEPTION" ] 13 defines = [ "SFNTLY_NO_EXCEPTION" ]
12 include_dirs = [ "src/cpp/src" ] 14 include_dirs = [ "src/cpp/src" ]
13 } 15 }
14 16
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 configs -= [ "//build/config/compiler:chromium_code" ] 153 configs -= [ "//build/config/compiler:chromium_code" ]
152 configs += [ "//build/config/compiler:no_chromium_code" ] 154 configs += [ "//build/config/compiler:no_chromium_code" ]
153 155
154 configs += [ ":sfntly_common_config" ] 156 configs += [ ":sfntly_common_config" ]
155 deps = [ 157 deps = [
156 ":sfntly_chromium", 158 ":sfntly_chromium",
157 "//third_party/icu:icuuc", 159 "//third_party/icu:icuuc",
158 ] 160 ]
159 } 161 }
160 162
163 fuzzer_test("sfntly_fuzzer") {
164 sources = [
165 "fuzzers/subset_font_fuzzer.cc",
166 ]
167 deps = [
168 ":sfntly",
169 "//base/test:test_support",
170 ]
171 seed_corpus = "fuzzers/corpora/sfntly_fuzzer"
172 }
173
161 if (build_sfntly_samples) { 174 if (build_sfntly_samples) {
162 source_set("sfntly_subtly") { 175 source_set("sfntly_subtly") {
163 sources = [ 176 sources = [
164 "src/cpp/src/sample/subtly/character_predicate.cc", 177 "src/cpp/src/sample/subtly/character_predicate.cc",
165 "src/cpp/src/sample/subtly/character_predicate.h", 178 "src/cpp/src/sample/subtly/character_predicate.h",
166 "src/cpp/src/sample/subtly/font_assembler.cc", 179 "src/cpp/src/sample/subtly/font_assembler.cc",
167 "src/cpp/src/sample/subtly/font_assembler.h", 180 "src/cpp/src/sample/subtly/font_assembler.h",
168 "src/cpp/src/sample/subtly/font_info.cc", 181 "src/cpp/src/sample/subtly/font_info.cc",
169 "src/cpp/src/sample/subtly/font_info.h", 182 "src/cpp/src/sample/subtly/font_info.h",
170 "src/cpp/src/sample/subtly/merger.cc", 183 "src/cpp/src/sample/subtly/merger.cc",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 configs += [ ":sfntly_common_config" ] 271 configs += [ ":sfntly_common_config" ]
259 deps = [ 272 deps = [
260 ":sfntly", 273 ":sfntly",
261 ":sfntly_subtly", 274 ":sfntly_subtly",
262 ] 275 ]
263 include_dirs = [ "src/cpp/src/sample" ] 276 include_dirs = [ "src/cpp/src/sample" ]
264 } 277 }
265 278
266 # TODO(thestig): Get sfntly_unittests to build. 279 # TODO(thestig): Get sfntly_unittests to build.
267 } 280 }
OLDNEW
« no previous file with comments | « base/test/fuzzed_data_provider.cc ('k') | third_party/sfntly/fuzzers/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698