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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d7d1b0c48941ba8ad4b5675bbaa23361b263ce40
--- /dev/null
+++ b/tools/chrome_proxy/webdriver/bypass.py
@@ -0,0 +1,27 @@
+# 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():
+ self.assertNotHasChromeProxyViaHeader(response)
+
+ # Load another page and check that Data Saver is not used.
+ t.LoadURL('http://check.googlezip.net/test.html')
+ for response in t.GetHTTPResponses():
+ self.assertNotHasChromeProxyViaHeader(response)
+
+if __name__ == '__main__':
+ IntegrationTest.RunAllTests()
« 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