Chromium Code Reviews| 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) |