| 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 """Common steps for recipes that sync/build Cronet sources.""" | 5 """Common steps for recipes that sync/build Cronet sources.""" |
| 6 | 6 |
| 7 from infra.libs.infra_types import freeze | 7 from infra.libs.infra_types import freeze |
| 8 from slave import recipe_api | 8 from recipe_engine import recipe_api |
| 9 | 9 |
| 10 INSTRUMENTATION_TESTS = freeze([ | 10 INSTRUMENTATION_TESTS = freeze([ |
| 11 { | 11 { |
| 12 'test': 'CronetSampleTest', | 12 'test': 'CronetSampleTest', |
| 13 'gyp_target': 'cronet_sample_test_apk', | 13 'gyp_target': 'cronet_sample_test_apk', |
| 14 'kwargs': { | 14 'kwargs': { |
| 15 'install_apk': { | 15 'install_apk': { |
| 16 'package': 'org.chromium.cronet_sample_apk', | 16 'package': 'org.chromium.cronet_sample_apk', |
| 17 'apk': 'CronetSample.apk' | 17 'apk': 'CronetSample.apk' |
| 18 }, | 18 }, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 droid.common_tests_setup_steps() | 90 droid.common_tests_setup_steps() |
| 91 with self.m.step.defer_results(): | 91 with self.m.step.defer_results(): |
| 92 for suite in UNIT_TESTS: | 92 for suite in UNIT_TESTS: |
| 93 droid.run_test_suite(suite) | 93 droid.run_test_suite(suite) |
| 94 for suite in INSTRUMENTATION_TESTS: | 94 for suite in INSTRUMENTATION_TESTS: |
| 95 droid.run_instrumentation_suite( | 95 droid.run_instrumentation_suite( |
| 96 suite['test'], verbose=True, | 96 suite['test'], verbose=True, |
| 97 **suite.get('kwargs', {})) | 97 **suite.get('kwargs', {})) |
| 98 droid.common_tests_final_steps() | 98 droid.common_tests_final_steps() |
| 99 | 99 |
| OLD | NEW |