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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 "$root_build_dir/$config_name", | 101 "$root_build_dir/$config_name", |
102 ] | 102 ] |
103 } | 103 } |
104 test_deps += [ ":" + config_name ] | 104 test_deps += [ ":" + config_name ] |
105 } | 105 } |
106 | 106 |
107 test(target_name) { | 107 test(target_name) { |
108 forward_variables_from(invoker, | 108 forward_variables_from(invoker, |
109 [ | 109 [ |
110 "check_includes", | 110 "check_includes", |
| 111 "defines", |
111 "include_dirs", | 112 "include_dirs", |
112 "sources", | 113 "sources", |
113 ]) | 114 ]) |
114 deps = test_deps | 115 deps = test_deps |
115 | 116 |
116 if (defined(invoker.additional_configs)) { | 117 if (defined(invoker.additional_configs)) { |
117 configs += invoker.additional_configs | 118 configs += invoker.additional_configs |
118 } | 119 } |
119 configs += [ "//testing/libfuzzer:fuzzer_test_config" ] | 120 configs += [ "//testing/libfuzzer:fuzzer_test_config" ] |
120 | 121 |
(...skipping 16 matching lines...) Expand all Loading... |
137 if (defined(invoker.dict)) { | 138 if (defined(invoker.dict)) { |
138 assert(invoker.dict == [] || invoker.dict != []) | 139 assert(invoker.dict == [] || invoker.dict != []) |
139 } | 140 } |
140 if (defined(invoker.libfuzzer_options)) { | 141 if (defined(invoker.libfuzzer_options)) { |
141 assert(invoker.libfuzzer_options == [] || invoker.libfuzzer_options != []) | 142 assert(invoker.libfuzzer_options == [] || invoker.libfuzzer_options != []) |
142 } | 143 } |
143 if (defined(invoker.seed_corpus)) { | 144 if (defined(invoker.seed_corpus)) { |
144 assert(invoker.seed_corpus == [] || invoker.seed_corpus != []) | 145 assert(invoker.seed_corpus == [] || invoker.seed_corpus != []) |
145 } | 146 } |
146 assert(!defined(invoker.check_includes) || invoker.check_includes != []) | 147 assert(!defined(invoker.check_includes) || invoker.check_includes != []) |
| 148 assert(!defined(invoker.include_dirs) || invoker.include_dirs != []) |
| 149 assert(!defined(invoker.defines) || invoker.defines != []) |
147 | 150 |
148 group(target_name) { | 151 group(target_name) { |
149 } | 152 } |
150 } | 153 } |
151 } | 154 } |
OLD | NEW |