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 import datetime | 5 import datetime |
6 import re | 6 import re |
7 import string | 7 import string |
8 | 8 |
9 | 9 |
10 class Test(object): | 10 class Test(object): |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 'archive build', | 92 'archive build', |
93 self.gs_bucket, | 93 self.gs_bucket, |
94 gs_acl=self.gs_acl, | 94 gs_acl=self.gs_acl, |
95 ) | 95 ) |
96 | 96 |
97 @staticmethod | 97 @staticmethod |
98 def compile_targets(_): | 98 def compile_targets(_): |
99 return [] | 99 return [] |
100 | 100 |
101 | 101 |
| 102 class ResourceSizesStep(Test): |
| 103 def run(self, api, suffix, test_filter=None): |
| 104 apk_path = api.chromium_android.apk_path('ChromePublic.apk') |
| 105 return api.chromium_android.resource_sizes(apk_path, chartjson_file=True) |
| 106 |
| 107 @staticmethod |
| 108 def compile_targets(_): |
| 109 return ['chrome_public_apk'] |
| 110 |
| 111 @property |
| 112 def name(self): |
| 113 return 'resource_sizes' # pragma: no cover |
| 114 |
| 115 |
102 class SizesStep(Test): | 116 class SizesStep(Test): |
103 def __init__(self, results_url, perf_id): | 117 def __init__(self, results_url, perf_id): |
104 self.results_url = results_url | 118 self.results_url = results_url |
105 self.perf_id = perf_id | 119 self.perf_id = perf_id |
106 | 120 |
107 def run(self, api, suffix, test_filter=None): | 121 def run(self, api, suffix, test_filter=None): |
108 return api.chromium.sizes(self.results_url, self.perf_id) | 122 return api.chromium.sizes(self.results_url, self.perf_id) |
109 | 123 |
110 @staticmethod | 124 @staticmethod |
111 def compile_targets(_): | 125 def compile_targets(_): |
(...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1737 args=args) | 1751 args=args) |
1738 api.gsutil.upload( | 1752 api.gsutil.upload( |
1739 temp_output_dir.join( | 1753 temp_output_dir.join( |
1740 '%s-android-chrome.json' % timestamp_string), | 1754 '%s-android-chrome.json' % timestamp_string), |
1741 'chromium-annotated-tests', 'android') | 1755 'chromium-annotated-tests', 'android') |
1742 | 1756 |
1743 GOMA_TESTS = [ | 1757 GOMA_TESTS = [ |
1744 GTestTest('base_unittests'), | 1758 GTestTest('base_unittests'), |
1745 GTestTest('content_unittests'), | 1759 GTestTest('content_unittests'), |
1746 ] | 1760 ] |
OLD | NEW |