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

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: Uses SyntheticStorySet instead now 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
« no previous file with comments | « no previous file | tools/chrome_proxy/integration_tests/chrome_proxy_measurements.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 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.SyntheticStorySet
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
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'
OLDNEW
« no previous file with comments | « no previous file | tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698