| 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 7c05b9517ef276252dfb6421111ff10ac04a47e0..59903ddc8320b510f056ff3ef3964bd4ccb4a979 100644
|
| --- a/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
|
| +++ b/tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py
|
| @@ -13,6 +13,20 @@ from metrics import loading
|
| from telemetry.core import exceptions, util
|
| from telemetry.page import page_test
|
|
|
| +class ChromeProxyBypassOnTimeout(ChromeProxyValidation):
|
| + """Checks the client bypasses when endpoint site times out."""
|
| +
|
| + def __init__(self):
|
| + super(ChromeProxyBypassOnTimeout, self).__init__(
|
| + restart_after_each_page=True,
|
| + metrics=metrics.ChromeProxyMetric())
|
| +
|
| + def CustomizeBrowserOptions(self, options):
|
| + super(ChromeProxyBypassOnTimeout, self).CustomizeBrowserOptions(
|
| + options)
|
| +
|
| + def AddResults(self, tab, results):
|
| + self._metrics.AddResultsForBypassOnTimeout(tab, results)
|
|
|
| class ChromeProxyDataSaving(page_test.PageTest):
|
| """Chrome proxy data saving measurement."""
|
| @@ -677,4 +691,4 @@ class ChromeProxyPingback(ChromeProxyValidation):
|
| '--enable-stats-collection-bindings')
|
|
|
| def AddResults(self, tab, results):
|
| - self._metrics.AddResultsForPingback(tab, results)
|
| + self._metrics.AddResultsForPingback(tab, results)
|
|
|