Index: tools/chrome_proxy/webdriver/smoke.py |
diff --git a/tools/chrome_proxy/webdriver/smoke.py b/tools/chrome_proxy/webdriver/smoke.py |
index b54dd7fc22424559aff65f2649f7890f10a07180..e837e1d380403b10e17c2f6329ccd7e68ec3b3ad 100644 |
--- a/tools/chrome_proxy/webdriver/smoke.py |
+++ b/tools/chrome_proxy/webdriver/smoke.py |
@@ -30,6 +30,14 @@ class Smoke(IntegrationTest): |
self.assertEqual(2, len(responses)) |
for response in responses: |
self.assertHasChromeProxyViaHeader(response) |
+ |
+ # Ensure Chrome uses DataSaver in normal mode. |
+ def testCheckPageWithNormalMode(self): |
+ with TestDriver() as t: |
+ t.AddChromeArg('--enable-spdy-proxy-auth') |
+ t.LoadURL('http://check.googlezip.net/test.html') |
+ for response in t.GetHTTPResponses(): |
RyanSturm
2017/03/10 19:00:37
Can you check that GetHTTPResonses() is non empty?
|
+ self.assertHasChromeProxyViaHeader(response) |
if __name__ == '__main__': |
IntegrationTest.RunAllTests() |