Chromium Code Reviews| Index: tools/chrome_proxy/webdriver/bypass.py |
| diff --git a/tools/chrome_proxy/webdriver/bypass.py b/tools/chrome_proxy/webdriver/bypass.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9c7355aa6fa4ac1e98c50f2887e66c7b1339e9e8 |
| --- /dev/null |
| +++ b/tools/chrome_proxy/webdriver/bypass.py |
| @@ -0,0 +1,22 @@ |
| +# Copyright 2017 The Chromium Authors. All rights reserved. |
| +# 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 Bypass(IntegrationTest): |
| + |
| + # Ensure Chrome does not use Data Saver for block=0, which uses the default |
| + # proxy retry delay. |
| + def testBypass(self): |
| + with TestDriver() as t: |
| + t.AddChromeArg('--enable-spdy-proxy-auth') |
| + t.LoadURL('http://check.googlezip.net/block/') |
| + for response in t.GetHTTPResponses(): |
|
RyanSturm
2017/01/31 19:48:23
tl;dr: Should we check if the CP header is present
RyanSturm
2017/01/31 20:39:10
Can you check if the retried request is treated as
|
| + self.assertNotHasChromeProxyViaHeader(response) |
| + |
| +if __name__ == '__main__': |
| + IntegrationTest.RunAllTests() |