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..c39f1626f519f069f05960bedafc39f584d8f877 100644 |
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py |
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py |
@@ -310,6 +310,23 @@ 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. |
+ """ |
+ |
+ 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.""" |