Commit fce897d2 authored by sclittle's avatar sclittle Committed by Commit bot

Make Data Saver integration test use new secure proxy check URL flag.

The flag for specifying the URL for the Data Saver secure proxy check
was changed in https://codereview.chromium.org/961983002/. This change
makes the relevant integration test use the new flag value, and also
makes the test restart after each page.

BUG=463210

Review URL: https://codereview.chromium.org/971073002

Cr-Commit-Position: refs/heads/master@{#318923}
parent 8b3b39bc
......@@ -205,17 +205,17 @@ class ChromeProxyHTTPFallbackProbeURL(ChromeProxyValidation):
"""
def __init__(self):
super(ChromeProxyHTTPFallbackProbeURL, self).__init__()
super(ChromeProxyHTTPFallbackProbeURL, self).__init__(
restart_after_each_page=True)
def CustomizeBrowserOptions(self, options):
super(ChromeProxyHTTPFallbackProbeURL,
self).CustomizeBrowserOptions(options)
# Use the test server probe URL which returns the response
# body as specified by respBody.
probe_url = GetResponseOverrideURL(
respBody='not OK')
probe_url = GetResponseOverrideURL(respBody='not OK')
options.AppendExtraBrowserArgs(
'--data-reduction-proxy-probe-url=%s' % probe_url)
'--data-reduction-proxy-secure-proxy-check-url=%s' % probe_url)
def AddResults(self, tab, results):
self._metrics.AddResultsForHTTPFallback(tab, results)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment