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 BypassPage(page_module.Page): | 9 class BlockOncePage(page_module.Page): |
10 | 10 |
11 def __init__(self, url, page_set): | 11 def __init__(self, url, page_set): |
12 super(BypassPage, self).__init__(url=url, page_set=page_set) | 12 super(BlockOncePage, self).__init__(url=url, page_set=page_set) |
13 self.archive_data_file = '../data/chrome_proxy_bypass.json' | |
14 | 13 |
15 | 14 |
16 class BypassPageSet(page_set_module.PageSet): | 15 class BlockOncePageSet(page_set_module.PageSet): |
17 | 16 |
18 """ Chrome proxy test sites """ | 17 """ Chrome proxy test sites """ |
19 | 18 |
20 def __init__(self): | 19 def __init__(self): |
21 super(BypassPageSet, self).__init__( | 20 super(BlockOncePageSet, self).__init__() |
22 archive_data_file='../data/chrome_proxy_bypass.json') | |
23 | 21 |
24 urls_list = [ | 22 urls_list = [ |
25 'http://aws1.mdw.la/bypass/', | 23 'http://check.googlezip.net/blocksingle', |
bengr
2014/09/16 21:55:37
What is this URL?
sclittle
2014/09/16 22:05:55
Other test page sets use similar URLs, such as htt
| |
26 ] | 24 ] |
27 | 25 |
28 for url in urls_list: | 26 for url in urls_list: |
29 self.AddPage(BypassPage(url, self)) | 27 self.AddPage(BlockOncePage(url, self)) |
OLD | NEW |