| 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 from integration_tests import chrome_proxy_measurements as measurements | 5 from integration_tests import chrome_proxy_measurements as measurements |
| 6 from integration_tests import chrome_proxy_pagesets as pagesets | 6 from integration_tests import chrome_proxy_pagesets as pagesets |
| 7 from telemetry import benchmark | 7 from telemetry import benchmark |
| 8 from telemetry.core.backends.chrome import android_browser_finder | 8 from telemetry.core.backends.chrome import android_browser_finder |
| 9 from telemetry.core.backends.chrome import desktop_browser_finder |
| 10 from telemetry.core.backends.chrome import cros_browser_finder |
| 9 | 11 |
| 10 | 12 |
| 11 ANDROID_CHROME_BROWSERS = [ | 13 ANDROID_CHROME_BROWSERS = [ |
| 12 browser for browser in android_browser_finder.CHROME_PACKAGE_NAMES | 14 browser for browser in android_browser_finder.CHROME_PACKAGE_NAMES |
| 13 if 'webview' not in browser] | 15 if 'webview' not in browser] |
| 14 | 16 |
| 17 DESKTOP_CHROME_BROWSERS = (desktop_browser_finder.FindAllBrowserTypes(None) + |
| 18 cros_browser_finder.FindAllBrowserTypes(None)) |
| 19 |
| 15 class ChromeProxyLatency(benchmark.Benchmark): | 20 class ChromeProxyLatency(benchmark.Benchmark): |
| 16 tag = 'latency' | 21 tag = 'latency' |
| 17 test = measurements.ChromeProxyLatency | 22 test = measurements.ChromeProxyLatency |
| 18 page_set = pagesets.Top20PageSet | 23 page_set = pagesets.Top20PageSet |
| 19 | 24 |
| 20 @classmethod | 25 @classmethod |
| 21 def Name(cls): | 26 def Name(cls): |
| 22 return 'chrome_proxy_benchmark.latency.top_20' | 27 return 'chrome_proxy_benchmark.latency.top_20' |
| 23 | 28 |
| 24 | 29 |
| 25 class ChromeProxyLatencyDirect(benchmark.Benchmark): | 30 class ChromeProxyLatencyDirect(benchmark.Benchmark): |
| 26 tag = 'latency_direct' | 31 tag = 'latency_direct' |
| 27 test = measurements.ChromeProxyLatency | 32 test = measurements.DirectFetchLatency |
| 28 page_set = pagesets.Top20PageSet | 33 page_set = pagesets.Top20PageSet |
| 29 | 34 |
| 30 @classmethod | 35 @classmethod |
| 31 def Name(cls): | 36 def Name(cls): |
| 32 return 'chrome_proxy_benchmark.latency_direct.top_20' | 37 return 'chrome_proxy_benchmark.latency_direct.top_20' |
| 33 | 38 |
| 34 | 39 |
| 35 class ChromeProxyLatencySynthetic(ChromeProxyLatency): | 40 class ChromeProxyLatencySynthetic(ChromeProxyLatency): |
| 36 page_set = pagesets.SyntheticPageSet | 41 page_set = pagesets.SyntheticPageSet |
| 37 | 42 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 53 test = measurements.ChromeProxyDataSaving | 58 test = measurements.ChromeProxyDataSaving |
| 54 page_set = pagesets.Top20PageSet | 59 page_set = pagesets.Top20PageSet |
| 55 | 60 |
| 56 @classmethod | 61 @classmethod |
| 57 def Name(cls): | 62 def Name(cls): |
| 58 return 'chrome_proxy_benchmark.data_saving.top_20' | 63 return 'chrome_proxy_benchmark.data_saving.top_20' |
| 59 | 64 |
| 60 | 65 |
| 61 class ChromeProxyDataSavingDirect(benchmark.Benchmark): | 66 class ChromeProxyDataSavingDirect(benchmark.Benchmark): |
| 62 tag = 'data_saving_direct' | 67 tag = 'data_saving_direct' |
| 63 test = measurements.ChromeProxyDataSaving | 68 test = measurements.DirectFetchDataSaving |
| 64 page_set = pagesets.Top20PageSet | 69 page_set = pagesets.Top20PageSet |
| 65 | 70 |
| 66 @classmethod | 71 @classmethod |
| 67 def Name(cls): | 72 def Name(cls): |
| 68 return 'chrome_proxy_benchmark.data_saving_direct.top_20' | 73 return 'chrome_proxy_benchmark.data_saving_direct.top_20' |
| 69 | 74 |
| 70 | 75 |
| 71 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving): | 76 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving): |
| 72 page_set = pagesets.SyntheticPageSet | 77 page_set = pagesets.SyntheticPageSet |
| 73 | 78 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 # Safebrowsing is switched off for Android Webview and all desktop platforms. | 175 # Safebrowsing is switched off for Android Webview and all desktop platforms. |
| 171 class ChromeProxySafeBrowsingOff(benchmark.Benchmark): | 176 class ChromeProxySafeBrowsingOff(benchmark.Benchmark): |
| 172 tag = 'safebrowsing_off' | 177 tag = 'safebrowsing_off' |
| 173 test = measurements.ChromeProxySafebrowsingOff | 178 test = measurements.ChromeProxySafebrowsingOff |
| 174 page_set = pagesets.SafebrowsingPageSet | 179 page_set = pagesets.SafebrowsingPageSet |
| 175 | 180 |
| 176 @classmethod | 181 @classmethod |
| 177 def Name(cls): | 182 def Name(cls): |
| 178 return 'chrome_proxy_benchmark.safebrowsing_off.safebrowsing' | 183 return 'chrome_proxy_benchmark.safebrowsing_off.safebrowsing' |
| 179 | 184 |
| 185 |
| 180 class ChromeProxyHTTPFallbackProbeURL(benchmark.Benchmark): | 186 class ChromeProxyHTTPFallbackProbeURL(benchmark.Benchmark): |
| 181 tag = 'fallback_probe' | 187 tag = 'fallback_probe' |
| 182 test = measurements.ChromeProxyHTTPFallbackProbeURL | 188 test = measurements.ChromeProxyHTTPFallbackProbeURL |
| 183 page_set = pagesets.SyntheticPageSet | 189 page_set = pagesets.SyntheticPageSet |
| 184 | 190 |
| 185 @classmethod | 191 @classmethod |
| 186 def Name(cls): | 192 def Name(cls): |
| 187 return 'chrome_proxy_benchmark.fallback_probe.synthetic' | 193 return 'chrome_proxy_benchmark.fallback_probe.synthetic' |
| 188 | 194 |
| 189 | 195 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 219 | 225 |
| 220 | 226 |
| 221 class ChromeProxySmoke(benchmark.Benchmark): | 227 class ChromeProxySmoke(benchmark.Benchmark): |
| 222 tag = 'smoke' | 228 tag = 'smoke' |
| 223 test = measurements.ChromeProxySmoke | 229 test = measurements.ChromeProxySmoke |
| 224 page_set = pagesets.SmokePageSet | 230 page_set = pagesets.SmokePageSet |
| 225 | 231 |
| 226 @classmethod | 232 @classmethod |
| 227 def Name(cls): | 233 def Name(cls): |
| 228 return 'chrome_proxy_benchmark.smoke.smoke' | 234 return 'chrome_proxy_benchmark.smoke.smoke' |
| 235 |
| 236 |
| 237 @benchmark.Enabled(*DESKTOP_CHROME_BROWSERS) |
| 238 class ChromeProxyVideoDirect(benchmark.Benchmark): |
| 239 tag = 'video' |
| 240 test = measurements.ChromeProxyVideoValidation |
| 241 page_set = pagesets.VideoDirectPageSet |
| 242 |
| 243 @classmethod |
| 244 def Name(cls): |
| 245 return 'chrome_proxy_benchmark.video.direct' |
| 246 |
| 247 |
| 248 @benchmark.Enabled(*DESKTOP_CHROME_BROWSERS) |
| 249 class ChromeProxyVideoProxied(benchmark.Benchmark): |
| 250 tag = 'video' |
| 251 test = measurements.ChromeProxyVideoValidation |
| 252 page_set = pagesets.VideoProxiedPageSet |
| 253 |
| 254 @classmethod |
| 255 def Name(cls): |
| 256 return 'chrome_proxy_benchmark.video.proxied' |
| 257 |
| 258 |
| 259 @benchmark.Enabled(*DESKTOP_CHROME_BROWSERS) |
| 260 class ChromeProxyVideoCompare(benchmark.Benchmark): |
| 261 tag = 'video' |
| 262 test = measurements.ChromeProxyVideoValidation |
| 263 page_set = pagesets.VideoComparePageSet |
| 264 |
| 265 @classmethod |
| 266 def Name(cls): |
| 267 return 'chrome_proxy_benchmark.video.compare' |
| OLD | NEW |