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