Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 test | 5 from telemetry import test |
| 6 from telemetry.page import page_measurement | 6 from telemetry.page import page_measurement |
| 7 | 7 |
| 8 from measurements import media | 8 from measurements import media |
| 9 | 9 |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 test = media.Media | 31 test = media.Media |
| 32 page_set = 'page_sets/media_cns_cases.json' | 32 page_set = 'page_sets/media_cns_cases.json' |
| 33 | 33 |
| 34 class MediaAndroid(test.Test): | 34 class MediaAndroid(test.Test): |
| 35 """Obtains media metrics for key user scenarios on Android.""" | 35 """Obtains media metrics for key user scenarios on Android.""" |
| 36 test = media.Media | 36 test = media.Media |
| 37 tag = 'android' | 37 tag = 'android' |
| 38 page_set = 'page_sets/tough_video_cases.json' | 38 page_set = 'page_sets/tough_video_cases.json' |
| 39 # Exclude 4k and 50 fps media files (garden* & crowd*). | 39 # Exclude 4k and 50 fps media files (garden* & crowd*). |
| 40 options = { | 40 options = { |
| 41 'page_filter_exclude': '.*(crowd|garden).*' | 41 'page_filter_exclude': '.*(crowd|garden).*' |
|
shadi1
2014/01/31 17:50:39
Can we update this to use labels for consistency?
anandc
2014/01/31 17:58:47
Done.
| |
| 42 } | 42 } |
| 43 | 43 |
| 44 class MediaChromeOSLowEnd(test.Test): | |
| 45 """Obtains media metrics for key user scenarios on less powerful | |
| 46 ChromeOS platforms.""" | |
| 47 test = media.Media | |
| 48 tag = 'chromeOSLowEnd' | |
| 49 page_set = 'page_sets/tough_video_cases.json' | |
| 50 # Exclude 4K and 50fps test files: crbug/331816 | |
| 51 options = { | |
| 52 'page_label_filter_exclude': '4k,50fps' | |
| 53 } | |
| 54 | |
| 44 class MediaChromeOS(test.Test): | 55 class MediaChromeOS(test.Test): |
| 45 """Obtains media metrics for key user scenarios on ChromeOS.""" | 56 """Obtains media metrics for key user scenarios on ChromeOS platforms that |
| 57 support HWDecode or are able to play hd/high-res content even with | |
| 58 software-decoding.""" | |
| 46 test = media.Media | 59 test = media.Media |
| 47 tag = 'chromeOS' | 60 tag = 'chromeOS' |
| 48 page_set = 'page_sets/tough_video_cases.json' | 61 page_set = 'page_sets/tough_video_cases.json' |
| 49 # Exclude crowd* media files (50fps 2160p): crbug/331816 | 62 # Exclude 50fps test files: crbug/331816 |
| 50 options = { | 63 options = { |
| 51 'page_filter_exclude': '.*crowd.*' | 64 'page_label_filter_exclude': '50fps' |
| 52 } | 65 } |
| 53 | 66 |
| 54 class MediaSourceExtensions(test.Test): | 67 class MediaSourceExtensions(test.Test): |
| 55 """Obtains media metrics for key media source extensions functions.""" | 68 """Obtains media metrics for key media source extensions functions.""" |
| 56 test = MSEMeasurement | 69 test = MSEMeasurement |
| 57 page_set = 'page_sets/mse_cases.json' | 70 page_set = 'page_sets/mse_cases.json' |
| 58 | 71 |
| 59 def CustomizeBrowserOptions(self, options): | 72 def CustomizeBrowserOptions(self, options): |
| 60 # Needed to allow XHR requests to return stream objects. | 73 # Needed to allow XHR requests to return stream objects. |
| 61 options.AppendExtraBrowserArgs( | 74 options.AppendExtraBrowserArgs( |
| 62 ['--enable-experimental-web-platform-features', | 75 ['--enable-experimental-web-platform-features', |
| 63 '--disable-gesture-requirement-for-media-playback']) | 76 '--disable-gesture-requirement-for-media-playback']) |
| OLD | NEW |