OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import contextlib | 5 import contextlib |
6 import json | 6 import json |
7 import os | 7 import os |
8 import re | 8 import re |
9 import urllib | 9 import urllib |
10 | 10 |
11 from infra.libs.infra_types import freeze | 11 from recipe_engine.types import freeze |
12 from recipe_engine import recipe_api | 12 from recipe_engine import recipe_api |
13 | 13 |
14 | 14 |
15 class AndroidApi(recipe_api.RecipeApi): | 15 class AndroidApi(recipe_api.RecipeApi): |
16 def __init__(self, **kwargs): | 16 def __init__(self, **kwargs): |
17 super(AndroidApi, self).__init__(**kwargs) | 17 super(AndroidApi, self).__init__(**kwargs) |
18 self._devices = None | 18 self._devices = None |
19 self._file_changes_path = None | 19 self._file_changes_path = None |
20 | 20 |
21 def get_config_defaults(self): | 21 def get_config_defaults(self): |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 def test_runner(self, step_name, args=None, **kwargs): | 940 def test_runner(self, step_name, args=None, **kwargs): |
941 """Wrapper for the python testrunner script. | 941 """Wrapper for the python testrunner script. |
942 | 942 |
943 Args: | 943 Args: |
944 step_name: Name of the step. | 944 step_name: Name of the step. |
945 args: Testrunner arguments. | 945 args: Testrunner arguments. |
946 """ | 946 """ |
947 with self.handle_exit_codes(): | 947 with self.handle_exit_codes(): |
948 return self.m.python( | 948 return self.m.python( |
949 step_name, self.c.test_runner, args, **kwargs) | 949 step_name, self.c.test_runner, args, **kwargs) |
OLD | NEW |