| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # Defines fuzzer_test. | 5 # Defines fuzzer_test. |
| 6 # | 6 # |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 forward_variables_from(invoker, | 120 forward_variables_from(invoker, |
| 121 [ | 121 [ |
| 122 "sources", | 122 "sources", |
| 123 "include_dirs", | 123 "include_dirs", |
| 124 ]) | 124 ]) |
| 125 deps = test_deps | 125 deps = test_deps |
| 126 | 126 |
| 127 if (defined(invoker.additional_configs)) { | 127 if (defined(invoker.additional_configs)) { |
| 128 configs += invoker.additional_configs | 128 configs += invoker.additional_configs |
| 129 } | 129 } |
| 130 configs += [ "//testing/libfuzzer:fuzzer_test_config" ] | |
| 131 } | 130 } |
| 132 } else { | 131 } else { |
| 133 # noop on unsupported platforms. | 132 # noop on unsupported platforms. |
| 134 # mark attributes as used. | 133 # mark attributes as used. |
| 135 assert(invoker.sources == [] || invoker.sources != []) | 134 assert(invoker.sources == [] || invoker.sources != []) |
| 136 if (defined(invoker.additional_configs)) { | 135 if (defined(invoker.additional_configs)) { |
| 137 assert( | 136 assert( |
| 138 invoker.additional_configs == [] || invoker.additional_configs != []) | 137 invoker.additional_configs == [] || invoker.additional_configs != []) |
| 139 } | 138 } |
| 140 if (defined(invoker.deps)) { | 139 if (defined(invoker.deps)) { |
| 141 assert(invoker.deps == [] || invoker.deps != []) | 140 assert(invoker.deps == [] || invoker.deps != []) |
| 142 } | 141 } |
| 143 if (defined(invoker.dict)) { | 142 if (defined(invoker.dict)) { |
| 144 assert(invoker.dict == [] || invoker.dict != []) | 143 assert(invoker.dict == [] || invoker.dict != []) |
| 145 } | 144 } |
| 146 if (defined(invoker.libfuzzer_options)) { | 145 if (defined(invoker.libfuzzer_options)) { |
| 147 assert(invoker.libfuzzer_options == [] || invoker.libfuzzer_options != []) | 146 assert(invoker.libfuzzer_options == [] || invoker.libfuzzer_options != []) |
| 148 } | 147 } |
| 149 if (defined(invoker.seed_corpus)) { | 148 if (defined(invoker.seed_corpus)) { |
| 150 assert(invoker.seed_corpus == [] || invoker.seed_corpus != []) | 149 assert(invoker.seed_corpus == [] || invoker.seed_corpus != []) |
| 151 } | 150 } |
| 152 | 151 |
| 153 group(target_name) { | 152 group(target_name) { |
| 154 } | 153 } |
| 155 } | 154 } |
| 156 } | 155 } |
| OLD | NEW |