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

Unified Diff: tools/chrome_proxy/webdriver/bypass.py

Issue 2693193004: Add ChromeDriver test for HTTPS bypass, QUIC smoke test (Closed)
Patch Set: robertogden's comments Created 3 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
« no previous file with comments | « no previous file | tools/chrome_proxy/webdriver/examples.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/bypass.py
diff --git a/tools/chrome_proxy/webdriver/bypass.py b/tools/chrome_proxy/webdriver/bypass.py
index 1f00147880af14b623d9824c7adc763c484823ec..7906a3e0f4bdc78fe6c4bc9f3b06cd228675602b 100644
--- a/tools/chrome_proxy/webdriver/bypass.py
+++ b/tools/chrome_proxy/webdriver/bypass.py
@@ -37,6 +37,25 @@ class Bypass(IntegrationTest):
for response in t.GetHTTPResponses():
self.assertNotHasChromeProxyViaHeader(response)
+ # Ensure Chrome does not use Data Saver for HTTPS requests.
+ def testHttpsBypass(self):
+ with TestDriver() as t:
+ t.AddChromeArg('--enable-spdy-proxy-auth')
+
+ # Load HTTP page and check that Data Saver is used.
+ t.LoadURL('http://check.googlezip.net/test.html')
+ responses = t.GetHTTPResponses()
+ self.assertEqual(2, len(responses))
+ for response in t.GetHTTPResponses():
+ self.assertHasChromeProxyViaHeader(response)
+
+ # Load HTTPS page and check that Data Saver is not used.
+ t.LoadURL('https://check.googlezip.net/test.html')
+ responses = t.GetHTTPResponses()
+ self.assertEqual(2, len(responses))
+ for response in t.GetHTTPResponses():
+ self.assertNotHasChromeProxyViaHeader(response)
+
# Verify that CORS requests receive a block-once from the data reduction
# proxy by checking that those requests are retried without data reduction
# proxy.
« no previous file with comments | « no previous file | tools/chrome_proxy/webdriver/examples.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698