Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tools/chrome_proxy/webdriver/bypass.py

Issue 2666813004: Implement the Chrome Proxy bypass integration test with ChromeDriver (Closed)
Patch Set: test next page is bypassed Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import common
6 from common import TestDriver
7 from common import IntegrationTest
8
9
10 class Bypass(IntegrationTest):
11
12 # Ensure Chrome does not use Data Saver for block=0, which uses the default
13 # proxy retry delay.
14 def testBypass(self):
15 with TestDriver() as t:
16 t.AddChromeArg('--enable-spdy-proxy-auth')
17 t.LoadURL('http://check.googlezip.net/block/')
18 for response in t.GetHTTPResponses():
19 self.assertNotHasChromeProxyViaHeader(response)
20
21 # Load another page and check that Data Saver is not used.
22 t.LoadURL('http://check.googlezip.net/test.html')
23 for response in t.GetHTTPResponses():
24 self.assertNotHasChromeProxyViaHeader(response)
25
26 if __name__ == '__main__':
27 IntegrationTest.RunAllTests()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698