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

Unified Diff: tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py

Issue 1044573002: Integration test for exp Chrome-Proxy request option (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
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."""

Powered by Google App Engine
This is Rietveld 408576698