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

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: 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..972e25d08bf7a1b6a50c40b2b09eb0a59ea89c54 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
@@ -28,7 +28,7 @@ class ChromeProxyLatency(page_test.PageTest):
class ChromeProxyDataSaving(page_test.PageTest):
- """Chrome proxy data daving measurement."""
+ """Chrome proxy data saving measurement."""
bengr 2015/02/27 23:38:38 :)
megjablon 2015/02/28 00:57:32 Acknowledged.
def __init__(self, *args, **kwargs):
super(ChromeProxyDataSaving, self).__init__(*args, **kwargs)
self._metrics = metrics.ChromeProxyMetric()
@@ -287,6 +287,16 @@ class ChromeProxyClientType(ChromeProxyValidation):
self._page.bypass_for_client_type)
+class ChromeProxyLoFi(ChromeProxyValidation):
bengr 2015/02/27 23:38:38 Add a CustomizeBrowserOptions() with the lofi head
megjablon 2015/02/28 00:57:32 Done.
+ """Correctness measurement for lo-fi in Chrome-Proxy header."""
+
+ def __init__(self):
+ super(ChromeProxyLoFi, self).__init__(restart_after_each_page=True)
+
+ 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