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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 "--coverage-dir", | 558 "--coverage-dir", |
559 rebase_path("$root_out_dir/coverage", root_build_dir), | 559 rebase_path("$root_out_dir/coverage", root_build_dir), |
560 ] | 560 ] |
561 } | 561 } |
562 } else if (_test_type == "junit") { | 562 } else if (_test_type == "junit") { |
563 assert(defined(invoker.test_suite)) | 563 assert(defined(invoker.test_suite)) |
564 test_runner_args += [ | 564 test_runner_args += [ |
565 "--test-suite", | 565 "--test-suite", |
566 invoker.test_suite, | 566 invoker.test_suite, |
567 ] | 567 ] |
| 568 if (defined(invoker.android_manifest_path)) { |
| 569 test_runner_args += [ |
| 570 "--android-manifest-path", |
| 571 rebase_path(invoker.android_manifest_path, root_build_dir), |
| 572 ] |
| 573 } |
| 574 if (defined(invoker.resource_dir)) { |
| 575 test_runner_args += [ |
| 576 "--resource-dir", |
| 577 rebase_path(invoker.resource_dir, root_build_dir), |
| 578 ] |
| 579 } |
| 580 if (defined(invoker.package_name)) { |
| 581 test_runner_args += [ |
| 582 "--package-name", |
| 583 invoker.package_name, |
| 584 ] |
| 585 } |
| 586 test_runner_args += [ |
| 587 "--robolectric-runtime-deps-dir", |
| 588 rebase_path("$root_build_dir/lib.java/third_party/robolectric", |
| 589 root_build_dir), |
| 590 ] |
568 } else if (_test_type == "linker") { | 591 } else if (_test_type == "linker") { |
569 test_runner_args += [ | 592 test_runner_args += [ |
570 "--test-apk", | 593 "--test-apk", |
571 "@FileArg($_rebased_apk_build_config:deps_info:apk_path)", | 594 "@FileArg($_rebased_apk_build_config:deps_info:apk_path)", |
572 ] | 595 ] |
573 } else { | 596 } else { |
574 assert(false, "Invalid test type: $_test_type.") | 597 assert(false, "Invalid test type: $_test_type.") |
575 } | 598 } |
576 | 599 |
577 if (defined(invoker.additional_apks)) { | 600 if (defined(invoker.additional_apks)) { |
(...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2774 rebase_path(root_build_dir, root_build_dir), | 2797 rebase_path(root_build_dir, root_build_dir), |
2775 "--packed-libraries-dir", | 2798 "--packed-libraries-dir", |
2776 rebase_path(_packed_libraries_dir, root_build_dir), | 2799 rebase_path(_packed_libraries_dir, root_build_dir), |
2777 "--libraries=${invoker.libraries_filearg}", | 2800 "--libraries=${invoker.libraries_filearg}", |
2778 "--filelistjson", | 2801 "--filelistjson", |
2779 rebase_path(invoker.file_list_json, root_build_dir), | 2802 rebase_path(invoker.file_list_json, root_build_dir), |
2780 ] | 2803 ] |
2781 } | 2804 } |
2782 } | 2805 } |
2783 } | 2806 } |
OLD | NEW |