OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from telemetry.page import page as page_module | 5 from telemetry.page import page as page_module |
6 from telemetry.page import page_set as page_set_module | 6 from telemetry.page import page_set as page_set_module |
7 | 7 |
8 | 8 |
9 class HTTPToDirectFallbackPage(page_module.Page): | 9 class HTTPToDirectFallbackPage(page_module.Page): |
10 """Page that tests falling back from the HTTP proxy to a direct connection.""" | 10 """Page that tests falling back from the HTTP proxy to a direct connection.""" |
11 def __init__(self, url, page_set): | 11 def __init__(self, url, page_set): |
12 super(HTTPToDirectFallbackPage, self).__init__(url=url, page_set=page_set) | 12 super(HTTPToDirectFallbackPage, self).__init__(url=url, page_set=page_set) |
13 | 13 |
14 | 14 |
15 class HTTPToDirectFallbackPageSet(page_set_module.PageSet): | 15 class HTTPToDirectFallbackPageSet(page_set_module.PageSet): |
16 """Chrome proxy test sites""" | 16 """Chrome proxy test sites""" |
17 def __init__(self): | 17 def __init__(self): |
18 super(HTTPToDirectFallbackPageSet, self).__init__() | 18 super(HTTPToDirectFallbackPageSet, self).__init__() |
19 | 19 |
20 urls_list = [ | 20 urls_list = [ |
21 'http://check.googlezip.net/fallback', | 21 'http://check.googlezip.net/fallback', |
22 'http://aws1.mdw.la/bypass', | 22 'http://aws1.mdw.la/bypass', |
23 ] | 23 ] |
24 | 24 |
25 for url in urls_list: | 25 for url in urls_list: |
26 self.AddUserStory(HTTPToDirectFallbackPage(url, self)) | 26 self.AddUserStory(HTTPToDirectFallbackPage(url, self)) |
OLD | NEW |