| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 if config.get('perf_config'): | 170 if config.get('perf_config'): |
| 171 api.chromium_android.run_sharded_perf_tests( | 171 api.chromium_android.run_sharded_perf_tests( |
| 172 config='fake_config.json', | 172 config='fake_config.json', |
| 173 flaky_config='flake_fakes.json', | 173 flaky_config='flake_fakes.json', |
| 174 upload_archives_to_bucket='archives-bucket', | 174 upload_archives_to_bucket='archives-bucket', |
| 175 known_devices_file=config.get('last_known_devices', None)) | 175 known_devices_file=config.get('last_known_devices', None)) |
| 176 except api.step.StepFailure as f: | 176 except api.step.StepFailure as f: |
| 177 failure = f | 177 failure = f |
| 178 | 178 |
| 179 api.chromium_android.run_instrumentation_suite( | 179 api.chromium_android.run_instrumentation_suite( |
| 180 name='AndroidWebViewTest', | 180 name='android_webview_test_apk', |
| 181 apk_under_test=api.chromium_android.apk_path('AndroidWebView.apk'), | |
| 182 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), | |
| 183 isolate_file_path='android_webview/android_webview_test_apk.isolate', | |
| 184 flakiness_dashboard='test-results.appspot.com', | 181 flakiness_dashboard='test-results.appspot.com', |
| 185 annotation='SmallTest', | 182 annotation='SmallTest', |
| 186 except_annotation='FlakyTest', | 183 except_annotation='FlakyTest', |
| 187 screenshot=True, | 184 screenshot=True, |
| 188 official_build=True, | |
| 189 host_driven_root=api.path['checkout'].join('chrome', 'test'), | 185 host_driven_root=api.path['checkout'].join('chrome', 'test'), |
| 190 timeout_scale=config.get('timeout_scale'), | 186 timeout_scale=config.get('timeout_scale'), |
| 191 strict_mode=config.get('strict_mode'), | 187 strict_mode=config.get('strict_mode'), |
| 192 step_test_data=lambda: api.raw_io.test_api.output( | 188 step_test_data=lambda: api.raw_io.test_api.output( |
| 193 'logging...\nbeep\nboop\bbop'), | 189 'logging...\nbeep\nboop\bbop'), |
| 194 device_flags=config.get('device_flags')) | 190 device_flags=config.get('device_flags')) |
| 195 api.chromium_android.run_test_suite( | 191 api.chromium_android.run_test_suite( |
| 196 'unittests', | 192 'unittests', |
| 197 isolate_file_path=api.path['checkout'].join('some_file.isolate'), | 193 isolate_file_path=api.path['checkout'].join('some_file.isolate'), |
| 198 gtest_filter='WebRtc*', | 194 gtest_filter='WebRtc*', |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 'Created xml report file at file:///path/to/testResult.xml', | 356 'Created xml report file at file:///path/to/testResult.xml', |
| 361 stream='stdout')) + | 357 stream='stdout')) + |
| 362 api.override_step_data('Read test result and report failures', | 358 api.override_step_data('Read test result and report failures', |
| 363 api.raw_io.output(result_xml_with_unexpected_failure_method))) | 359 api.raw_io.output(result_xml_with_unexpected_failure_method))) |
| 364 | 360 |
| 365 yield (api.test('webview_cts_invalid_output') + | 361 yield (api.test('webview_cts_invalid_output') + |
| 366 properties_for('webview_cts') + | 362 properties_for('webview_cts') + |
| 367 api.override_step_data('Run CTS', api.raw_io.stream_output( | 363 api.override_step_data('Run CTS', api.raw_io.stream_output( |
| 368 'Invalid CTS output here...', | 364 'Invalid CTS output here...', |
| 369 stream='stdout'))) | 365 stream='stdout'))) |
| OLD | NEW |