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

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: rebase 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 ec8247876aa33ff749f6510a7642cd5d2c55cddc..e0bc84b54fb82014e8441ed6e747fbbea9f39403 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
@@ -274,6 +274,23 @@ class ChromeProxyExpDirective(ChromeProxyValidation):
def AddResults(self, tab, results):
self._metrics.AddResultsForBypass(tab, results, url_pattern='/exptest/')
+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