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