| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 forward_variables_from(invoker, | 111 forward_variables_from(invoker, |
| 112 [ | 112 [ |
| 113 "sources", | 113 "sources", |
| 114 "include_dirs", | 114 "include_dirs", |
| 115 ]) | 115 ]) |
| 116 deps = test_deps | 116 deps = test_deps |
| 117 | 117 |
| 118 if (defined(invoker.additional_configs)) { | 118 if (defined(invoker.additional_configs)) { |
| 119 configs += invoker.additional_configs | 119 configs += invoker.additional_configs |
| 120 } | 120 } |
| 121 configs += [ "//testing/libfuzzer:fuzzer_test_config" ] |
| 121 } | 122 } |
| 122 } else { | 123 } else { |
| 123 # noop on unsupported platforms. | 124 # noop on unsupported platforms. |
| 124 # mark attributes as used. | 125 # mark attributes as used. |
| 125 assert(invoker.sources == [] || invoker.sources != []) | 126 assert(invoker.sources == [] || invoker.sources != []) |
| 126 if (defined(invoker.additional_configs)) { | 127 if (defined(invoker.additional_configs)) { |
| 127 assert( | 128 assert( |
| 128 invoker.additional_configs == [] || invoker.additional_configs != []) | 129 invoker.additional_configs == [] || invoker.additional_configs != []) |
| 129 } | 130 } |
| 130 if (defined(invoker.deps)) { | 131 if (defined(invoker.deps)) { |
| 131 assert(invoker.deps == [] || invoker.deps != []) | 132 assert(invoker.deps == [] || invoker.deps != []) |
| 132 } | 133 } |
| 133 if (defined(invoker.dict)) { | 134 if (defined(invoker.dict)) { |
| 134 assert(invoker.dict == [] || invoker.dict != []) | 135 assert(invoker.dict == [] || invoker.dict != []) |
| 135 } | 136 } |
| 136 if (defined(invoker.libfuzzer_options)) { | 137 if (defined(invoker.libfuzzer_options)) { |
| 137 assert(invoker.libfuzzer_options == [] || invoker.libfuzzer_options != []) | 138 assert(invoker.libfuzzer_options == [] || invoker.libfuzzer_options != []) |
| 138 } | 139 } |
| 139 if (defined(invoker.seed_corpus)) { | 140 if (defined(invoker.seed_corpus)) { |
| 140 assert(invoker.seed_corpus == [] || invoker.seed_corpus != []) | 141 assert(invoker.seed_corpus == [] || invoker.seed_corpus != []) |
| 141 } | 142 } |
| 142 | 143 |
| 143 group(target_name) { | 144 group(target_name) { |
| 144 } | 145 } |
| 145 } | 146 } |
| 146 } | 147 } |
| OLD | NEW |