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

Side by Side Diff: content/browser/media/encrypted_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
« no previous file with comments | « chrome/browser/icon_loader_chromeos.cc ('k') | content/browser/media/media_browsertest.cc » ('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 (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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "base/win/windows_version.h" 8 #include "base/win/windows_version.h"
9 #include "content/browser/media/media_browsertest.h" 9 #include "content/browser/media/media_browsertest.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, FrameChangeVideo) { 237 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, FrameChangeVideo) {
238 // Times out on Windows XP. http://crbug.com/171937 238 // Times out on Windows XP. http://crbug.com/171937
239 #if defined(OS_WIN) 239 #if defined(OS_WIN)
240 if (base::win::GetVersion() < base::win::VERSION_VISTA) 240 if (base::win::GetVersion() < base::win::VERSION_VISTA)
241 return; 241 return;
242 #endif 242 #endif
243 TestFrameSizeChange(GetParam(), kEnded); 243 TestFrameSizeChange(GetParam(), kEnded);
244 } 244 }
245 245
246 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 246 #if defined(USE_PROPRIETARY_CODECS)
247 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VideoOnly_MP4) { 247 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VideoOnly_MP4) {
248 std::tr1::tuple<const char*, SrcType> test_params = GetParam(); 248 std::tr1::tuple<const char*, SrcType> test_params = GetParam();
249 // MP4 without MSE is not support yet, http://crbug.com/170793. 249 // MP4 without MSE is not support yet, http://crbug.com/170793.
250 if (std::tr1::get<1>(test_params) != MSE) { 250 if (std::tr1::get<1>(test_params) != MSE) {
251 LOG(INFO) << "Skipping test; Can only play MP4 encrypted streams by MSE."; 251 LOG(INFO) << "Skipping test; Can only play MP4 encrypted streams by MSE.";
252 return; 252 return;
253 } 253 }
254 TestMSESimplePlayback("bear-640x360-v_frag-cenc.mp4", kMP4VideoOnly, 254 TestMSESimplePlayback("bear-640x360-v_frag-cenc.mp4", kMP4VideoOnly,
255 std::tr1::get<0>(test_params), kEnded); 255 std::tr1::get<0>(test_params), kEnded);
256 } 256 }
257 257
258 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_AudioOnly_MP4) { 258 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_AudioOnly_MP4) {
259 std::tr1::tuple<const char*, SrcType> test_params = GetParam(); 259 std::tr1::tuple<const char*, SrcType> test_params = GetParam();
260 // MP4 without MSE is not support yet, http://crbug.com/170793. 260 // MP4 without MSE is not support yet, http://crbug.com/170793.
261 if (std::tr1::get<1>(test_params) != MSE) { 261 if (std::tr1::get<1>(test_params) != MSE) {
262 LOG(INFO) << "Skipping test; Can only play MP4 encrypted streams by MSE."; 262 LOG(INFO) << "Skipping test; Can only play MP4 encrypted streams by MSE.";
263 return; 263 return;
264 } 264 }
265 TestMSESimplePlayback("bear-640x360-a_frag-cenc.mp4", kMP4AudioOnly, 265 TestMSESimplePlayback("bear-640x360-a_frag-cenc.mp4", kMP4AudioOnly,
266 std::tr1::get<0>(test_params), kEnded); 266 std::tr1::get<0>(test_params), kEnded);
267 } 267 }
268 #endif 268 #endif // defined(USE_PROPRIETARY_CODECS)
269 269
270 // Run only when WV CDM is available. 270 // Run only when WV CDM is available.
271 #if defined(WIDEVINE_CDM_AVAILABLE) 271 #if defined(WIDEVINE_CDM_AVAILABLE)
272 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_AudioOnly_WebM) { 272 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_AudioOnly_WebM) {
273 TestMSESimplePlayback("bear-a-enc_a.webm", kWebMAudioOnly, 273 TestMSESimplePlayback("bear-a-enc_a.webm", kWebMAudioOnly,
274 kWidevineKeySystem); 274 kWidevineKeySystem);
275 } 275 }
276 276
277 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_AudioClearVideo_WebM) { 277 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_AudioClearVideo_WebM) {
278 TestMSESimplePlayback("bear-320x240-av-enc_a.webm", kWebMAudioVideo, 278 TestMSESimplePlayback("bear-320x240-av-enc_a.webm", kWebMAudioVideo,
279 kWidevineKeySystem); 279 kWidevineKeySystem);
280 } 280 }
281 281
282 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoAudio_WebM) { 282 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoAudio_WebM) {
283 TestMSESimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo, 283 TestMSESimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo,
284 kWidevineKeySystem); 284 kWidevineKeySystem);
285 } 285 }
286 286
287 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoOnly_WebM) { 287 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoOnly_WebM) {
288 TestMSESimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly, 288 TestMSESimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly,
289 kWidevineKeySystem); 289 kWidevineKeySystem);
290 } 290 }
291 291
292 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoClearAudio_WebM) { 292 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoClearAudio_WebM) {
293 TestMSESimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo, 293 TestMSESimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo,
294 kWidevineKeySystem); 294 kWidevineKeySystem);
295 } 295 }
296 296
297 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 297 #if defined(USE_PROPRIETARY_CODECS)
298 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoOnly_MP4) { 298 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_VideoOnly_MP4) {
299 TestMSESimplePlayback("bear-640x360-v_frag-cenc.mp4", kMP4VideoOnly, 299 TestMSESimplePlayback("bear-640x360-v_frag-cenc.mp4", kMP4VideoOnly,
300 kWidevineKeySystem); 300 kWidevineKeySystem);
301 } 301 }
302 302
303 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_AudioOnly_MP4) { 303 IN_PROC_BROWSER_TEST_F(WVEncryptedMediaTest, Playback_AudioOnly_MP4) {
304 TestMSESimplePlayback("bear-640x360-a_frag-cenc.mp4", kMP4AudioOnly, 304 TestMSESimplePlayback("bear-640x360-a_frag-cenc.mp4", kMP4AudioOnly,
305 kWidevineKeySystem); 305 kWidevineKeySystem);
306 } 306 }
307 #endif // defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 307 #endif // defined(USE_PROPRIETARY_CODECS)
308 #endif // defined(WIDEVINE_CDM_AVAILABLE) 308 #endif // defined(WIDEVINE_CDM_AVAILABLE)
309 309
310 } // namespace content 310 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/icon_loader_chromeos.cc ('k') | content/browser/media/media_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698