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

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

Issue 2402083002: Disable media.android.tough_video_cases on Android Nexus5X Perf (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from telemetry import benchmark 7 from telemetry import benchmark
8 from telemetry.page import legacy_page_test 8 from telemetry.page import legacy_page_test
9 from telemetry.value import list_of_scalar_values 9 from telemetry.value import list_of_scalar_values
10 from telemetry.value import scalar 10 from telemetry.value import scalar
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689 78 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689
79 class MediaAndroid(perf_benchmark.PerfBenchmark): 79 class MediaAndroid(perf_benchmark.PerfBenchmark):
80 """Obtains media metrics for key user scenarios on Android.""" 80 """Obtains media metrics for key user scenarios on Android."""
81 test = media.Media 81 test = media.Media
82 tag = 'android' 82 tag = 'android'
83 page_set = page_sets.ToughVideoCasesPageSet 83 page_set = page_sets.ToughVideoCasesPageSet
84 # Exclude is_4k and 50 fps media files (garden* & crowd*). 84 # Exclude is_4k and 50 fps media files (garden* & crowd*).
85 options = {'story_label_filter_exclude': 'is_4k,is_50fps'} 85 options = {'story_label_filter_exclude': 'is_4k,is_50fps'}
86 86
87 @classmethod 87 @classmethod
88 def ShouldDisable(cls, possible_browser): # crbug.com/448092 88 def ShouldDisable(cls, possible_browser):
89 """Disable test for Android One device.""" 89 # crbug.com/448092
90 return cls.IsSvelte(possible_browser) 90 if cls.IsSvelte(possible_browser):
91 return True
92
93 # crbug.com/647372
94 if possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X':
95 return True
96
97 return False
91 98
92 @classmethod 99 @classmethod
93 def Name(cls): 100 def Name(cls):
94 return 'media.android.tough_video_cases' 101 return 'media.android.tough_video_cases'
95 102
96 103
97 @benchmark.Enabled('chromeos') 104 @benchmark.Enabled('chromeos')
98 class MediaChromeOS4kOnly(perf_benchmark.PerfBenchmark): 105 class MediaChromeOS4kOnly(perf_benchmark.PerfBenchmark):
99 """Benchmark for media performance on ChromeOS using only is_4k test content. 106 """Benchmark for media performance on ChromeOS using only is_4k test content.
100 """ 107 """
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 145
139 @classmethod 146 @classmethod
140 def Name(cls): 147 def Name(cls):
141 return 'media.mse_cases' 148 return 'media.mse_cases'
142 149
143 def SetExtraBrowserOptions(self, options): 150 def SetExtraBrowserOptions(self, options):
144 # Needed to allow XHR requests to return stream objects. 151 # Needed to allow XHR requests to return stream objects.
145 options.AppendExtraBrowserArgs( 152 options.AppendExtraBrowserArgs(
146 ['--enable-experimental-web-platform-features', 153 ['--enable-experimental-web-platform-features',
147 '--disable-gesture-requirement-for-media-playback']) 154 '--disable-gesture-requirement-for-media-playback'])
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698