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..90944e9eac141a72bcce463d8b5e03ee785639a2 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 ChromeProxyExperiment(ChromeProxyValidation): |
| + """Correctness measurement for experiment directives in Chrome-Proxy header. |
| + |
| + This test verifies that experiment "test" in the Chrome-Proxy request header |
|
sclittle
2015/04/03 01:34:48
Maybe reword 'experiment "test"' to '"exp=test"' h
megjablon
2015/04/07 21:18:40
Done.
|
| + causes a bypass on the experiment test page.""" |
| + |
| + def __init__(self): |
| + super(ChromeProxyExperiment, self).__init__(restart_after_each_page=True) |
| + |
| + def CustomizeBrowserOptions(self, options): |
| + super(ChromeProxyExperiment, 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.""" |