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

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

Issue 2206363002: Added integration test to Chrome Proxy to verify direct connection on remote site timeout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added integration test to Chrome Proxy to verify direct connection on remote site timeout 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
14 class ChromeProxyBypassOnTimeout(ChromeProxyBenchmark):
15 """Check that the proxy bypasses when endpoint times out.
sclittle 2016/08/09 21:31:31 nit: instead of "endpoint", could you say "origin"
Robert Ogden 2016/08/09 21:56:22 Done.
16
17 If the endpoint site does not make an HTTP response in a reasonable
sclittle 2016/08/09 21:31:31 nit: again, s/endpoint/origin/. "endpoint" is tech
Robert Ogden 2016/08/09 21:56:22 Done.
18 amount of time, the proxy should bypass.
19 """
20 tag = 'timeout_bypass'
21 test = measurements.ChromeProxyBypassOnTimeout
22 page_set = pagesets.BypassOnTimeoutStorySet
23
24 @classmethod
25 def Name(cls):
26 return 'chrome_proxy_benchmark.timeout_bypass.timeout_bypass'
27
13 class ChromeProxyClientType(ChromeProxyBenchmark): 28 class ChromeProxyClientType(ChromeProxyBenchmark):
14 tag = 'client_type' 29 tag = 'client_type'
15 test = measurements.ChromeProxyClientType 30 test = measurements.ChromeProxyClientType
16 page_set = pagesets.ClientTypeStorySet 31 page_set = pagesets.ClientTypeStorySet
17 32
18 @classmethod 33 @classmethod
19 def Name(cls): 34 def Name(cls):
20 return 'chrome_proxy_benchmark.client_type.client_type' 35 return 'chrome_proxy_benchmark.client_type.client_type'
21 36
22 37
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 return 'chrome_proxy_benchmark.video.audio' 324 return 'chrome_proxy_benchmark.video.audio'
310 325
311 class ChromeProxyPingback(ChromeProxyBenchmark): 326 class ChromeProxyPingback(ChromeProxyBenchmark):
312 """Check that the pingback is sent and the server responds. """ 327 """Check that the pingback is sent and the server responds. """
313 tag = 'pingback' 328 tag = 'pingback'
314 test = measurements.ChromeProxyPingback 329 test = measurements.ChromeProxyPingback
315 page_set = pagesets.PingbackStorySet 330 page_set = pagesets.PingbackStorySet
316 331
317 @classmethod 332 @classmethod
318 def Name(cls): 333 def Name(cls):
319 return 'chrome_proxy_benchmark.pingback' 334 return 'chrome_proxy_benchmark.pingback'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698