Chromium Code Reviews| 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 ee756192ee29968c9c5c94d6f6b2f95f83de2ff6..2d661aadac347cb7c2020e7d04eeb7da680eae1d 100644 |
| --- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py |
| +++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py |
| @@ -310,6 +310,22 @@ class ChromeProxyLoFi(ChromeProxyValidation): |
| def AddResults(self, tab, results): |
| self._metrics.AddResultsForLoFi(tab, results) |
| +class ChromeProxyExpDirective(ChromeProxyValidation): |
| + """Correctness measurement for experiment directives in Chrome-Proxy header. |
| + |
| + This test verifies that "exp=test" in the Chrome-Proxy request header |
| + causes a bypass on the experiment test page.""" |
|
sclittle
2015/04/07 21:34:13
nit: put the end """ on the next line.
see https:
|
| + |
| + def __init__(self): |
| + super(ChromeProxyExpDirective, self).__init__(restart_after_each_page=True) |
| + |
| + def CustomizeBrowserOptions(self, options): |
| + super(ChromeProxyExpDirective, self).CustomizeBrowserOptions(options) |
| + options.AppendExtraBrowserArgs('--data-reduction-proxy-experiment=test') |
| + |
| + def AddResults(self, tab, results): |
| + self._metrics.AddResultsForBypass(tab, results) |
| + |
| class ChromeProxyHTTPToDirectFallback(ChromeProxyValidation): |
| """Correctness measurement for HTTP proxy fallback to direct.""" |