| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import os | 5 import os |
| 6 | 6 |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 | 8 |
| 9 from measurements import tab_switching | 9 from measurements import tab_switching |
| 10 from page_sets.system_health import multi_tab_stories | 10 from page_sets.system_health import multi_tab_stories |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 @classmethod | 30 @classmethod |
| 31 def AddBenchmarkCommandLineArgs(cls, parser): | 31 def AddBenchmarkCommandLineArgs(cls, parser): |
| 32 parser.add_option('--tabset-repeat', type='int', default=1, | 32 parser.add_option('--tabset-repeat', type='int', default=1, |
| 33 help='repeat tab page set') | 33 help='repeat tab page set') |
| 34 | 34 |
| 35 def CreateStorySet(self, options): | 35 def CreateStorySet(self, options): |
| 36 story_set = story.StorySet( | 36 story_set = story.StorySet( |
| 37 archive_data_file='../page_sets/data/system_health_desktop.json', | 37 archive_data_file='../page_sets/data/system_health_desktop.json', |
| 38 base_dir=os.path.dirname(os.path.abspath(__file__)), | 38 base_dir=os.path.dirname(os.path.abspath(__file__)), |
| 39 cloud_storage_bucket=story.PARTNER_BUCKET, | 39 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 40 verify_names=True) | |
| 41 story_set.AddStory(multi_tab_stories.MultiTabTypical24Story( | 40 story_set.AddStory(multi_tab_stories.MultiTabTypical24Story( |
| 42 story_set, False, options.tabset_repeat)) | 41 story_set, False, options.tabset_repeat)) |
| 43 return story_set | 42 return story_set |
| 44 | 43 |
| 45 @classmethod | 44 @classmethod |
| 46 def Name(cls): | 45 def Name(cls): |
| 47 return 'tab_switching.typical_25' | 46 return 'tab_switching.typical_25' |
| 48 | 47 |
| 49 @classmethod | 48 @classmethod |
| 50 def ShouldTearDownStateAfterEachStoryRun(cls): | 49 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 51 return False | 50 return False |
| OLD | NEW |