| 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 common.chrome_proxy_benchmark import ChromeProxyBenchmark | 5 from common.chrome_proxy_benchmark import ChromeProxyBenchmark |
| 6 from integration_tests import chrome_proxy_measurements as measurements | 6 from integration_tests import chrome_proxy_measurements as measurements |
| 7 from integration_tests import chrome_proxy_pagesets as pagesets | 7 from integration_tests import chrome_proxy_pagesets as pagesets |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 | 9 |
| 10 DESKTOP_PLATFORMS = ['mac', 'linux', 'win', 'chromeos'] | 10 DESKTOP_PLATFORMS = ['mac', 'linux', 'win', 'chromeos'] |
| 11 WEBVIEW_PLATFORMS = ['android-webview', 'android-webview-shell'] | 11 WEBVIEW_PLATFORMS = ['android-webview', 'android-webview-shell'] |
| 12 | 12 |
| 13 | 13 |
| 14 class ChromeProxyBypassOnTimeout(ChromeProxyBenchmark): | 14 class ChromeProxyBypassOnTimeout(ChromeProxyBenchmark): |
| 15 """Check that the proxy bypasses when origin times out. | 15 """Check that the proxy bypasses when origin times out. |
| 16 | 16 |
| 17 If the origin site does not make an HTTP response in a reasonable | 17 If the origin site does not make an HTTP response in a reasonable |
| 18 amount of time, the proxy should bypass. | 18 amount of time, the proxy should bypass. |
| 19 """ | 19 """ |
| 20 tag = 'timeout_bypass' | 20 tag = 'timeout_bypass' |
| 21 test = measurements.ChromeProxyBypassOnTimeout | 21 test = measurements.ChromeProxyBypassOnTimeout |
| 22 page_set = pagesets.BypassOnTimeoutStorySet | 22 page_set = pagesets.BypassOnTimeoutStorySet |
| 23 | 23 |
| 24 @classmethod | 24 @classmethod |
| 25 def Name(cls): | 25 def Name(cls): |
| 26 return 'chrome_proxy_benchmark.timeout_bypass.timeout_bypass' | 26 return 'chrome_proxy_benchmark.timeout_bypass.timeout_bypass' |
| 27 | 27 |
| 28 class ChromeProxyBadHTTPSFallback(ChromeProxyBenchmark): |
| 29 """Check that the client falls back to HTTP on bad HTTPS response. |
| 30 |
| 31 If the HTTPS proxy responds with a bad response code (like 500) then the |
| 32 client should fallback to HTTP. |
| 33 """ |
| 34 tag = 'badhttps_bypass' |
| 35 test = measurements.ChromeProxyBadHTTPSFallback |
| 36 page_set = pagesets.BadHTTPSFallbackStorySet |
| 37 |
| 38 @classmethod |
| 39 def Name(cls): |
| 40 return 'chrome_proxy_benchmark.badhttps_fallback.badhttps_fallback' |
| 41 |
| 28 class ChromeProxyClientType(ChromeProxyBenchmark): | 42 class ChromeProxyClientType(ChromeProxyBenchmark): |
| 29 tag = 'client_type' | 43 tag = 'client_type' |
| 30 test = measurements.ChromeProxyClientType | 44 test = measurements.ChromeProxyClientType |
| 31 page_set = pagesets.ClientTypeStorySet | 45 page_set = pagesets.ClientTypeStorySet |
| 32 | 46 |
| 33 @classmethod | 47 @classmethod |
| 34 def Name(cls): | 48 def Name(cls): |
| 35 return 'chrome_proxy_benchmark.client_type.client_type' | 49 return 'chrome_proxy_benchmark.client_type.client_type' |
| 36 | 50 |
| 37 | 51 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 339 |
| 326 class ChromeProxyPingback(ChromeProxyBenchmark): | 340 class ChromeProxyPingback(ChromeProxyBenchmark): |
| 327 """Check that the pingback is sent and the server responds. """ | 341 """Check that the pingback is sent and the server responds. """ |
| 328 tag = 'pingback' | 342 tag = 'pingback' |
| 329 test = measurements.ChromeProxyPingback | 343 test = measurements.ChromeProxyPingback |
| 330 page_set = pagesets.PingbackStorySet | 344 page_set = pagesets.PingbackStorySet |
| 331 | 345 |
| 332 @classmethod | 346 @classmethod |
| 333 def Name(cls): | 347 def Name(cls): |
| 334 return 'chrome_proxy_benchmark.pingback' | 348 return 'chrome_proxy_benchmark.pingback' |
| OLD | NEW |