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 from telemetry import story |
| 5 from telemetry.page import page |
4 from telemetry.page import shared_page_state | 6 from telemetry.page import shared_page_state |
5 from telemetry.page import page | |
6 from telemetry.page import page_set | |
7 | 7 |
8 | 8 |
9 class ThrottledPluginsPageSet(page_set.PageSet): | 9 class ThrottledPluginsPageSet(story.StorySet): |
10 def __init__(self): | 10 def __init__(self): |
11 super(ThrottledPluginsPageSet, self).__init__( | 11 super(ThrottledPluginsPageSet, self).__init__( |
12 archive_data_file='data/throttled_plugins.json', | 12 archive_data_file='data/throttled_plugins.json', |
13 bucket=page_set.PUBLIC_BUCKET) | 13 cloud_storage_bucket=story.PUBLIC_BUCKET) |
14 urls_with_throttled_plugins = [ | 14 urls_with_throttled_plugins = [ |
15 'http://cnn.com', | 15 'http://cnn.com', |
16 'http://techcrunch.com', | 16 'http://techcrunch.com', |
17 'http://wsj.com', | 17 'http://wsj.com', |
18 'http://youtube.com' | 18 'http://youtube.com' |
19 ] | 19 ] |
20 for url in urls_with_throttled_plugins: | 20 for url in urls_with_throttled_plugins: |
21 self.AddUserStory( | 21 self.AddUserStory( |
22 page.Page( | 22 page.Page( |
23 url, page_set=self, | 23 url, page_set=self, |
24 shared_page_state_class=shared_page_state.SharedDesktopPageState)) | 24 shared_page_state_class=shared_page_state.SharedDesktopPageState)) |
OLD | NEW |