Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("../../../tools/bindings/mojom.gni") | 5 import("../../../tools/bindings/mojom.gni") |
| 6 | 6 |
| 7 group("tests") { | |
| 8 testonly = true | |
| 9 deps = [ | |
| 10 ":test_data", | |
| 11 ":test_interfaces", | |
| 12 ] | |
| 13 } | |
| 14 | |
| 15 action("test_data") { | |
| 16 script = "gen_data_files_list.py" | |
| 17 outputs = [ | |
| 18 "$target_gen_dir/data_files.txt", | |
|
yzshen1
2017/03/23 17:46:20
please use a more specific name such as ".../data/
| |
| 19 "$target_gen_dir/data", | |
|
yzshen1
2017/03/23 17:46:20
I think outputs should list all the files instead
damargulis
2017/03/24 19:44:48
I've run into some problems using the "read_file"
| |
| 20 ] | |
| 21 args = rebase_path([ "data/validation" ] + outputs, root_build_dir) | |
| 22 } | |
| 23 | |
| 7 mojom("test_interfaces") { | 24 mojom("test_interfaces") { |
| 8 testonly = true | 25 testonly = true |
| 9 sources = [ | 26 sources = [ |
| 10 "math_calculator.mojom", | 27 "math_calculator.mojom", |
| 11 "no_module.mojom", | 28 "no_module.mojom", |
| 12 "ping_service.mojom", | 29 "ping_service.mojom", |
| 13 "rect.mojom", | 30 "rect.mojom", |
| 14 "regression_tests.mojom", | 31 "regression_tests.mojom", |
| 15 "sample_factory.mojom", | 32 "sample_factory.mojom", |
| 16 "sample_interfaces.mojom", | 33 "sample_interfaces.mojom", |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 ] | 208 ] |
| 192 } | 209 } |
| 193 | 210 |
| 194 mojom("test_no_sources") { | 211 mojom("test_no_sources") { |
| 195 testonly = true | 212 testonly = true |
| 196 | 213 |
| 197 public_deps = [ | 214 public_deps = [ |
| 198 ":test_interfaces", | 215 ":test_interfaces", |
| 199 ] | 216 ] |
| 200 } | 217 } |
| OLD | NEW |