| Index: tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
|
| diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
|
| index 1b38598d35b5d339970b5a19013e2075ef545db8..5834d75ef9b5415345738c44b559a877eb8db544 100644
|
| --- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
|
| +++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
|
| @@ -213,6 +213,26 @@ class ChromeProxyHTTPFallbackViaHeader(ChromeProxyValidation):
|
| self._metrics.AddResultsForHTTPFallback(tab, results, proxies, bad_proxies)
|
|
|
|
|
| +class ChromeProxyClientVersion(ChromeProxyValidation):
|
| + """Correctness measurement for version directives in Chrome-Proxy header.
|
| +
|
| + The test verifies that the version information provided in the Chrome-Proxy
|
| + request header overrides any version, if specified, that is provided in the
|
| + user agent string.
|
| + """
|
| +
|
| + def __init__(self):
|
| + super(ChromeProxyClientVersion, self).__init__()
|
| +
|
| + def CustomizeBrowserOptions(self, options):
|
| + super(ChromeProxyClientVersion,
|
| + self).CustomizeBrowserOptions(options)
|
| + options.AppendExtraBrowserArgs('--user-agent="Chrome/32.0.1700.99"')
|
| +
|
| + def AddResults(self, tab, results):
|
| + self._metrics.AddResultsForClientVersion(tab, results)
|
| +
|
| +
|
| class ChromeProxySmoke(ChromeProxyValidation):
|
| """Smoke measurement for basic chrome proxy correctness."""
|
|
|
|
|