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

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: 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 ChromeProxyClientBypassOnTimeout(ChromeProxyBenchmark):
15 """Check that the client bypasses proxy after HTTP timeout.
16
17 If the proxy times out in responding to the HTTP request, the
18 client should automatically bypass and fetch the page directly.
19 """
20 tag = 'bypass_timeout'
21 test = measurements.ChromeProxyClientBypassOnTimeout
22 page_set = pagesets.ClientBypassOnTimeoutStorySet
23
24 @classmethod
25 def Name(cls):
26 return 'chrome_proxy_benchmark.bypass_timeout.bypass_timeout'
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'
bustamante 2016/08/03 19:04:39 Nit - Trailing white space should be removed.
Robert Ogden 2016/08/03 21:12:32 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698