| 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 datetime | 6 import datetime |
| 7 import json | 7 import json |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import urllib | 10 import urllib |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 def java_method_count(self, dexfile, name='java_method_count'): | 185 def java_method_count(self, dexfile, name='java_method_count'): |
| 186 self.m.chromium.runtest( | 186 self.m.chromium.runtest( |
| 187 self.m.path['checkout'].join('build', 'android', 'method_count.py'), | 187 self.m.path['checkout'].join('build', 'android', 'method_count.py'), |
| 188 args=[dexfile], | 188 args=[dexfile], |
| 189 annotate='graphing', | 189 annotate='graphing', |
| 190 results_url='https://chromeperf.appspot.com', | 190 results_url='https://chromeperf.appspot.com', |
| 191 perf_id=self.m.properties['buildername'], | 191 perf_id=self.m.properties['buildername'], |
| 192 perf_dashboard_id=name, | 192 perf_dashboard_id=name, |
| 193 test_type=name) | 193 test_type=name) |
| 194 | 194 |
| 195 def resource_sizes(self, apk_path, so_path, so_with_symbols_path): |
| 196 self.m.chromium.runtest( |
| 197 self.m.path['checkout'].join('build', 'android', 'resource_sizes.py'), |
| 198 args=[ |
| 199 apk_path, |
| 200 '--so-path', so_path, |
| 201 '--so-with-symbols-path', so_with_symbols_path, |
| 202 '--build_type', self.m.chromium.c.BUILD_CONFIG], |
| 203 annotate='graphing', |
| 204 results_url='https://chromeperf.appspot.com', |
| 205 perf_id=self.m.properties['buildername'], |
| 206 perf_dashboard_id='resource_sizes', |
| 207 test_type='resource_sizes') |
| 208 |
| 195 def check_webview_licenses(self, name='check licenses'): | 209 def check_webview_licenses(self, name='check licenses'): |
| 196 self.m.python( | 210 self.m.python( |
| 197 name, | 211 name, |
| 198 self.m.path['checkout'].join('android_webview', | 212 self.m.path['checkout'].join('android_webview', |
| 199 'tools', | 213 'tools', |
| 200 'webview_licenses.py'), | 214 'webview_licenses.py'), |
| 201 args=['scan'], | 215 args=['scan'], |
| 202 cwd=self.m.path['checkout']) | 216 cwd=self.m.path['checkout']) |
| 203 | 217 |
| 204 def upload_build(self, bucket, path): | 218 def upload_build(self, bucket, path): |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 def test_runner(self, step_name, args=None, **kwargs): | 1111 def test_runner(self, step_name, args=None, **kwargs): |
| 1098 """Wrapper for the python testrunner script. | 1112 """Wrapper for the python testrunner script. |
| 1099 | 1113 |
| 1100 Args: | 1114 Args: |
| 1101 step_name: Name of the step. | 1115 step_name: Name of the step. |
| 1102 args: Testrunner arguments. | 1116 args: Testrunner arguments. |
| 1103 """ | 1117 """ |
| 1104 with self.handle_exit_codes(): | 1118 with self.handle_exit_codes(): |
| 1105 return self.m.python( | 1119 return self.m.python( |
| 1106 step_name, self.c.test_runner, args, **kwargs) | 1120 step_name, self.c.test_runner, args, **kwargs) |
| OLD | NEW |