Chromium Code Reviews| 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..0f21fd070c51b070ba9ba6ec5195d0e305ac4fb3 100644 |
| --- a/tools/chrome_proxy/webdriver/smoke.py |
| +++ b/tools/chrome_proxy/webdriver/smoke.py |
| @@ -18,5 +18,18 @@ class Incognito(IntegrationTest): |
| for response in t.GetHTTPResponses(): |
| self.assertNotHasChromeProxyViaHeader(response) |
| + # Ensure Chrome uses DataSaver with QUIC enabled. |
|
Robert Ogden
2017/02/14 19:54:32
Please stick this method in another class or renam
tbansal1
2017/02/14 20:33:21
Done.
|
| + 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() |