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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), | 182 test_apk=api.chromium_android.apk_path('AndroidWebViewTest.apk'), |
183 isolate_file_path='android_webview/android_webview_test_apk.isolate', | 183 isolate_file_path='android_webview/android_webview_test_apk.isolate', |
184 flakiness_dashboard='test-results.appspot.com', | 184 flakiness_dashboard='test-results.appspot.com', |
185 annotation='SmallTest', | 185 annotation='SmallTest', |
186 except_annotation='FlakyTest', | 186 except_annotation='FlakyTest', |
187 screenshot=True, | 187 screenshot=True, |
188 official_build=True, | 188 official_build=True, |
189 host_driven_root=api.path['checkout'].join('chrome', 'test'), | 189 host_driven_root=api.path['checkout'].join('chrome', 'test'), |
190 timeout_scale=config.get('timeout_scale'), | 190 timeout_scale=config.get('timeout_scale'), |
191 strict_mode=config.get('strict_mode'), | 191 strict_mode=config.get('strict_mode'), |
| 192 additional_apks=['Additional.apk'], |
192 step_test_data=lambda: api.raw_io.test_api.output( | 193 step_test_data=lambda: api.raw_io.test_api.output( |
193 'logging...\nbeep\nboop\bbop'), | 194 'logging...\nbeep\nboop\bbop'), |
194 device_flags=config.get('device_flags')) | 195 device_flags=config.get('device_flags')) |
195 api.chromium_android.run_test_suite( | 196 api.chromium_android.run_test_suite( |
196 'unittests', | 197 'unittests', |
197 isolate_file_path=api.path['checkout'].join('some_file.isolate'), | 198 isolate_file_path=api.path['checkout'].join('some_file.isolate'), |
198 gtest_filter='WebRtc*', | 199 gtest_filter='WebRtc*', |
199 tool='asan') | 200 tool='asan') |
200 if not failure: | 201 if not failure: |
201 api.chromium_android.run_bisect_script(extra_src='test.py', | 202 api.chromium_android.run_bisect_script(extra_src='test.py', |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 'Created xml report file at file:///path/to/testResult.xml', | 361 'Created xml report file at file:///path/to/testResult.xml', |
361 stream='stdout')) + | 362 stream='stdout')) + |
362 api.override_step_data('Read test result and report failures', | 363 api.override_step_data('Read test result and report failures', |
363 api.raw_io.output(result_xml_with_unexpected_failure_method))) | 364 api.raw_io.output(result_xml_with_unexpected_failure_method))) |
364 | 365 |
365 yield (api.test('webview_cts_invalid_output') + | 366 yield (api.test('webview_cts_invalid_output') + |
366 properties_for('webview_cts') + | 367 properties_for('webview_cts') + |
367 api.override_step_data('Run CTS', api.raw_io.stream_output( | 368 api.override_step_data('Run CTS', api.raw_io.stream_output( |
368 'Invalid CTS output here...', | 369 'Invalid CTS output here...', |
369 stream='stdout'))) | 370 stream='stdout'))) |
OLD | NEW |