| 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") | |
| 9 | 8 |
| 10 # Empty group for package discovery. | 9 # Empty group for package discovery. |
| 11 group("fuzzer") { | 10 group("fuzzer") { |
| 12 } | 11 } |
| 13 | 12 |
| 14 # gn complains of private dependencies in component build. | 13 # gn complains of private dependencies in component build. |
| 15 if (!is_component_build) { | 14 if (!is_component_build) { |
| 16 source_set("fuzzer_support") { | 15 source_set("fuzzer_support") { |
| 17 sources = [ | 16 sources = [ |
| 18 "fuzzer_support.cc", | 17 "fuzzer_support.cc", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 sources = [ | 60 sources = [ |
| 62 "clear_site_data_fuzzer.cc", | 61 "clear_site_data_fuzzer.cc", |
| 63 ] | 62 ] |
| 64 deps = [ | 63 deps = [ |
| 65 ":fuzzer_support", | 64 ":fuzzer_support", |
| 66 "//base", | 65 "//base", |
| 67 "//content/browser:for_content_tests", | 66 "//content/browser:for_content_tests", |
| 68 ] | 67 ] |
| 69 seed_corpus = "//content/test/data/fuzzer_corpus/clear_site_data/" | 68 seed_corpus = "//content/test/data/fuzzer_corpus/clear_site_data/" |
| 70 } | 69 } |
| 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 } | |
| 89 } | 70 } |
| OLD | NEW |