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_interfaces", | |
| 11 ":validation_test_data", | |
|
alokp
2017/03/27 01:50:09
nit: Would it make sense to create a single target
| |
| 12 ":validation_test_data_list", | |
| 13 ] | |
| 14 } | |
| 15 | |
| 16 action("validation_test_data_list") { | |
| 17 script = "//mojo/public/tools/bindings/gen_data_files_list.py" | |
| 18 sources = [ | |
| 19 "data/validation", | |
| 20 ] | |
| 21 outputs = [ | |
| 22 "$target_gen_dir/validation_files.txt", | |
| 23 ] | |
| 24 args = [ | |
| 25 "-d", | |
| 26 rebase_path("data/validation", root_build_dir), | |
| 27 "-o", | |
| 28 rebase_path(outputs[0], root_build_dir), | |
| 29 ] | |
| 30 } | |
| 31 | |
| 32 copy("validation_test_data") { | |
| 33 sources = [ | |
| 34 "data/validation", | |
| 35 ] | |
| 36 outputs = [ | |
| 37 "$target_gen_dir/data/{{source_file_part}}", | |
| 38 ] | |
| 39 } | |
| 40 | |
| 7 mojom("test_interfaces") { | 41 mojom("test_interfaces") { |
| 8 testonly = true | 42 testonly = true |
| 9 sources = [ | 43 sources = [ |
| 10 "math_calculator.mojom", | 44 "math_calculator.mojom", |
| 11 "no_module.mojom", | 45 "no_module.mojom", |
| 12 "ping_service.mojom", | 46 "ping_service.mojom", |
| 13 "rect.mojom", | 47 "rect.mojom", |
| 14 "regression_tests.mojom", | 48 "regression_tests.mojom", |
| 15 "sample_factory.mojom", | 49 "sample_factory.mojom", |
| 16 "sample_interfaces.mojom", | 50 "sample_interfaces.mojom", |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 ] | 225 ] |
| 192 } | 226 } |
| 193 | 227 |
| 194 mojom("test_no_sources") { | 228 mojom("test_no_sources") { |
| 195 testonly = true | 229 testonly = true |
| 196 | 230 |
| 197 public_deps = [ | 231 public_deps = [ |
| 198 ":test_interfaces", | 232 ":test_interfaces", |
| 199 ] | 233 ] |
| 200 } | 234 } |
| OLD | NEW |