| 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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 } else { | 550 } else { |
| 551 assert(false, "Invalid test type: $_test_type.") | 551 assert(false, "Invalid test type: $_test_type.") |
| 552 } | 552 } |
| 553 | 553 |
| 554 if (defined(invoker.additional_apks)) { | 554 if (defined(invoker.additional_apks)) { |
| 555 foreach(additional_apk, invoker.additional_apks) { | 555 foreach(additional_apk, invoker.additional_apks) { |
| 556 deps += [ "${additional_apk}__build_config" ] | 556 deps += [ "${additional_apk}__build_config" ] |
| 557 _build_config = get_label_info(additional_apk, "target_gen_dir") + "/" + | 557 _build_config = get_label_info(additional_apk, "target_gen_dir") + "/" + |
| 558 get_label_info(additional_apk, "name") + ".build_config" | 558 get_label_info(additional_apk, "name") + ".build_config" |
| 559 _rebased_build_config = rebase_path(_build_config, root_build_dir) | 559 _rebased_build_config = rebase_path(_build_config, root_build_dir) |
| 560 |
| 561 _additional_apk_path = |
| 562 "@FileArg($_rebased_build_config:deps_info:apk_path)" |
| 563 if (_incremental_install) { |
| 564 _additional_apk_path = |
| 565 "@FileArg($_rebased_build_config:deps_info:incremental_apk_path)" |
| 566 } |
| 567 |
| 560 test_runner_args += [ | 568 test_runner_args += [ |
| 561 "--additional-apk", | 569 "--additional-apk", |
| 562 "@FileArg($_rebased_build_config:deps_info:apk_path)", | 570 _additional_apk_path, |
| 563 ] | 571 ] |
| 564 } | 572 } |
| 565 } | 573 } |
| 566 if (defined(invoker.shard_timeout)) { | 574 if (defined(invoker.shard_timeout)) { |
| 567 test_runner_args += [ "--shard-timeout=${invoker.shard_timeout}" ] | 575 test_runner_args += [ "--shard-timeout=${invoker.shard_timeout}" ] |
| 568 } | 576 } |
| 569 if (_incremental_install) { | 577 if (_incremental_install) { |
| 570 test_runner_args += [ | 578 test_runner_args += [ |
| 571 "--test-apk-incremental-install-script", | 579 "--test-apk-incremental-install-script", |
| 572 "@FileArg($_rebased_apk_build_config:deps_info:incremental_install_scrip
t_path)", | 580 "@FileArg($_rebased_apk_build_config:deps_info:incremental_install_scrip
t_path)", |
| (...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2788 rebase_path(root_build_dir, root_build_dir), | 2796 rebase_path(root_build_dir, root_build_dir), |
| 2789 "--packed-libraries-dir", | 2797 "--packed-libraries-dir", |
| 2790 rebase_path(_packed_libraries_dir, root_build_dir), | 2798 rebase_path(_packed_libraries_dir, root_build_dir), |
| 2791 "--libraries=${invoker.libraries_filearg}", | 2799 "--libraries=${invoker.libraries_filearg}", |
| 2792 "--filelistjson", | 2800 "--filelistjson", |
| 2793 rebase_path(invoker.file_list_json, root_build_dir), | 2801 rebase_path(invoker.file_list_json, root_build_dir), |
| 2794 ] | 2802 ] |
| 2795 } | 2803 } |
| 2796 } | 2804 } |
| 2797 } | 2805 } |
| OLD | NEW |