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

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: Addressed comments 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
« no previous file with comments | « tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c0b43ce67c91dca70ceab3a75e66b94326a7c47e
--- /dev/null
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_to_direct_fallback.py
@@ -0,0 +1,29 @@
+# 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):
+ """Page that tests falling back from the HTTP proxy to a direct connection."""
+ def __init__(self, url, page_set):
+ super(HTTPToDirectFallbackPage, self).__init__(url=url, page_set=page_set)
+ # By making the startup URL trigger a proxy fallback, the test will use the
+ # HTTP fallback proxy.
+ self.startup_url = 'http://check.googlezip.net/fallback'
+
+
+class HTTPToDirectFallbackPageSet(page_set_module.PageSet):
+ """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:
+ self.AddPage(HTTPToDirectFallbackPage(url, self))
« no previous file with comments | « tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698