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 | |
51 # crbug.com/565180: Only include cases that report time_to_play | 50 # crbug.com/565180: Only include cases that report time_to_play |
52 # Taken directly from media benchmark. | 51 # Taken directly from media benchmark. |
53 @benchmark.Disabled('android', 'win8', 'mac') | 52 @benchmark.Disabled('android', 'win8') |
54 class BattOrToughVideoCases(_BattOrBenchmark): | 53 class BattOrToughVideoCases(_BattOrBenchmark): |
55 """Obtains media metrics for key user scenarios.""" | 54 """Obtains media metrics for key user scenarios.""" |
56 page_set = page_sets.ToughVideoCasesPageSet | 55 page_set = page_sets.ToughVideoCasesPageSet |
57 | 56 |
58 @classmethod | 57 @classmethod |
59 def Name(cls): | 58 def Name(cls): |
60 return 'battor.tough_video_cases' | 59 return 'battor.tough_video_cases' |
61 | 60 |
62 | 61 |
63 # TODO(rnephew): Add a version that scrolls. | 62 # TODO(rnephew): Add a version that scrolls. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 @benchmark.Enabled('mac') | 138 @benchmark.Enabled('mac') |
140 class BattOrSteadyStatePages(_BattOrBenchmark): | 139 class BattOrSteadyStatePages(_BattOrBenchmark): |
141 | 140 |
142 def CreateStorySet(self, options): | 141 def CreateStorySet(self, options): |
143 # We want it to wait for 30 seconds to be comparable to legacy power tests. | 142 # We want it to wait for 30 seconds to be comparable to legacy power tests. |
144 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30) | 143 return page_sets.IdleAfterLoadingStories(wait_in_seconds=30) |
145 | 144 |
146 @classmethod | 145 @classmethod |
147 def Name(cls): | 146 def Name(cls): |
148 return 'battor.steady_state' | 147 return 'battor.steady_state' |
OLD | NEW |