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

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: Created 5 years, 9 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..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."""

Powered by Google App Engine
This is Rietveld 408576698