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

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

Issue 820093002: Integration tests for desktop platforms and safebrowsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed code review comments. Created 5 years, 11 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 eadc0104ee2a554358a1f35a890b04116749c0d2..3efcfe945148e580c23872b84ffa7262cc6f157f 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
@@ -139,19 +139,31 @@ class ChromeProxyBlockOnce(ChromeProxyValidation):
self._metrics.AddResultsForBlockOnce(tab, results)
-class ChromeProxySafebrowsing(ChromeProxyValidation):
+class ChromeProxySafebrowsingMobile(ChromeProxyValidation):
"""Correctness measurement for safebrowsing."""
def __init__(self):
- super(ChromeProxySafebrowsing, self).__init__()
+ super(ChromeProxySafebrowsingMobile, self).__init__()
def WillNavigateToPage(self, page, tab):
- super(ChromeProxySafebrowsing, self).WillNavigateToPage(page, tab)
+ super(ChromeProxySafebrowsingMobile, self).WillNavigateToPage(page, tab)
self._expect_timeout = True
def AddResults(self, tab, results):
- self._metrics.AddResultsForSafebrowsing(tab, results)
+ self._metrics.AddResultsForSafebrowsingMobile(tab, results)
+class ChromeProxySafebrowsingDesktop(ChromeProxyValidation):
+ """Correctness measurement for safebrowsing."""
+
+ def __init__(self):
+ super(ChromeProxySafebrowsingDesktop, self).__init__()
+
+ def WillNavigateToPage(self, page, tab):
+ super(ChromeProxySafebrowsingDesktop, self).WillNavigateToPage(page, tab)
+ self._expect_timeout = True
sclittle 2015/01/22 23:15:14 The AddResultsForSafebrowsingDesktop method in met
Not at Google. Contact bengr 2015/01/23 17:11:34 Fixed. No timeout expected here.
+
+ def AddResults(self, tab, results):
+ self._metrics.AddResultsForSafebrowsingDesktop(tab, results)
_FAKE_PROXY_AUTH_VALUE = 'aabbccdd3b7579186c1b0620614fdb1f0000ffff'
_TEST_SERVER = 'chromeproxy-test.appspot.com'
@@ -329,8 +341,6 @@ class ChromeProxySmoke(ChromeProxyValidation):
def WillNavigateToPage(self, page, tab):
super(ChromeProxySmoke, self).WillNavigateToPage(page, tab)
- if page.name == 'safebrowsing':
- self._expect_timeout = True
def AddResults(self, tab, results):
# Map a page name to its AddResults func.
@@ -349,7 +359,6 @@ class ChromeProxySmoke(ChromeProxyValidation):
self._metrics.AddResultsForDataSaving,
],
'bypass': [self._metrics.AddResultsForBypass],
- 'safebrowsing': [self._metrics.AddResultsForSafebrowsing],
}
if not self._page.name in page_to_metrics:
raise page_test.MeasurementFailure(

Powered by Google App Engine
This is Rietveld 408576698