Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1307)

Side by Side Diff: tools/perf/benchmarks/media.py

Issue 71303007: Add MSE perf Telemetry tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleaning cases.json Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/perf/metrics/media.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « no previous file | tools/perf/metrics/media.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698