OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 6 |
7 from telemetry import benchmark | 7 from telemetry import benchmark |
8 from telemetry.page import page_test | 8 from telemetry.page import page_test |
9 from telemetry.value import list_of_scalar_values | 9 from telemetry.value import list_of_scalar_values |
10 from telemetry.value import scalar | 10 from telemetry.value import scalar |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 else: | 33 else: |
34 results.AddValue(scalar.ScalarValue( | 34 results.AddValue(scalar.ScalarValue( |
35 results.current_page, trace_name, units='ms', | 35 results.current_page, trace_name, units='ms', |
36 value=float(metrics[m]), important=True)) | 36 value=float(metrics[m]), important=True)) |
37 | 37 |
38 | 38 |
39 # android: See media.android.tough_video_cases below | 39 # android: See media.android.tough_video_cases below |
40 # win8: crbug.com/531618 | 40 # win8: crbug.com/531618 |
41 # win7: crbug.com/555079 | 41 # win7: crbug.com/555079 |
| 42 # mac: crbug.com/595665 |
42 # crbug.com/565180: Only include cases that report time_to_play | 43 # crbug.com/565180: Only include cases that report time_to_play |
43 @benchmark.Disabled('android', 'win8', 'win7') | 44 @benchmark.Disabled('android', 'win8', 'win7', 'mac') |
44 class Media(perf_benchmark.PerfBenchmark): | 45 class Media(perf_benchmark.PerfBenchmark): |
45 """Obtains media metrics for key user scenarios.""" | 46 """Obtains media metrics for key user scenarios.""" |
46 test = media.Media | 47 test = media.Media |
47 page_set = page_sets.ToughVideoCasesPageSet | 48 page_set = page_sets.ToughVideoCasesPageSet |
48 | 49 |
49 @classmethod | 50 @classmethod |
50 def Name(cls): | 51 def Name(cls): |
51 return 'media.tough_video_cases' | 52 return 'media.tough_video_cases' |
52 | 53 |
53 | 54 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 134 |
134 @classmethod | 135 @classmethod |
135 def Name(cls): | 136 def Name(cls): |
136 return 'media.mse_cases' | 137 return 'media.mse_cases' |
137 | 138 |
138 def SetExtraBrowserOptions(self, options): | 139 def SetExtraBrowserOptions(self, options): |
139 # Needed to allow XHR requests to return stream objects. | 140 # Needed to allow XHR requests to return stream objects. |
140 options.AppendExtraBrowserArgs( | 141 options.AppendExtraBrowserArgs( |
141 ['--enable-experimental-web-platform-features', | 142 ['--enable-experimental-web-platform-features', |
142 '--disable-gesture-requirement-for-media-playback']) | 143 '--disable-gesture-requirement-for-media-playback']) |
OLD | NEW |