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

Side by Side Diff: content/browser/media/media_browsertest.cc

Issue 23205006: Define proprietary_codecs=1 when branding==Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto lkgr Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 4
5 #include "content/browser/media/media_browsertest.h" 5 #include "content/browser/media/media_browsertest.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/common/url_constants.h" 10 #include "content/public/common/url_constants.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearWebm) { 112 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearWebm) {
113 PlayVideo("bear.webm", GetParam()); 113 PlayVideo("bear.webm", GetParam());
114 } 114 }
115 115
116 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearSilentWebm) { 116 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearSilentWebm) {
117 PlayVideo("bear_silent.webm", GetParam()); 117 PlayVideo("bear_silent.webm", GetParam());
118 } 118 }
119 119
120 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 120 #if defined(USE_PROPRIETARY_CODECS)
121 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearMp4) { 121 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearMp4) {
122 PlayVideo("bear.mp4", GetParam()); 122 PlayVideo("bear.mp4", GetParam());
123 } 123 }
124 124
125 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearSilentMp4) { 125 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearSilentMp4) {
126 PlayVideo("bear_silent.mp4", GetParam()); 126 PlayVideo("bear_silent.mp4", GetParam());
127 } 127 }
128 128
129 // While we support the big endian (be) PCM codecs on Chromium, Quicktime seems 129 // While we support the big endian (be) PCM codecs on Chromium, Quicktime seems
130 // to be the only creator of this format and only for .mov files. 130 // to be the only creator of this format and only for .mov files.
131 // TODO(dalecurtis/ihf): Find or create some .wav test cases for "be" format. 131 // TODO(dalecurtis/ihf): Find or create some .wav test cases for "be" format.
132 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearMovPcmS16be) { 132 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearMovPcmS16be) {
133 PlayVideo("bear_pcm_s16be.mov", GetParam()); 133 PlayVideo("bear_pcm_s16be.mov", GetParam());
134 } 134 }
135 135
136 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearMovPcmS24be) { 136 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearMovPcmS24be) {
137 PlayVideo("bear_pcm_s24be.mov", GetParam()); 137 PlayVideo("bear_pcm_s24be.mov", GetParam());
138 } 138 }
139 #endif 139 #endif
140 140
141 #if defined(OS_CHROMEOS) 141 #if defined(OS_CHROMEOS)
142 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 142 #if defined(USE_PROPRIETARY_CODECS)
143 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearAviMp3Mpeg4) { 143 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearAviMp3Mpeg4) {
144 PlayVideo("bear_mpeg4_mp3.avi", GetParam()); 144 PlayVideo("bear_mpeg4_mp3.avi", GetParam());
145 } 145 }
146 146
147 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearAviMp3Mpeg4Asp) { 147 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearAviMp3Mpeg4Asp) {
148 PlayVideo("bear_mpeg4asp_mp3.avi", GetParam()); 148 PlayVideo("bear_mpeg4asp_mp3.avi", GetParam());
149 } 149 }
150 150
151 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearAviMp3Divx) { 151 IN_PROC_BROWSER_TEST_P(MediaTest, VideoBearAviMp3Divx) {
152 PlayVideo("bear_divx_mp3.avi", GetParam()); 152 PlayVideo("bear_divx_mp3.avi", GetParam());
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv444pTheora)) { 211 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv444pTheora)) {
212 // TODO(scherkus): Support YUV444 http://crbug.com/104711 212 // TODO(scherkus): Support YUV444 http://crbug.com/104711
213 RunColorFormatTest("yuv424p.ogv", "ERROR"); 213 RunColorFormatTest("yuv424p.ogv", "ERROR");
214 } 214 }
215 215
216 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv420pVp8)) { 216 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv420pVp8)) {
217 RunColorFormatTest("yuv420p.webm", "ENDED"); 217 RunColorFormatTest("yuv420p.webm", "ENDED");
218 } 218 }
219 219
220 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 220 #if defined(USE_PROPRIETARY_CODECS)
221 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv420pH264)) { 221 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv420pH264)) {
222 RunColorFormatTest("yuv420p.mp4", "ENDED"); 222 RunColorFormatTest("yuv420p.mp4", "ENDED");
223 } 223 }
224 224
225 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuvj420pH264)) { 225 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuvj420pH264)) {
226 RunColorFormatTest("yuvj420p.mp4", "ENDED"); 226 RunColorFormatTest("yuvj420p.mp4", "ENDED");
227 } 227 }
228 228
229 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv422pH264)) { 229 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv422pH264)) {
230 RunColorFormatTest("yuv422p.mp4", "ENDED"); 230 RunColorFormatTest("yuv422p.mp4", "ENDED");
231 } 231 }
232 232
233 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv444pH264)) { 233 IN_PROC_BROWSER_TEST_F(MediaTest, MAYBE(Yuv444pH264)) {
234 // TODO(scherkus): Support YUV444 http://crbug.com/104711 234 // TODO(scherkus): Support YUV444 http://crbug.com/104711
235 RunColorFormatTest("yuv444p.mp4", "ERROR"); 235 RunColorFormatTest("yuv444p.mp4", "ERROR");
236 } 236 }
237 237
238 #if defined(OS_CHROMEOS) 238 #if defined(OS_CHROMEOS)
239 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) { 239 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) {
240 RunColorFormatTest("yuv420p.avi", "ENDED"); 240 RunColorFormatTest("yuv420p.avi", "ENDED");
241 } 241 }
242 #endif 242 #endif // defined(OS_CHROMEOS)
243 #endif 243 #endif // defined(USE_PROPRIETARY_CODECS)
244 244
245 } // namespace content 245 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/encrypted_media_browsertest.cc ('k') | content/renderer/media/crypto/key_systems_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698