| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 'device_flags': 'device_flags_file', | 91 'device_flags': 'device_flags_file', |
| 92 }, | 92 }, |
| 93 'no_cache_builder': { | 93 'no_cache_builder': { |
| 94 'use_git_cache': False, | 94 'use_git_cache': False, |
| 95 }, | 95 }, |
| 96 'json_results_file': { | 96 'json_results_file': { |
| 97 'json_results_file': 'json_results_file' | 97 'json_results_file': 'json_results_file' |
| 98 }, | 98 }, |
| 99 'result_details': { | 99 'result_details': { |
| 100 'result_details': True | 100 'result_details': True |
| 101 }, |
| 102 'enable_platform_mode': { |
| 103 'perf_config': 'sharded_perf_tests.json', |
| 104 'enable_platform_mode': True |
| 101 } | 105 } |
| 102 }) | 106 }) |
| 103 | 107 |
| 104 from recipe_engine.recipe_api import Property | 108 from recipe_engine.recipe_api import Property |
| 105 | 109 |
| 106 PROPERTIES = { | 110 PROPERTIES = { |
| 107 'buildername': Property(), | 111 'buildername': Property(), |
| 108 } | 112 } |
| 109 | 113 |
| 110 def RunSteps(api, buildername): | 114 def RunSteps(api, buildername): |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 api.chromium_android.adb_install_apk('apk', allow_downgrade=True) | 182 api.chromium_android.adb_install_apk('apk', allow_downgrade=True) |
| 179 | 183 |
| 180 api.chromium_android.monkey_test() | 184 api.chromium_android.monkey_test() |
| 181 | 185 |
| 182 try: | 186 try: |
| 183 if config.get('perf_config'): | 187 if config.get('perf_config'): |
| 184 api.chromium_android.run_sharded_perf_tests( | 188 api.chromium_android.run_sharded_perf_tests( |
| 185 config='fake_config.json', | 189 config='fake_config.json', |
| 186 flaky_config='flake_fakes.json', | 190 flaky_config='flake_fakes.json', |
| 187 upload_archives_to_bucket='archives-bucket', | 191 upload_archives_to_bucket='archives-bucket', |
| 188 known_devices_file=config.get('last_known_devices', None)) | 192 known_devices_file=config.get('last_known_devices', None), |
| 193 enable_platform_mode=config.get('enable_platform_mode', None)) |
| 189 except api.step.StepFailure as f: | 194 except api.step.StepFailure as f: |
| 190 failure = f | 195 failure = f |
| 191 | 196 |
| 192 api.chromium_android.run_instrumentation_suite( | 197 api.chromium_android.run_instrumentation_suite( |
| 193 name='AndroidWebViewTest', | 198 name='AndroidWebViewTest', |
| 194 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'), | 199 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'), |
| 195 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), | 200 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), |
| 196 isolate_file_path='android_webview/android_webview_test_data.isolate', | 201 isolate_file_path='android_webview/android_webview_test_data.isolate', |
| 197 flakiness_dashboard='test-results.appspot.com', | 202 flakiness_dashboard='test-results.appspot.com', |
| 198 annotation='SmallTest', | 203 annotation='SmallTest', |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 398 |
| 394 yield (api.test('device_file_format_mismatch') + | 399 yield (api.test('device_file_format_mismatch') + |
| 395 properties_for('tester') + | 400 properties_for('tester') + |
| 396 api.override_step_data('fix_device_file_format.read_device_file', | 401 api.override_step_data('fix_device_file_format.read_device_file', |
| 397 api.raw_io.output('["device1", "device2"]'))) | 402 api.raw_io.output('["device1", "device2"]'))) |
| 398 | 403 |
| 399 yield (api.test('tombstones_m53') + | 404 yield (api.test('tombstones_m53') + |
| 400 properties_for('tester') + | 405 properties_for('tester') + |
| 401 api.override_step_data('get version (2)', | 406 api.override_step_data('get version (2)', |
| 402 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) | 407 api.raw_io.output('MAJOR=53\nMINOR=0\nBUILD=2800\nPATCH=0\n'))) |
| OLD | NEW |