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 from telemetry.timeline import chrome_trace_category_filter | 6 from telemetry.timeline import chrome_trace_category_filter |
7 from telemetry.web_perf import timeline_based_measurement | 7 from telemetry.web_perf import timeline_based_measurement |
8 import page_sets | 8 import page_sets |
9 from telemetry import benchmark | 9 from telemetry import benchmark |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 galaxy_s5_type_name = 'SM-G900H' | 40 galaxy_s5_type_name = 'SM-G900H' |
41 return possible_browser.platform.GetDeviceTypeName() == galaxy_s5_type_name | 41 return possible_browser.platform.GetDeviceTypeName() == galaxy_s5_type_name |
42 | 42 |
43 @classmethod | 43 @classmethod |
44 def ShouldTearDownStateAfterEachStoryRun(cls): | 44 def ShouldTearDownStateAfterEachStoryRun(cls): |
45 return True | 45 return True |
46 | 46 |
47 | 47 |
48 # android: See battor.android.tough_video_cases below | 48 # android: See battor.android.tough_video_cases below |
49 # win8: crbug.com/531618 | 49 # win8: crbug.com/531618 |
| 50 # mac: crbug.com/650411 |
50 # crbug.com/565180: Only include cases that report time_to_play | 51 # crbug.com/565180: Only include cases that report time_to_play |
51 # Taken directly from media benchmark. | 52 # Taken directly from media benchmark. |
52 @benchmark.Disabled('android', 'win8') | 53 @benchmark.Disabled('android', 'win8', 'mac') |
53 class BattOrToughVideoCases(_BattOrBenchmark): | 54 class BattOrToughVideoCases(_BattOrBenchmark): |
54 """Obtains media metrics for key user scenarios.""" | 55 """Obtains media metrics for key user scenarios.""" |
55 page_set = page_sets.ToughVideoCasesPageSet | 56 page_set = page_sets.ToughVideoCasesPageSet |
56 | 57 |
57 @classmethod | 58 @classmethod |
58 def Name(cls): | 59 def Name(cls): |
59 return 'battor.tough_video_cases' | 60 return 'battor.tough_video_cases' |
60 | 61 |
61 | 62 |
62 # TODO(rnephew): Add a version that scrolls. | 63 # TODO(rnephew): Add a version that scrolls. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 @benchmark.Enabled('mac') | 139 @benchmark.Enabled('mac') |
139 class BattOrSteadyStatePages(_BattOrBenchmark): | 140 class BattOrSteadyStatePages(_BattOrBenchmark): |
140 | 141 |
141 def CreateStorySet(self, options): | 142 def CreateStorySet(self, options): |
142 # We want it to wait for 30 seconds to be comparable to legacy power tests. | 143 # We want it to wait for 30 seconds to be comparable to legacy power tests. |
143 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30) | 144 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30) |
144 | 145 |
145 @classmethod | 146 @classmethod |
146 def Name(cls): | 147 def Name(cls): |
147 return 'battor.steady_state' | 148 return 'battor.steady_state' |
OLD | NEW |