| 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 telemetry import benchmark | 5 from telemetry import benchmark |
| 6 from telemetry.page import page_test | 6 from telemetry.page import page_test |
| 7 from telemetry.value import list_of_scalar_values | 7 from telemetry.value import list_of_scalar_values |
| 8 from telemetry.value import scalar | 8 from telemetry.value import scalar |
| 9 | 9 |
| 10 from measurements import media | 10 from measurements import media |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class MediaNetworkSimulation(benchmark.Benchmark): | 49 class MediaNetworkSimulation(benchmark.Benchmark): |
| 50 """Obtains media metrics under different network simulations.""" | 50 """Obtains media metrics under different network simulations.""" |
| 51 test = media.Media | 51 test = media.Media |
| 52 page_set = page_sets.MediaCnsCasesPageSet | 52 page_set = page_sets.MediaCnsCasesPageSet |
| 53 | 53 |
| 54 @classmethod | 54 @classmethod |
| 55 def Name(cls): | 55 def Name(cls): |
| 56 return 'media.media_cns_cases' | 56 return 'media.media_cns_cases' |
| 57 | 57 |
| 58 | 58 |
| 59 @benchmark.Enabled('android') | 59 @benchmark.Disabled() # crbug.com/448092 |
| 60 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689 | 60 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689 |
| 61 class MediaAndroid(benchmark.Benchmark): | 61 class MediaAndroid(benchmark.Benchmark): |
| 62 """Obtains media metrics for key user scenarios on Android.""" | 62 """Obtains media metrics for key user scenarios on Android.""" |
| 63 test = media.Media | 63 test = media.Media |
| 64 tag = 'android' | 64 tag = 'android' |
| 65 page_set = page_sets.ToughVideoCasesPageSet | 65 page_set = page_sets.ToughVideoCasesPageSet |
| 66 # Exclude is_4k and 50 fps media files (garden* & crowd*). | 66 # Exclude is_4k and 50 fps media files (garden* & crowd*). |
| 67 options = {'story_label_filter_exclude': 'is_4k,is_50fps'} | 67 options = {'story_label_filter_exclude': 'is_4k,is_50fps'} |
| 68 | 68 |
| 69 @classmethod | 69 @classmethod |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 @classmethod | 116 @classmethod |
| 117 def Name(cls): | 117 def Name(cls): |
| 118 return 'media.mse_cases' | 118 return 'media.mse_cases' |
| 119 | 119 |
| 120 def CustomizeBrowserOptions(self, options): | 120 def CustomizeBrowserOptions(self, options): |
| 121 # Needed to allow XHR requests to return stream objects. | 121 # Needed to allow XHR requests to return stream objects. |
| 122 options.AppendExtraBrowserArgs( | 122 options.AppendExtraBrowserArgs( |
| 123 ['--enable-experimental-web-platform-features', | 123 ['--enable-experimental-web-platform-features', |
| 124 '--disable-gesture-requirement-for-media-playback']) | 124 '--disable-gesture-requirement-for-media-playback']) |
| OLD | NEW |