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

Side by Side Diff: tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py

Issue 2227163002: Added integration test to Chrome Proxy to verify fallback to HTTP after bad HTTPS response from pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
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 class ChromeProxyBadHTTPSFallback(ChromeProxyBenchmark):
14 """Check that the client falls back to HTTP on bad HTTPS response.
15
16 If the HTTPS proxy responds with a bad response code (like 500) then the
17 client should fallback to HTTP.
18 """
19 tag = 'badhttps_bypass'
20 test = measurements.ChromeProxyBadHTTPSFallback
21 page_set = pagesets.BadHTTPSFallbackStorySet
22
23 @classmethod
24 def Name(cls):
25 return 'chrome_proxy_benchmark.badhttps_fallback.badhttps_fallback'
26
13 class ChromeProxyClientType(ChromeProxyBenchmark): 27 class ChromeProxyClientType(ChromeProxyBenchmark):
14 tag = 'client_type' 28 tag = 'client_type'
15 test = measurements.ChromeProxyClientType 29 test = measurements.ChromeProxyClientType
16 page_set = pagesets.ClientTypeStorySet 30 page_set = pagesets.ClientTypeStorySet
17 31
18 @classmethod 32 @classmethod
19 def Name(cls): 33 def Name(cls):
20 return 'chrome_proxy_benchmark.client_type.client_type' 34 return 'chrome_proxy_benchmark.client_type.client_type'
21 35
22 36
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 return 'chrome_proxy_benchmark.video.audio' 323 return 'chrome_proxy_benchmark.video.audio'
310 324
311 class ChromeProxyPingback(ChromeProxyBenchmark): 325 class ChromeProxyPingback(ChromeProxyBenchmark):
312 """Check that the pingback is sent and the server responds. """ 326 """Check that the pingback is sent and the server responds. """
313 tag = 'pingback' 327 tag = 'pingback'
314 test = measurements.ChromeProxyPingback 328 test = measurements.ChromeProxyPingback
315 page_set = pagesets.PingbackStorySet 329 page_set = pagesets.PingbackStorySet
316 330
317 @classmethod 331 @classmethod
318 def Name(cls): 332 def Name(cls):
319 return 'chrome_proxy_benchmark.pingback' 333 return 'chrome_proxy_benchmark.pingback'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698