| 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 cache_temperature as cache_temperature_module | 6 from telemetry.page import cache_temperature as cache_temperature_module |
| 7 from telemetry.page import shared_page_state | 7 from telemetry.page import shared_page_state |
| 8 from telemetry import story | 8 from telemetry import story |
| 9 | 9 |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 class Typical25PageSet(story.StorySet): | 31 class Typical25PageSet(story.StorySet): |
| 32 | 32 |
| 33 """ Pages designed to represent the median, not highly optimized web """ | 33 """ Pages designed to represent the median, not highly optimized web """ |
| 34 | 34 |
| 35 def __init__(self, run_no_page_interactions=False, | 35 def __init__(self, run_no_page_interactions=False, |
| 36 page_class=Typical25Page, | 36 page_class=Typical25Page, |
| 37 cache_temperatures=None): | 37 cache_temperatures=None): |
| 38 super(Typical25PageSet, self).__init__( | 38 super(Typical25PageSet, self).__init__( |
| 39 archive_data_file='data/typical_25.json', | 39 archive_data_file='data/typical_25.json', |
| 40 cloud_storage_bucket=story.PARTNER_BUCKET, | 40 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 41 verify_names=True) | |
| 42 if cache_temperatures is None: | 41 if cache_temperatures is None: |
| 43 cache_temperatures = [cache_temperature_module.ANY] | 42 cache_temperatures = [cache_temperature_module.ANY] |
| 44 | 43 |
| 45 urls_list = [ | 44 urls_list = [ |
| 46 # Why: Alexa games #48 | 45 # Why: Alexa games #48 |
| 47 'http://www.nick.com/games', | 46 'http://www.nick.com/games', |
| 48 # Why: Alexa sports #45 | 47 # Why: Alexa sports #45 |
| 49 'http://www.rei.com/', | 48 'http://www.rei.com/', |
| 50 # Why: Alexa sports #50 | 49 # Why: Alexa sports #50 |
| 51 'http://www.fifa.com/', | 50 'http://www.fifa.com/', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 77 'http://www.airbnb.com/', | 76 'http://www.airbnb.com/', |
| 78 'http://www.ign.com/', | 77 'http://www.ign.com/', |
| 79 # Why: Alexa health #25 | 78 # Why: Alexa health #25 |
| 80 'http://www.fda.gov', | 79 'http://www.fda.gov', |
| 81 ] | 80 ] |
| 82 | 81 |
| 83 for url in urls_list: | 82 for url in urls_list: |
| 84 for temp in cache_temperatures: | 83 for temp in cache_temperatures: |
| 85 self.AddStory(page_class( | 84 self.AddStory(page_class( |
| 86 url, self, run_no_page_interactions, cache_temperature=temp)) | 85 url, self, run_no_page_interactions, cache_temperature=temp)) |
| OLD | NEW |