| 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 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'adb', | 8 'adb', |
| 9 'chromium', | 9 'chromium', |
| 10 'chromium_android', | 10 'chromium_android', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'adb_vendor_keys': True, | 50 'adb_vendor_keys': True, |
| 51 }, | 51 }, |
| 52 'perf_runner_allow_high_battery_temp': { | 52 'perf_runner_allow_high_battery_temp': { |
| 53 'perf_config': 'sharded_perf_tests.json', | 53 'perf_config': 'sharded_perf_tests.json', |
| 54 'max_battery_temp': 500, | 54 'max_battery_temp': 500, |
| 55 }, | 55 }, |
| 56 'gerrit_try_builder': { | 56 'gerrit_try_builder': { |
| 57 'build': True, | 57 'build': True, |
| 58 'skip_wipe': True, | 58 'skip_wipe': True, |
| 59 }, | 59 }, |
| 60 'java_method_count_builder': { | |
| 61 'build': True, | |
| 62 'java_method_count': True, | |
| 63 }, | |
| 64 'webview_tester': { | 60 'webview_tester': { |
| 65 'remove_system_webview': True, | 61 'remove_system_webview': True, |
| 66 'disable_system_chrome': True, | 62 'disable_system_chrome': True, |
| 67 }, | 63 }, |
| 68 'slow_tester': { | 64 'slow_tester': { |
| 69 'timeout_scale': 2, | 65 'timeout_scale': 2, |
| 70 }, | 66 }, |
| 71 'specific_install_tester': { | 67 'specific_install_tester': { |
| 72 'specific_install': True, | 68 'specific_install': True, |
| 73 }, | 69 }, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 145 |
| 150 if config.get('build', False): | 146 if config.get('build', False): |
| 151 api.chromium.compile() | 147 api.chromium.compile() |
| 152 api.chromium_android.make_zip_archive('zip_build_proudct', 'archive.zip', | 148 api.chromium_android.make_zip_archive('zip_build_proudct', 'archive.zip', |
| 153 filters=['*.apk']) | 149 filters=['*.apk']) |
| 154 else: | 150 else: |
| 155 api.chromium_android.download_build('build-bucket', | 151 api.chromium_android.download_build('build-bucket', |
| 156 'build_product.zip') | 152 'build_product.zip') |
| 157 api.chromium_android.git_number() | 153 api.chromium_android.git_number() |
| 158 | 154 |
| 159 if config.get('java_method_count'): | |
| 160 api.chromium_android.java_method_count( | |
| 161 api.chromium.output_dir.join('chrome_public_apk', 'classes.dex.zip')) | |
| 162 | |
| 163 if config.get('specific_install'): | 155 if config.get('specific_install'): |
| 164 api.chromium_android.adb_install_apk('Chrome.apk', devices=['abc123']) | 156 api.chromium_android.adb_install_apk('Chrome.apk', devices=['abc123']) |
| 165 | 157 |
| 166 api.adb.root_devices() | 158 api.adb.root_devices() |
| 167 api.chromium_android.spawn_logcat_monitor() | 159 api.chromium_android.spawn_logcat_monitor() |
| 168 | 160 |
| 169 failure = False | 161 failure = False |
| 170 try: | 162 try: |
| 171 # TODO(luqui): remove redundant cruft, need one consistent API. | 163 # TODO(luqui): remove redundant cruft, need one consistent API. |
| 172 api.chromium_android.detect_and_setup_devices() | 164 api.chromium_android.detect_and_setup_devices() |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 'unittests', | 219 'unittests', |
| 228 isolate_file_path=api.path['checkout'].join('some_file.isolate'), | 220 isolate_file_path=api.path['checkout'].join('some_file.isolate'), |
| 229 gtest_filter='WebRtc*', | 221 gtest_filter='WebRtc*', |
| 230 tool='asan') | 222 tool='asan') |
| 231 if not failure: | 223 if not failure: |
| 232 api.chromium_android.run_bisect_script(extra_src='test.py', | 224 api.chromium_android.run_bisect_script(extra_src='test.py', |
| 233 path_to_config='test.py') | 225 path_to_config='test.py') |
| 234 | 226 |
| 235 if config.get('resource_size'): | 227 if config.get('resource_size'): |
| 236 api.chromium_android.resource_sizes( | 228 api.chromium_android.resource_sizes( |
| 237 apk_path=api.chromium_android.apk_path('Chrome.apk'), | 229 apk_path=api.chromium_android.apk_path('Example.apk'), |
| 238 so_path=api.path['checkout'].join( | 230 chartjson_file=True, |
| 239 'out', api.chromium.c.BUILD_CONFIG, 'chrome_apk', 'libs', | 231 upload_archives_to_bucket='Bucket') |
| 240 'armeabi-v7a', 'libchrome.so'), | |
| 241 so_with_symbols_path=api.path['checkout'].join( | |
| 242 'out', api.chromium.c.BUILD_CONFIG, 'lib', 'libchrome.so'), | |
| 243 chartjson_file=True) | |
| 244 | 232 |
| 245 if config.get('run_webview_cts'): | 233 if config.get('run_webview_cts'): |
| 246 api.chromium_android.run_webview_cts(command_line_args=[ | 234 api.chromium_android.run_webview_cts(command_line_args=[ |
| 247 '--webview_arg_1', '--webview_arg_2']) | 235 '--webview_arg_1', '--webview_arg_2']) |
| 248 | 236 |
| 249 if config.get('run_telemetry_browser_tests'): | 237 if config.get('run_telemetry_browser_tests'): |
| 250 api.chromium_android.run_telemetry_browser_test('PopularUrlsTest') | 238 api.chromium_android.run_telemetry_browser_test('PopularUrlsTest') |
| 251 | 239 |
| 252 api.chromium_android.logcat_dump() | 240 api.chromium_android.logcat_dump() |
| 253 api.chromium_android.stack_tool_steps() | 241 api.chromium_android.stack_tool_steps() |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 properties_for('tester') + | 426 properties_for('tester') + |
| 439 api.override_step_data('get version (2)', | 427 api.override_step_data('get version (2)', |
| 440 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) | 428 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) |
| 441 | 429 |
| 442 yield (api.test('telemetry_browser_tests_failures') + | 430 yield (api.test('telemetry_browser_tests_failures') + |
| 443 properties_for('telemetry_browser_tests_tester') + | 431 properties_for('telemetry_browser_tests_tester') + |
| 444 api.override_step_data('Run telemetry browser_test PopularUrlsTest', | 432 api.override_step_data('Run telemetry browser_test PopularUrlsTest', |
| 445 api.json.output({'successes': ['passed_test1', 'passed_test2'], | 433 api.json.output({'successes': ['passed_test1', 'passed_test2'], |
| 446 'failures': ['failed_test_1', 'failed_test_2']}), | 434 'failures': ['failed_test_1', 'failed_test_2']}), |
| 447 retcode=1)) | 435 retcode=1)) |
| OLD | NEW |