| 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 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/config/zip.gni") | 7 import("//build/config/zip.gni") |
| 8 import("//third_party/ijar/ijar.gni") | 8 import("//third_party/ijar/ijar.gni") |
| 9 | 9 |
| 10 assert(is_android) | 10 assert(is_android) |
| (...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2085 ] | 2085 ] |
| 2086 } | 2086 } |
| 2087 } | 2087 } |
| 2088 if (defined(invoker.isolate_file)) { | 2088 if (defined(invoker.isolate_file)) { |
| 2089 test_runner_args += [ | 2089 test_runner_args += [ |
| 2090 "--isolate-file-path", | 2090 "--isolate-file-path", |
| 2091 rebase_path(invoker.isolate_file, root_build_dir), | 2091 rebase_path(invoker.isolate_file, root_build_dir), |
| 2092 ] | 2092 ] |
| 2093 } | 2093 } |
| 2094 if (defined(invoker.incremental_install) && invoker.incremental_install) { | 2094 if (defined(invoker.incremental_install) && invoker.incremental_install) { |
| 2095 test_runner_args += [ "--incremental-install" ] | |
| 2096 | |
| 2097 # These can still be overridden, but make more better defaults during | |
| 2098 # development. | |
| 2099 test_runner_args += [ | 2095 test_runner_args += [ |
| 2100 "--enable-device-cache", | 2096 "--incremental-install", |
| 2101 "--extract-test-list-from-filter", | 2097 "--fast-local-dev", |
| 2102 "--num_retries=0", | |
| 2103 "--skip-clear-data", # Clearing wipes optimized dex files. | |
| 2104 ] | 2098 ] |
| 2105 } | 2099 } |
| 2106 if (is_asan) { | 2100 if (is_asan) { |
| 2107 test_runner_args += [ "--tool=asan" ] | 2101 test_runner_args += [ "--tool=asan" ] |
| 2108 } | 2102 } |
| 2109 | 2103 |
| 2110 generated_script = "$root_build_dir/bin/run_${_test_name}" | 2104 generated_script = "$root_build_dir/bin/run_${_test_name}" |
| 2111 outputs = [ | 2105 outputs = [ |
| 2112 depfile, | 2106 depfile, |
| 2113 generated_script, | 2107 generated_script, |
| 2114 ] | 2108 ] |
| 2115 args = [ | 2109 args = [ |
| 2116 "--depfile", | 2110 "--depfile", |
| 2117 rebase_path(depfile, root_build_dir), | 2111 rebase_path(depfile, root_build_dir), |
| 2118 "--script-output-path", | 2112 "--script-output-path", |
| 2119 rebase_path(generated_script, root_build_dir), | 2113 rebase_path(generated_script, root_build_dir), |
| 2120 ] | 2114 ] |
| 2121 args += test_runner_args | 2115 args += test_runner_args |
| 2122 } | 2116 } |
| 2123 } | 2117 } |
| OLD | NEW |