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 # Do not add any imports to non-//build directories here. | 5 # Do not add any imports to non-//build directories here. |
6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. | 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. |
7 import("//build_overrides/build.gni") | 7 import("//build_overrides/build.gni") |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 import("//build/config/dcheck_always_on.gni") | 9 import("//build/config/dcheck_always_on.gni") |
10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 "--coverage-dir", | 561 "--coverage-dir", |
562 rebase_path("$root_out_dir/coverage", root_build_dir), | 562 rebase_path("$root_out_dir/coverage", root_build_dir), |
563 ] | 563 ] |
564 } | 564 } |
565 } else if (_test_type == "junit") { | 565 } else if (_test_type == "junit") { |
566 assert(defined(invoker.test_suite)) | 566 assert(defined(invoker.test_suite)) |
567 test_runner_args += [ | 567 test_runner_args += [ |
568 "--test-suite", | 568 "--test-suite", |
569 invoker.test_suite, | 569 invoker.test_suite, |
570 ] | 570 ] |
| 571 if (defined(invoker.android_manifest_path)) { |
| 572 test_runner_args += [ |
| 573 "--android-manifest-path", |
| 574 rebase_path(invoker.android_manifest_path, root_build_dir), |
| 575 ] |
| 576 } |
| 577 if (defined(invoker.resource_dirs)) { |
| 578 foreach(resource_dir, invoker.resource_dirs) { |
| 579 test_runner_args += [ |
| 580 "--resource-dir", |
| 581 rebase_path(resource_dir, root_build_dir), |
| 582 ] |
| 583 } |
| 584 } |
| 585 if (defined(invoker.package_name)) { |
| 586 test_runner_args += [ |
| 587 "--package-name", |
| 588 invoker.package_name, |
| 589 ] |
| 590 } |
| 591 test_runner_args += [ |
| 592 "--robolectric-runtime-deps-dir", |
| 593 rebase_path("$root_build_dir/lib.java/third_party/robolectric", |
| 594 root_build_dir), |
| 595 ] |
571 } else if (_test_type == "linker") { | 596 } else if (_test_type == "linker") { |
572 test_runner_args += [ | 597 test_runner_args += [ |
573 "--test-apk", | 598 "--test-apk", |
574 "@FileArg($_rebased_apk_build_config:deps_info:apk_path)", | 599 "@FileArg($_rebased_apk_build_config:deps_info:apk_path)", |
575 ] | 600 ] |
576 } else { | 601 } else { |
577 assert(false, "Invalid test type: $_test_type.") | 602 assert(false, "Invalid test type: $_test_type.") |
578 } | 603 } |
579 | 604 |
580 if (defined(invoker.additional_apks)) { | 605 if (defined(invoker.additional_apks)) { |
(...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2777 rebase_path(root_build_dir, root_build_dir), | 2802 rebase_path(root_build_dir, root_build_dir), |
2778 "--packed-libraries-dir", | 2803 "--packed-libraries-dir", |
2779 rebase_path(_packed_libraries_dir, root_build_dir), | 2804 rebase_path(_packed_libraries_dir, root_build_dir), |
2780 "--libraries=${invoker.libraries_filearg}", | 2805 "--libraries=${invoker.libraries_filearg}", |
2781 "--filelistjson", | 2806 "--filelistjson", |
2782 rebase_path(invoker.file_list_json, root_build_dir), | 2807 rebase_path(invoker.file_list_json, root_build_dir), |
2783 ] | 2808 ] |
2784 } | 2809 } |
2785 } | 2810 } |
2786 } | 2811 } |
OLD | NEW |