Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/api.py

Issue 1560243002: [Android] Upstream resource_sizes function and use for WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | scripts/slave/recipes/android_webview_shell_tests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/android_webview_shell_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698