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

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

Issue 558743003: Integration test for bypassing the proxy for a single request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed block_single integration test to block_once Created 6 years, 3 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 1b38598d35b5d339970b5a19013e2075ef545db8..6c72d3308fb372e27a61e3d5e627f392e3b7fb7a 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
@@ -112,6 +112,16 @@ class ChromeProxyBypass(ChromeProxyValidation):
self._metrics.AddResultsForBypass(tab, results)
+class ChromeProxyBlockOnce(ChromeProxyValidation):
+ """Correctness measurement for block-once responses."""
+
+ def __init__(self):
+ super(ChromeProxyBlockOnce, self).__init__(restart_after_each_page=True)
+
+ def AddResults(self, tab, results):
+ self._metrics.AddResultsForBlockOnce(tab, results)
+
+
class ChromeProxySafebrowsing(ChromeProxyValidation):
"""Correctness measurement for safebrowsing."""

Powered by Google App Engine
This is Rietveld 408576698