| 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 """The page cycler v2. | 5 """The page cycler v2. |
| 6 | 6 |
| 7 For details, see design doc: | 7 For details, see design doc: |
| 8 https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0 | 8 https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0 |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 if possible_browser.browser_type == 'reference': | 50 if possible_browser.browser_type == 'reference': |
| 51 return True | 51 return True |
| 52 | 52 |
| 53 # crbug.com/616781 | 53 # crbug.com/616781 |
| 54 if (cls.IsSvelte(possible_browser) or | 54 if (cls.IsSvelte(possible_browser) or |
| 55 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' or | 55 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' or |
| 56 possible_browser.platform.GetDeviceTypeName() == 'AOSP on BullHead'): | 56 possible_browser.platform.GetDeviceTypeName() == 'AOSP on BullHead'): |
| 57 return True | 57 return True |
| 58 | 58 |
| 59 # crbug.com/651188 | 59 # crbug.com/651188 |
| 60 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 6' and | 60 if ((possible_browser.platform.GetDeviceTypeName() == 'Nexus 6' or |
| 61 possible_browser.platform.GetDeviceTypeName() == 'AOSP on Shamu') and |
| 61 possible_browser.browser_type == 'android-webview'): | 62 possible_browser.browser_type == 'android-webview'): |
| 62 return True | 63 return True |
| 63 | 64 |
| 64 return False | 65 return False |
| 65 | 66 |
| 66 | 67 |
| 67 class PageCyclerV2Typical25(_PageCyclerV2): | 68 class PageCyclerV2Typical25(_PageCyclerV2): |
| 68 """Page load time benchmark for a 25 typical web pages. | 69 """Page load time benchmark for a 25 typical web pages. |
| 69 | 70 |
| 70 Designed to represent typical, not highly optimized or highly popular web | 71 Designed to represent typical, not highly optimized or highly popular web |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 set, without running in out-of-process iframes mode.. """ | 215 set, without running in out-of-process iframes mode.. """ |
| 215 page_set = page_sets.OopifBasicPageSet | 216 page_set = page_sets.OopifBasicPageSet |
| 216 | 217 |
| 217 @classmethod | 218 @classmethod |
| 218 def Name(cls): | 219 def Name(cls): |
| 219 return 'page_cycler_v2.basic_oopif' | 220 return 'page_cycler_v2.basic_oopif' |
| 220 | 221 |
| 221 def CreateStorySet(self, options): | 222 def CreateStorySet(self, options): |
| 222 return page_sets.OopifBasicPageSet(cache_temperatures=[ | 223 return page_sets.OopifBasicPageSet(cache_temperatures=[ |
| 223 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 224 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| OLD | NEW |