| OLD | NEW |
| 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.timeline import chrome_trace_category_filter | 9 from telemetry.timeline import chrome_trace_category_filter |
| 10 from telemetry.value import list_of_scalar_values | 10 from telemetry.value import list_of_scalar_values |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 def Name(cls): | 107 def Name(cls): |
| 108 return 'media.media_cns_cases' | 108 return 'media.media_cns_cases' |
| 109 | 109 |
| 110 | 110 |
| 111 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689. | 111 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689. |
| 112 class MediaAndroidToughVideoCases(perf_benchmark.PerfBenchmark): | 112 class MediaAndroidToughVideoCases(perf_benchmark.PerfBenchmark): |
| 113 """Obtains media metrics for key user scenarios on Android.""" | 113 """Obtains media metrics for key user scenarios on Android.""" |
| 114 test = media.Media | 114 test = media.Media |
| 115 tag = 'android' | 115 tag = 'android' |
| 116 page_set = page_sets.ToughVideoCasesPageSet | 116 page_set = page_sets.ToughVideoCasesPageSet |
| 117 options = {'story_tag_filter_exclude': 'is_4k,is_50fps'} | 117 options = {'story_tag_filter_exclude': 'is_4k,is_50fps,theora'} |
| 118 | 118 |
| 119 @classmethod | 119 @classmethod |
| 120 def ShouldDisable(cls, possible_browser): | 120 def ShouldDisable(cls, possible_browser): |
| 121 if possible_browser.platform.GetOSName() != "android": | 121 if possible_browser.platform.GetOSName() != "android": |
| 122 return True | 122 return True |
| 123 return cls.IsSvelte(possible_browser) | 123 return cls.IsSvelte(possible_browser) |
| 124 | 124 |
| 125 @classmethod | 125 @classmethod |
| 126 def Name(cls): | 126 def Name(cls): |
| 127 return 'media.android.tough_video_cases' | 127 return 'media.android.tough_video_cases' |
| 128 | 128 |
| 129 | 129 |
| 130 @benchmark.Owner(emails=['johnchen@chromium.org', 'crouleau@chromium.org'], | 130 @benchmark.Owner(emails=['johnchen@chromium.org', 'crouleau@chromium.org'], |
| 131 component='Internals>Media') | 131 component='Internals>Media') |
| 132 @benchmark.Enabled('android') | 132 @benchmark.Enabled('android') |
| 133 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689. | 133 @benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689. |
| 134 class MediaAndroidToughVideoCasesTBMv2(_MediaTBMv2Benchmark): | 134 class MediaAndroidToughVideoCasesTBMv2(_MediaTBMv2Benchmark): |
| 135 """Obtains media metrics for key user scenarios on Android using TBMv2. | 135 """Obtains media metrics for key user scenarios on Android using TBMv2. |
| 136 Will eventually replace MediaAndroidToughVideoCases class.""" | 136 Will eventually replace MediaAndroidToughVideoCases class.""" |
| 137 | 137 |
| 138 tag = 'android' | 138 tag = 'android' |
| 139 options = {'story_tag_filter_exclude': 'is_4k,is_50fps'} | 139 options = {'story_tag_filter_exclude': 'is_4k,is_50fps,theora'} |
| 140 | 140 |
| 141 @classmethod | 141 @classmethod |
| 142 def ShouldDisable(cls, possible_browser): | 142 def ShouldDisable(cls, possible_browser): |
| 143 return cls.IsSvelte(possible_browser) | 143 return cls.IsSvelte(possible_browser) |
| 144 | 144 |
| 145 @classmethod | 145 @classmethod |
| 146 def Name(cls): | 146 def Name(cls): |
| 147 return 'media.android.tough_video_cases_tbmv2' | 147 return 'media.android.tough_video_cases_tbmv2' |
| 148 | 148 |
| 149 def SetExtraBrowserOptions(self, options): | 149 def SetExtraBrowserOptions(self, options): |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 199 |
| 200 @classmethod | 200 @classmethod |
| 201 def Name(cls): | 201 def Name(cls): |
| 202 return 'media.mse_cases' | 202 return 'media.mse_cases' |
| 203 | 203 |
| 204 def SetExtraBrowserOptions(self, options): | 204 def SetExtraBrowserOptions(self, options): |
| 205 # Needed to allow XHR requests to return stream objects. | 205 # Needed to allow XHR requests to return stream objects. |
| 206 options.AppendExtraBrowserArgs( | 206 options.AppendExtraBrowserArgs( |
| 207 ['--enable-experimental-web-platform-features', | 207 ['--enable-experimental-web-platform-features', |
| 208 '--disable-gesture-requirement-for-media-playback']) | 208 '--disable-gesture-requirement-for-media-playback']) |
| OLD | NEW |