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("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 | 6 |
| 7 assert(is_android) | 7 assert(is_android) |
| 8 | 8 |
| 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
| 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) | 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) |
| (...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1539 test_runner_args += [ | 1539 test_runner_args += [ |
| 1540 "--suite", | 1540 "--suite", |
| 1541 invoker.test_suite, | 1541 invoker.test_suite, |
| 1542 ] | 1542 ] |
| 1543 } else if (_test_type == "instrumentation") { | 1543 } else if (_test_type == "instrumentation") { |
| 1544 assert(defined(invoker.test_apk)) | 1544 assert(defined(invoker.test_apk)) |
| 1545 test_runner_args += [ | 1545 test_runner_args += [ |
| 1546 "--test-apk", | 1546 "--test-apk", |
| 1547 invoker.test_apk, | 1547 invoker.test_apk, |
| 1548 ] | 1548 ] |
| 1549 if (defined(invoker.support_apk_path)) { | |
| 1550 test_runner_args += [ | |
| 1551 "--support-apk", | |
| 1552 invoker.support_apk_path, | |
|
cjhopman
2015/06/30 23:07:13
invoker.support_apk_path should be relative to the
dgn
2015/07/01 09:56:28
OK, I had done it on the caller's side: https://ch
| |
| 1553 ] | |
| 1554 } | |
| 1549 } else { | 1555 } else { |
| 1550 assert(false, "Invalid test type: $_test_type.") | 1556 assert(false, "Invalid test type: $_test_type.") |
| 1551 } | 1557 } |
| 1552 | 1558 |
| 1553 if (defined(invoker.isolate_file)) { | 1559 if (defined(invoker.isolate_file)) { |
| 1554 test_runner_args += [ | 1560 test_runner_args += [ |
| 1555 "--isolate-file-path", | 1561 "--isolate-file-path", |
| 1556 rebase_path(invoker.isolate_file, root_build_dir), | 1562 rebase_path(invoker.isolate_file, root_build_dir), |
| 1557 ] | 1563 ] |
| 1558 } | 1564 } |
| 1559 | 1565 |
| 1560 generated_script = "$root_build_dir/bin/run_${_test_name}" | 1566 generated_script = "$root_build_dir/bin/run_${_test_name}" |
| 1561 outputs = [ | 1567 outputs = [ |
| 1562 depfile, | 1568 depfile, |
| 1563 generated_script, | 1569 generated_script, |
| 1564 ] | 1570 ] |
| 1565 args = [ | 1571 args = [ |
| 1566 "--depfile", | 1572 "--depfile", |
| 1567 rebase_path(depfile, root_build_dir), | 1573 rebase_path(depfile, root_build_dir), |
| 1568 "--script-output-path", | 1574 "--script-output-path", |
| 1569 rebase_path(generated_script, root_build_dir), | 1575 rebase_path(generated_script, root_build_dir), |
| 1570 ] | 1576 ] |
| 1571 args += test_runner_args | 1577 args += test_runner_args |
| 1572 } | 1578 } |
| 1573 } | 1579 } |
| OLD | NEW |