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

Side by Side Diff: content/browser/encrypted_media_browsertest.cc

Issue 11492003: Encrypted Media: Support Audio Decrypt-Only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated key_system.cc and content_browsertests Created 8 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 #endif 123 #endif
124 124
125 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, InvalidKeySystem) { 125 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, InvalidKeySystem) {
126 const string16 kExpected = ASCIIToUTF16( 126 const string16 kExpected = ASCIIToUTF16(
127 StringToUpperASCII(std::string("GenerateKeyRequestException"))); 127 StringToUpperASCII(std::string("GenerateKeyRequestException")));
128 ASSERT_NO_FATAL_FAILURE( 128 ASSERT_NO_FATAL_FAILURE(
129 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo, 129 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo,
130 "com.example.invalid", kExpected)); 130 "com.example.invalid", kExpected));
131 } 131 }
132 132
133 // TODO(shadi): Make these three IN_PROC_BROWSER_TEST_P() when internal Clear 133 // TODO(shadi): Make these three IN_PROC_BROWSER_TEST_P() when internal Clear
ddorwin 2012/12/14 05:17:01 Remove
xhwang 2012/12/14 05:50:07 Done.
134 // Key supports encrypted audio. 134 // Key supports encrypted audio.
135 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, MAYBE(BasicPlayback_AudioOnly)) { 135 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, MAYBE(BasicPlayback_AudioOnly)) {
136 const string16 kExpected = ASCIIToUTF16("ENDED"); 136 const string16 kExpected = ASCIIToUTF16("ENDED");
137 ASSERT_NO_FATAL_FAILURE( 137 ASSERT_NO_FATAL_FAILURE(
138 TestSimplePlayback("bear-a-enc_a.webm", kWebMAudioOnly, 138 TestSimplePlayback("bear-a-enc_a.webm", kWebMAudioOnly,
139 kExternalClearKeyKeySystem, kExpected)); 139 GetParam(), kExpected));
140 } 140 }
141 141
142 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, 142 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest,
143 MAYBE(BasicPlayback_AudioClearVideo)) { 143 MAYBE(BasicPlayback_AudioClearVideo)) {
144 const string16 kExpected = ASCIIToUTF16("ENDED"); 144 const string16 kExpected = ASCIIToUTF16("ENDED");
145 ASSERT_NO_FATAL_FAILURE( 145 ASSERT_NO_FATAL_FAILURE(
146 TestSimplePlayback("bear-320x240-av-enc_a.webm", kWebMAudioVideo, 146 TestSimplePlayback("bear-320x240-av-enc_a.webm", kWebMAudioVideo,
147 kExternalClearKeyKeySystem, kExpected)); 147 GetParam(), kExpected));
148 } 148 }
149 149
150 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, MAYBE(BasicPlayback_VideoAudio)) { 150 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, MAYBE(BasicPlayback_VideoAudio)) {
151 const string16 kExpected = ASCIIToUTF16("ENDED"); 151 const string16 kExpected = ASCIIToUTF16("ENDED");
152 ASSERT_NO_FATAL_FAILURE( 152 ASSERT_NO_FATAL_FAILURE(
153 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo, 153 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo,
154 kExternalClearKeyKeySystem, kExpected)); 154 GetParam(), kExpected));
155 } 155 }
156 156
157 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoOnly) { 157 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoOnly) {
158 const string16 kExpected = ASCIIToUTF16("ENDED"); 158 const string16 kExpected = ASCIIToUTF16("ENDED");
159 ASSERT_NO_FATAL_FAILURE( 159 ASSERT_NO_FATAL_FAILURE(
160 TestSimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly, 160 TestSimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly,
161 GetParam(), kExpected)); 161 GetParam(), kExpected));
162 } 162 }
163 163
164 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoClearAudio) { 164 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoClearAudio) {
165 const string16 kExpected = ASCIIToUTF16("ENDED"); 165 const string16 kExpected = ASCIIToUTF16("ENDED");
166 ASSERT_NO_FATAL_FAILURE( 166 ASSERT_NO_FATAL_FAILURE(
167 TestSimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo, 167 TestSimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo,
168 GetParam(), kExpected)); 168 GetParam(), kExpected));
169 } 169 }
170 170
171 // TODO(acolwell): Reenable when the changes for http://webk.it/104583 land. 171 // TODO(acolwell): Reenable when the changes for http://webk.it/104583 land.
172 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, DISABLED_FrameChangeVideo) { 172 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, DISABLED_FrameChangeVideo) {
173 const string16 kExpected = ASCIIToUTF16("ENDED"); 173 const string16 kExpected = ASCIIToUTF16("ENDED");
174 ASSERT_NO_FATAL_FAILURE(TestFrameSizeChange(GetParam(), kExpected)); 174 ASSERT_NO_FATAL_FAILURE(TestFrameSizeChange(GetParam(), kExpected));
175 } 175 }
176 176
177 } // namespace content 177 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | media/filters/audio_decoder_selector.h » ('j') | media/filters/audio_decoder_selector.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698