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

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

Issue 1151753003: Integration test for Chrome-Proxy: pass-through directive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@loFiSnackbar
Patch Set: Created 5 years, 7 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 fba1d99bfcfbc76684104e6ef6ae5db7cf97576b..d7de479eb9e48ff791049ccba5e90a9ff77b8014 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
@@ -294,6 +294,23 @@ class ChromeProxyExpDirective(ChromeProxyValidation):
def AddResults(self, tab, results):
self._metrics.AddResultsForBypass(tab, results)
+class ChromeProxyPassThrough(ChromeProxyValidation):
+ """Correctness measurement for Chrome-Proxy pass-through directives.
+
+ This test verifies that "pass-through" in the Chrome-Proxy request header
+ causes a resource to be loaded without Data Reduction Proxy transformations.
+ """
+
+ def __init__(self):
+ super(ChromeProxyPassThrough, self).__init__(
+ restart_after_each_page=True,
+ metrics=metrics.ChromeProxyMetric())
+
+ def CustomizeBrowserOptions(self, options):
+ super(ChromeProxyPassThrough, self).CustomizeBrowserOptions(options)
+
+ def AddResults(self, tab, results):
+ self._metrics.AddResultsForPassThrough(tab, results)
class ChromeProxyHTTPToDirectFallback(ChromeProxyValidation):
"""Correctness measurement for HTTP proxy fallback to direct."""

Powered by Google App Engine
This is Rietveld 408576698