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

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

Issue 942863004: Integration test for “lo-fi” mode in Chrome-Proxy request header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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 10ed99b2bb2bc00b0d9459b18406abc0cf3c105a..015e57d12cde328ddab782b0747e2486716ab820 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
@@ -18,6 +18,9 @@ class ChromeProxyLatency(page_test.PageTest):
def __init__(self, *args, **kwargs):
super(ChromeProxyLatency, self).__init__(*args, **kwargs)
+ def CustomizeBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
+
def WillNavigateToPage(self, page, tab):
tab.ClearCache(force=True)
@@ -28,11 +31,14 @@ class ChromeProxyLatency(page_test.PageTest):
class ChromeProxyDataSaving(page_test.PageTest):
- """Chrome proxy data daving measurement."""
+ """Chrome proxy data saving measurement."""
def __init__(self, *args, **kwargs):
super(ChromeProxyDataSaving, self).__init__(*args, **kwargs)
self._metrics = metrics.ChromeProxyMetric()
+ def CustomizeBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
+
def WillNavigateToPage(self, page, tab):
tab.ClearCache(force=True)
self._metrics.Start(page, tab)
@@ -287,6 +293,20 @@ class ChromeProxyClientType(ChromeProxyValidation):
self._page.bypass_for_client_type)
+class ChromeProxyLoFi(ChromeProxyValidation):
+ """Correctness measurement for Lo-Fi in Chrome-Proxy header."""
+
+ def __init__(self):
+ super(ChromeProxyLoFi, self).__init__(restart_after_each_page=True)
+
+ def CustomizeBrowserOptions(self, options):
+ super(ChromeProxyLoFi, self).CustomizeBrowserOptions(options)
+ options.AppendExtraBrowserArgs('--enable-data-reduction-proxy-lo-fi')
+
+ def AddResults(self, tab, results):
+ self._metrics.AddResultsForLoFi(tab, results)
+
+
class ChromeProxyHTTPToDirectFallback(ChromeProxyValidation):
"""Correctness measurement for HTTP proxy fallback to direct."""

Powered by Google App Engine
This is Rietveld 408576698