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") { | |
|
Dirk Pranke
2017/05/03 20:30:33
Nit: I'd usually think "tests" referred to a list
alokp
2017/05/04 21:05:28
You are right and this is something I want to fix.
| |
| 8 testonly = true | |
| 9 deps = [ | |
| 10 ":test_interfaces", | |
| 11 ] | |
| 12 data_deps = [ | |
| 13 ":test_data", | |
| 14 ":test_data_list", | |
| 15 ] | |
| 16 } | |
| 17 | |
| 18 copy("test_data") { | |
| 19 testonly = true | |
| 20 sources = [ | |
| 21 "data/validation", | |
| 22 ] | |
| 23 outputs = [ | |
| 24 "$root_gen_dir/layout_test_data/{{source_root_relative_dir}}/{{source_file_p art}}", | |
| 25 ] | |
| 26 } | |
| 27 | |
| 28 action_foreach("test_data_list") { | |
| 29 testonly = true | |
| 30 script = "//mojo/public/tools/bindings/gen_data_files_list.py" | |
| 31 sources = [ | |
| 32 "data/validation", | |
| 33 ] | |
| 34 outputs = [ | |
| 35 "$root_gen_dir/layout_test_data/{{source_root_relative_dir}}/{{source_file_p art}}/index.txt", | |
|
yzshen1
2017/05/03 05:48:23
What is {{source_file_part}} in this case? Is it "
alokp
2017/05/03 06:09:15
Yes. This resolves to $root_gen_dir/layout_test_da
| |
| 36 ] | |
| 37 args = [ | |
| 38 "-d", | |
| 39 rebase_path(sources[0], root_build_dir), | |
| 40 "-o", | |
| 41 rebase_path(outputs[0], root_build_dir), | |
| 42 ] | |
| 43 } | |
| 44 | |
| 7 mojom("test_interfaces") { | 45 mojom("test_interfaces") { |
| 8 testonly = true | 46 testonly = true |
| 9 sources = [ | 47 sources = [ |
| 10 "math_calculator.mojom", | 48 "math_calculator.mojom", |
| 11 "no_module.mojom", | 49 "no_module.mojom", |
| 12 "ping_service.mojom", | 50 "ping_service.mojom", |
| 13 "rect.mojom", | 51 "rect.mojom", |
| 14 "regression_tests.mojom", | 52 "regression_tests.mojom", |
| 15 "sample_factory.mojom", | 53 "sample_factory.mojom", |
| 16 "sample_interfaces.mojom", | 54 "sample_interfaces.mojom", |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 } | 233 } |
| 196 | 234 |
| 197 mojom("echo") { | 235 mojom("echo") { |
| 198 testonly = true | 236 testonly = true |
| 199 sources = [ | 237 sources = [ |
| 200 "echo.mojom", | 238 "echo.mojom", |
| 201 "echo_import.mojom", | 239 "echo_import.mojom", |
| 202 ] | 240 ] |
| 203 use_new_js_bindings = true | 241 use_new_js_bindings = true |
| 204 } | 242 } |
| OLD | NEW |