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", | |
| 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 data = [ | |
| 19 "data/validation/", | |
| 20 ] | |
| 21 outputs = [ | |
| 22 "$target_gen_dir/validation_files.txt", | |
| 23 ] | |
| 24 args = rebase_path([ "data/validation" ] + outputs, root_build_dir) | |
| 25 } | |
| 26 | |
| 27 copy("validation_test_data") { | |
| 28 sources = [ | |
|
damargulis
2017/03/24 23:07:17
I take back all my previous comments! Copy does a
| |
| 29 "data/validation", | |
| 30 ] | |
| 31 outputs = [ | |
| 32 "$target_gen_dir/data/{{source_file_part}}", | |
| 33 ] | |
| 34 } | |
| 35 | |
| 7 mojom("test_interfaces") { | 36 mojom("test_interfaces") { |
| 8 testonly = true | 37 testonly = true |
| 9 sources = [ | 38 sources = [ |
| 10 "math_calculator.mojom", | 39 "math_calculator.mojom", |
| 11 "no_module.mojom", | 40 "no_module.mojom", |
| 12 "ping_service.mojom", | 41 "ping_service.mojom", |
| 13 "rect.mojom", | 42 "rect.mojom", |
| 14 "regression_tests.mojom", | 43 "regression_tests.mojom", |
| 15 "sample_factory.mojom", | 44 "sample_factory.mojom", |
| 16 "sample_interfaces.mojom", | 45 "sample_interfaces.mojom", |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 ] | 220 ] |
| 192 } | 221 } |
| 193 | 222 |
| 194 mojom("test_no_sources") { | 223 mojom("test_no_sources") { |
| 195 testonly = true | 224 testonly = true |
| 196 | 225 |
| 197 public_deps = [ | 226 public_deps = [ |
| 198 ":test_interfaces", | 227 ":test_interfaces", |
| 199 ] | 228 ] |
| 200 } | 229 } |
| OLD | NEW |