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

Unified Diff: tools/chrome_proxy/webdriver/smoke.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 | « tools/chrome_proxy/webdriver/examples.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/smoke.py
diff --git a/tools/chrome_proxy/webdriver/smoke.py b/tools/chrome_proxy/webdriver/smoke.py
index 1f36d3a97f9e2b17b276df394e13b6b255f2cc07..b54dd7fc22424559aff65f2649f7890f10a07180 100644
--- a/tools/chrome_proxy/webdriver/smoke.py
+++ b/tools/chrome_proxy/webdriver/smoke.py
@@ -7,7 +7,7 @@ from common import TestDriver
from common import IntegrationTest
-class Incognito(IntegrationTest):
+class Smoke(IntegrationTest):
# Ensure Chrome does not use DataSaver in Incognito mode.
def testCheckPageWithIncognito(self):
@@ -18,5 +18,18 @@ class Incognito(IntegrationTest):
for response in t.GetHTTPResponses():
self.assertNotHasChromeProxyViaHeader(response)
+ # Ensure Chrome uses DataSaver with QUIC enabled.
+ def testCheckPageWithQuicProxy(self):
+ with TestDriver() as t:
+ t.AddChromeArg('--enable-spdy-proxy-auth')
+ t.AddChromeArg('--enable-quic')
+ t.AddChromeArg('--data-reduction-proxy-http-proxies=https://proxy.googlezip.net:443')
+ t.AddChromeArg('--force-fieldtrials=DataReductionProxyUseQuic/Enabled')
+ t.LoadURL('http://check.googlezip.net/test.html')
+ responses = t.GetHTTPResponses()
+ self.assertEqual(2, len(responses))
+ for response in responses:
+ self.assertHasChromeProxyViaHeader(response)
+
if __name__ == '__main__':
IntegrationTest.RunAllTests()
« no previous file with comments | « tools/chrome_proxy/webdriver/examples.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698