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 measurements import media | 5 from measurements import media |
6 import page_sets | 6 import page_sets |
7 from telemetry import benchmark | 7 from telemetry import benchmark |
8 from telemetry.page import page_measurement | 8 from telemetry.page import page_measurement |
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 11 matching lines...) Expand all Loading... |
22 results.current_page, trace_name, units='ms', | 22 results.current_page, trace_name, units='ms', |
23 values=[float(v) for v in metrics[m]], | 23 values=[float(v) for v in metrics[m]], |
24 important=True)) | 24 important=True)) |
25 | 25 |
26 else: | 26 else: |
27 results.AddValue(scalar.ScalarValue( | 27 results.AddValue(scalar.ScalarValue( |
28 results.current_page, trace_name, units='ms', | 28 results.current_page, trace_name, units='ms', |
29 value=float(metrics[m]), important=True)) | 29 value=float(metrics[m]), important=True)) |
30 | 30 |
31 | 31 |
| 32 @benchmark.Disabled('android') |
32 class Media(benchmark.Benchmark): | 33 class Media(benchmark.Benchmark): |
33 """Obtains media metrics for key user scenarios.""" | 34 """Obtains media metrics for key user scenarios.""" |
34 test = media.Media | 35 test = media.Media |
35 page_set = page_sets.ToughVideoCasesPageSet | 36 page_set = page_sets.ToughVideoCasesPageSet |
36 | 37 |
37 | 38 |
38 @benchmark.Disabled | 39 @benchmark.Disabled |
39 class MediaNetworkSimulation(benchmark.Benchmark): | 40 class MediaNetworkSimulation(benchmark.Benchmark): |
40 """Obtains media metrics under different network simulations.""" | 41 """Obtains media metrics under different network simulations.""" |
41 test = media.Media | 42 test = media.Media |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 class MediaSourceExtensions(benchmark.Benchmark): | 84 class MediaSourceExtensions(benchmark.Benchmark): |
84 """Obtains media metrics for key media source extensions functions.""" | 85 """Obtains media metrics for key media source extensions functions.""" |
85 test = _MSEMeasurement | 86 test = _MSEMeasurement |
86 page_set = page_sets.MseCasesPageSet | 87 page_set = page_sets.MseCasesPageSet |
87 | 88 |
88 def CustomizeBrowserOptions(self, options): | 89 def CustomizeBrowserOptions(self, options): |
89 # Needed to allow XHR requests to return stream objects. | 90 # Needed to allow XHR requests to return stream objects. |
90 options.AppendExtraBrowserArgs( | 91 options.AppendExtraBrowserArgs( |
91 ['--enable-experimental-web-platform-features', | 92 ['--enable-experimental-web-platform-features', |
92 '--disable-gesture-requirement-for-media-playback']) | 93 '--disable-gesture-requirement-for-media-playback']) |
OLD | NEW |