Chromium Code Reviews| Index: tools/chrome_proxy/webdriver/incognito.py |
| diff --git a/tools/chrome_proxy/webdriver/incognito.py b/tools/chrome_proxy/webdriver/incognito.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fe2d14e48df4b6787758a02d28cdf6e9268c9d4e |
| --- /dev/null |
| +++ b/tools/chrome_proxy/webdriver/incognito.py |
| @@ -0,0 +1,22 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
|
RyanSturm
2017/01/04 21:24:33
s/2016/2017/
Robert Ogden
2017/01/04 22:11:31
Done.
|
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import common |
| +from common import TestDriver |
| +from common import IntegrationTest |
| + |
| + |
| +class Incognito(IntegrationTest): |
| + |
| + # Ensure Chrome does not use DataSaver in Incognito mode. |
| + def testCheckPageWithIncognito(self): |
| + with TestDriver() as t: |
| + t.AddChromeArg('--enable-spdy-proxy-auth') |
| + t.AddChromeArg('--incognito') |
| + t.LoadURL('http://check.googlezip.net/test.html') |
| + for response in t.GetHTTPResponses(): |
| + self.assertNotHasChromeProxyViaHeader(response) |
| + |
| +if __name__ == '__main__': |
| + IntegrationTest.RunAllTests() |