OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 # Fuzzers for content/ components. | 5 # Fuzzers for content/ components. |
6 | 6 |
7 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
| 8 import("//third_party/protobuf/proto_library.gni") |
8 | 9 |
9 # Empty group for package discovery. | 10 # Empty group for package discovery. |
10 group("fuzzer") { | 11 group("fuzzer") { |
11 } | 12 } |
12 | 13 |
13 # gn complains of private dependencies in component build. | 14 # gn complains of private dependencies in component build. |
14 if (!is_component_build) { | 15 if (!is_component_build) { |
15 source_set("fuzzer_support") { | 16 source_set("fuzzer_support") { |
16 sources = [ | 17 sources = [ |
17 "fuzzer_support.cc", | 18 "fuzzer_support.cc", |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 sources = [ | 61 sources = [ |
61 "clear_site_data_fuzzer.cc", | 62 "clear_site_data_fuzzer.cc", |
62 ] | 63 ] |
63 deps = [ | 64 deps = [ |
64 ":fuzzer_support", | 65 ":fuzzer_support", |
65 "//base", | 66 "//base", |
66 "//content/browser:for_content_tests", | 67 "//content/browser:for_content_tests", |
67 ] | 68 ] |
68 seed_corpus = "//content/test/data/fuzzer_corpus/clear_site_data/" | 69 seed_corpus = "//content/test/data/fuzzer_corpus/clear_site_data/" |
69 } | 70 } |
| 71 |
| 72 fuzzer_test("renderer_proto_tree_fuzzer") { |
| 73 sources = [ |
| 74 "renderer_proto_tree_fuzzer.cc", |
| 75 ] |
| 76 deps = [ |
| 77 ":fuzzer_support", |
| 78 ":html_tree_proto", |
| 79 "//third_party/libprotobuf-mutator", |
| 80 ] |
| 81 } |
| 82 |
| 83 proto_library("html_tree_proto") { |
| 84 sources = [ |
| 85 "html_tree.proto", |
| 86 ] |
| 87 testonly = true |
| 88 } |
70 } | 89 } |
OLD | NEW |