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 from measurements import media | 4 from measurements import media |
5 from telemetry import test | 5 from telemetry import test |
6 | 6 |
7 class Media(test.Test): | 7 class Media(test.Test): |
8 """Obtains media metrics for key user scenarios.""" | 8 """Obtains media metrics for key user scenarios.""" |
9 test = media.Media | 9 test = media.Media |
10 page_set = 'page_sets/tough_video_cases.json' | 10 page_set = 'page_sets/tough_video_cases.json' |
11 | 11 |
12 class MediaAndroid(test.Test): | 12 class MediaAndroid(test.Test): |
13 """Obtains media metrics for key user scenarios on Android.""" | 13 """Obtains media metrics for key user scenarios on Android.""" |
14 test = media.Media | 14 test = media.Media |
15 tag = 'android' | 15 tag = 'android' |
16 page_set = 'page_sets/tough_video_cases.json' | 16 page_set = 'page_sets/tough_video_cases.json' |
17 # Exclude crowd* media files (50fps 2160p). | 17 # Exclude crowd* media files (50fps 2160p). |
18 options = { | 18 options = { |
19 'page_filter_exclude': '.*crowd.*' | 19 'page_filter_exclude': '.*crowd.*' |
20 } | 20 } |
21 | 21 |
22 def CustomizeBrowserOptions(self, options): | 22 def CustomizeBrowserOptions(self, options): |
23 # Needed to run media actions in JS in Android. | 23 # Needed to run media actions in JS in Android. |
24 options.AppendExtraBrowserArgs( | 24 options.AppendExtraBrowserArgs( |
25 '--disable-gesture-requirement-for-media-playback') | 25 '--disable-gesture-requirement-for-media-playback') |
| 26 |
| 27 class MediaSourceExtensions(test.Test): |
| 28 """Obtains media metrics for key media source extensions functions.""" |
| 29 test = media.Media |
| 30 page_set = 'page_sets/mse_cases.json' |
| 31 |
| 32 def CustomizeBrowserOptions(self, options): |
| 33 # Needed to allow XHR requests to return stream objects. |
| 34 options.AppendExtraBrowserArgs( |
| 35 '--enable-experimental-web-platform-features') |
| 36 |
OLD | NEW |