| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 core import perf_benchmark | 5 from core import perf_benchmark |
| 6 import page_sets | 6 import page_sets |
| 7 | 7 |
| 8 import ct_benchmarks_util | 8 import ct_benchmarks_util |
| 9 from benchmarks import page_cycler_v2 | 9 from benchmarks import page_cycler_v2 |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 tbm_options = timeline_based_measurement.Options() | 23 tbm_options = timeline_based_measurement.Options() |
| 24 page_cycler_v2.AugmentOptionsForLoadingMetrics(tbm_options) | 24 page_cycler_v2.AugmentOptionsForLoadingMetrics(tbm_options) |
| 25 return tbm_options | 25 return tbm_options |
| 26 | 26 |
| 27 @classmethod | 27 @classmethod |
| 28 def ShouldDisable(cls, possible_browser): | 28 def ShouldDisable(cls, possible_browser): |
| 29 # crbug.com/619254 | 29 # crbug.com/619254 |
| 30 if possible_browser.browser_type == 'reference': | 30 if possible_browser.browser_type == 'reference': |
| 31 return True | 31 return True |
| 32 | 32 |
| 33 # crbug.com/651188 | |
| 34 if possible_browser.browser_type == 'android-webview': | |
| 35 return True | |
| 36 | |
| 37 return False | 33 return False |
| 38 | 34 |
| 39 @classmethod | 35 @classmethod |
| 40 def Name(cls): | 36 def Name(cls): |
| 41 return 'loading.mobile' | 37 return 'loading.mobile' |
| 42 | 38 |
| 43 def CreateStorySet(self, options): | 39 def CreateStorySet(self, options): |
| 44 return page_sets.LoadingMobileStorySet( | 40 return page_sets.LoadingMobileStorySet( |
| 45 cache_temperatures=[cache_temperature.ANY], | 41 cache_temperatures=[cache_temperature.ANY], |
| 46 traffic_settings=[traffic_setting.NONE, traffic_setting.REGULAR_3G]) | 42 traffic_settings=[traffic_setting.NONE, traffic_setting.REGULAR_3G]) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 77 help='Traffic condition (string). Default to "%%default". Can be: %s' % | 73 help='Traffic condition (string). Default to "%%default". Can be: %s' % |
| 78 ', '.join(cls._ALL_NET_CONFIGS)) | 74 ', '.join(cls._ALL_NET_CONFIGS)) |
| 79 | 75 |
| 80 def CreateStorySet(self, options): | 76 def CreateStorySet(self, options): |
| 81 def Wait(action_runner): | 77 def Wait(action_runner): |
| 82 action_runner.Wait(options.wait_time) | 78 action_runner.Wait(options.wait_time) |
| 83 return page_sets.CTPageSet( | 79 return page_sets.CTPageSet( |
| 84 options.urls_list, options.user_agent, options.archive_data_file, | 80 options.urls_list, options.user_agent, options.archive_data_file, |
| 85 traffic_setting=options.traffic_setting, | 81 traffic_setting=options.traffic_setting, |
| 86 run_page_interaction_callback=Wait) | 82 run_page_interaction_callback=Wait) |
| OLD | NEW |