| 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()
|
|
|