| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import story |
| 7 | 7 |
| 8 | 8 |
| 9 class ExpDirectivePage(page_module.Page): | 9 class ExpDirectivePage(page_module.Page): |
| 10 """A test page for the experiment Chrome-Proxy directive tests.""" | 10 """A test page for the experiment Chrome-Proxy directive tests.""" |
| 11 | 11 |
| 12 def __init__(self, url, page_set): | 12 def __init__(self, url, page_set): |
| 13 super(ExpDirectivePage, self).__init__(url=url, page_set=page_set) | 13 super(ExpDirectivePage, self).__init__(url=url, page_set=page_set) |
| 14 | 14 |
| 15 | 15 |
| 16 class ExpDirectivePageSet(page_set_module.PageSet): | 16 class ExpDirectiveStorySet(story.StorySet): |
| 17 """ Chrome proxy test sites """ | 17 """ Chrome proxy test sites """ |
| 18 | 18 |
| 19 def __init__(self): | 19 def __init__(self): |
| 20 super(ExpDirectivePageSet, self).__init__() | 20 super(ExpDirectiveStorySet, self).__init__() |
| 21 | 21 |
| 22 urls_list = [ | 22 urls_list = [ |
| 23 'http://check.googlezip.net/exp/', | 23 'http://check.googlezip.net/exp/', |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 for url in urls_list: | 26 for url in urls_list: |
| 27 self.AddUserStory(ExpDirectivePage(url, self)) | 27 self.AddStory(ExpDirectivePage(url, self)) |
| OLD | NEW |