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

Unified Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py

Issue 655703002: Added integration tests for falling back from the HTTP proxy to direct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py
new file mode 100644
index 0000000000000000000000000000000000000000..beef953c332d70b27c6117541ab6d2dc5603a3e9
--- /dev/null
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py
@@ -0,0 +1,32 @@
+# Copyright 2014 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.
+
+from telemetry.page import page as page_module
+from telemetry.page import page_set as page_set_module
+
+
+class HTTPToDirectFallbackPage(page_module.Page):
+
bengr 2014/10/14 16:34:41 Comment?
sclittle 2014/10/14 17:36:45 Done.
+ def __init__(self, url, page_set):
+ super(HTTPToDirectFallbackPage, self).__init__(url=url, page_set=page_set)
+
+
+class HTTPToDirectFallbackPageSet(page_set_module.PageSet):
+
bengr 2014/10/14 16:34:41 remove blank line
sclittle 2014/10/14 17:36:45 Done.
+ """ Chrome proxy test sites """
+
+ def __init__(self):
+ super(HTTPToDirectFallbackPageSet, self).__init__()
+
+ urls_list = [
+ 'http://check.googlezip.net/fallback',
+ 'http://aws1.mdw.la/bypass',
+ ]
+
+ for url in urls_list:
+ page = HTTPToDirectFallbackPage(url, self)
+ # By making the startup URL trigger a proxy fallback, the test will use
+ # the HTTP fallback proxy.
+ page.startup_url = 'http://check.googlezip.net/fallback'
+ self.AddPage(page)

Powered by Google App Engine
This is Rietveld 408576698