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

Side by Side Diff: chrome/browser/media/encrypted_media_supported_types_browsertest.cc

Issue 2847533002: Update mp4 vp9 test files to follow v1.0 spec (Closed)
Patch Set: Created 3 years, 7 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
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 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 kAudioWebMMimeType, audio_mp4_codecs(), kClearKey)); 442 kAudioWebMMimeType, audio_mp4_codecs(), kClearKey));
443 EXPECT_NO_MATCH(AreCodecsSupportedByKeySystem( 443 EXPECT_NO_MATCH(AreCodecsSupportedByKeySystem(
444 kAudioWebMMimeType, video_mp4_codecs(), kClearKey)); 444 kAudioWebMMimeType, video_mp4_codecs(), kClearKey));
445 } 445 }
446 446
447 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesClearKeyTest, Video_MP4) { 447 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesClearKeyTest, Video_MP4) {
448 // Valid video types. 448 // Valid video types.
449 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem( 449 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem(
450 kVideoMP4MimeType, video_mp4_codecs(), kClearKey)); 450 kVideoMP4MimeType, video_mp4_codecs(), kClearKey));
451 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem( 451 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem(
452 kVideoWebMMimeType, video_common_codecs(), kClearKey)); 452 kVideoMP4MimeType, video_common_codecs(), kClearKey));
453 453
454 // High 10-bit Profile is supported when using ClearKey if 454 // High 10-bit Profile is supported when using ClearKey if
455 // it is supported for clear content on this platform. 455 // it is supported for clear content on this platform.
456 #if !defined(MEDIA_DISABLE_FFMPEG) && !defined(OS_ANDROID) 456 #if !defined(MEDIA_DISABLE_FFMPEG) && !defined(OS_ANDROID)
457 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem( 457 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem(
458 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kClearKey)); 458 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kClearKey));
459 #else 459 #else
460 EXPECT_NO_MATCh(AreCodecsSupportedByKeySystem( 460 EXPECT_NO_MATCh(AreCodecsSupportedByKeySystem(
461 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kClearKey)); 461 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kClearKey));
462 #endif 462 #endif
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 EXPECT_ECK_NO_MATCH(AreCodecsSupportedByKeySystem( 592 EXPECT_ECK_NO_MATCH(AreCodecsSupportedByKeySystem(
593 kAudioWebMMimeType, video_mp4_codecs(), kExternalClearKey)); 593 kAudioWebMMimeType, video_mp4_codecs(), kExternalClearKey));
594 } 594 }
595 595
596 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesExternalClearKeyTest, 596 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesExternalClearKeyTest,
597 Video_MP4) { 597 Video_MP4) {
598 // Valid video types. 598 // Valid video types.
599 EXPECT_ECK_PROPRIETARY(AreCodecsSupportedByKeySystem( 599 EXPECT_ECK_PROPRIETARY(AreCodecsSupportedByKeySystem(
600 kVideoMP4MimeType, video_mp4_codecs(), kExternalClearKey)); 600 kVideoMP4MimeType, video_mp4_codecs(), kExternalClearKey));
601 EXPECT_ECK(AreCodecsSupportedByKeySystem( 601 EXPECT_ECK(AreCodecsSupportedByKeySystem(
602 kVideoWebMMimeType, video_common_codecs(), kExternalClearKey)); 602 kVideoWebMMimeType, video_common_codecs(), kExternalClearKey));
xhwang 2017/05/04 22:20:02 fix me too!
kqyang 2017/05/04 23:06:14 Good catch. Done.
603 603
604 // High 10-bit Profile is not supported when using ExternalClearKey. 604 // High 10-bit Profile is not supported when using ExternalClearKey.
605 EXPECT_ECK_NO_MATCH(AreCodecsSupportedByKeySystem( 605 EXPECT_ECK_NO_MATCH(AreCodecsSupportedByKeySystem(
606 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kExternalClearKey)); 606 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kExternalClearKey));
607 607
608 // Non-video MP4 codecs. 608 // Non-video MP4 codecs.
609 EXPECT_ECK_NO_MATCH(AreCodecsSupportedByKeySystem( 609 EXPECT_ECK_NO_MATCH(AreCodecsSupportedByKeySystem(
610 kVideoMP4MimeType, audio_mp4_codecs(), kExternalClearKey)); 610 kVideoMP4MimeType, audio_mp4_codecs(), kExternalClearKey));
611 611
612 // Invalid or non-MP4 codecs. 612 // Invalid or non-MP4 codecs.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 kAudioWebMMimeType, audio_mp4_codecs(), kWidevine)); 711 kAudioWebMMimeType, audio_mp4_codecs(), kWidevine));
712 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem( 712 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem(
713 kAudioWebMMimeType, video_mp4_codecs(), kWidevine)); 713 kAudioWebMMimeType, video_mp4_codecs(), kWidevine));
714 } 714 }
715 715
716 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesWidevineTest, Video_MP4) { 716 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesWidevineTest, Video_MP4) {
717 // Valid video types. 717 // Valid video types.
718 EXPECT_WV_PROPRIETARY(AreCodecsSupportedByKeySystem( 718 EXPECT_WV_PROPRIETARY(AreCodecsSupportedByKeySystem(
719 kVideoMP4MimeType, video_mp4_codecs(), kWidevine)); 719 kVideoMP4MimeType, video_mp4_codecs(), kWidevine));
720 EXPECT_WV_SUCCESS(AreCodecsSupportedByKeySystem( 720 EXPECT_WV_SUCCESS(AreCodecsSupportedByKeySystem(
721 kVideoWebMMimeType, video_common_codecs(), kWidevine)); 721 kVideoWebMMimeType, video_common_codecs(), kWidevine));
xhwang 2017/05/04 22:20:01 fix me too!
kqyang 2017/05/04 23:06:14 Done.
722 722
723 // High 10-bit Profile is not supported when using Widevine. 723 // High 10-bit Profile is not supported when using Widevine.
724 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem( 724 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem(
725 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kWidevine)); 725 kVideoMP4MimeType, video_mp4_hi10p_codecs(), kWidevine));
726 726
727 // Non-video MP4 codecs. 727 // Non-video MP4 codecs.
728 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem( 728 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem(
729 kVideoMP4MimeType, audio_mp4_codecs(), kWidevine)); 729 kVideoMP4MimeType, audio_mp4_codecs(), kWidevine));
730 730
731 // Invalid or non-MP4 codecs. 731 // Invalid or non-MP4 codecs.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 kVideoWebMMimeType, video_webm_codecs(), kWidevine)); 798 kVideoWebMMimeType, video_webm_codecs(), kWidevine));
799 799
800 // Clear Key should still be registered. 800 // Clear Key should still be registered.
801 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem(kVideoWebMMimeType, 801 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem(kVideoWebMMimeType,
802 video_webm_codecs(), kClearKey)); 802 video_webm_codecs(), kClearKey));
803 } 803 }
804 #endif // !defined(WIDEVINE_CDM_AVAILABLE) 804 #endif // !defined(WIDEVINE_CDM_AVAILABLE)
805 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 805 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS)
806 806
807 } // namespace chrome 807 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/media/encrypted_media_browsertest.cc ('k') | content/browser/media/media_canplaytype_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698