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

Side by Side Diff: media/filters/ffmpeg_video_decoder_unittest.cc

Issue 1786733004: Revert of media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 (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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <list> 7 #include <list>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 TEST_F(FFmpegVideoDecoderTest, Initialize_Normal) { 218 TEST_F(FFmpegVideoDecoderTest, Initialize_Normal) {
219 Initialize(); 219 Initialize();
220 } 220 }
221 221
222 TEST_F(FFmpegVideoDecoderTest, Initialize_OpenDecoderFails) { 222 TEST_F(FFmpegVideoDecoderTest, Initialize_OpenDecoderFails) {
223 // Specify Theora w/o extra data so that avcodec_open2() fails. 223 // Specify Theora w/o extra data so that avcodec_open2() fails.
224 VideoDecoderConfig config(kCodecTheora, VIDEO_CODEC_PROFILE_UNKNOWN, 224 VideoDecoderConfig config(kCodecTheora, VIDEO_CODEC_PROFILE_UNKNOWN,
225 kVideoFormat, COLOR_SPACE_UNSPECIFIED, kCodedSize, 225 kVideoFormat, COLOR_SPACE_UNSPECIFIED, kCodedSize,
226 kVisibleRect, kNaturalSize, EmptyExtraData(), 226 kVisibleRect, kNaturalSize, EmptyExtraData(),
227 Unencrypted()); 227 false);
228 InitializeWithConfigWithResult(config, false); 228 InitializeWithConfigWithResult(config, false);
229 } 229 }
230 230
231 TEST_F(FFmpegVideoDecoderTest, Reinitialize_Normal) { 231 TEST_F(FFmpegVideoDecoderTest, Reinitialize_Normal) {
232 Initialize(); 232 Initialize();
233 Reinitialize(); 233 Reinitialize();
234 } 234 }
235 235
236 TEST_F(FFmpegVideoDecoderTest, Reinitialize_AfterDecodeFrame) { 236 TEST_F(FFmpegVideoDecoderTest, Reinitialize_AfterDecodeFrame) {
237 Initialize(); 237 Initialize();
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 // Test destruction when decoder has hit end of stream. 359 // Test destruction when decoder has hit end of stream.
360 TEST_F(FFmpegVideoDecoderTest, Destroy_EndOfStream) { 360 TEST_F(FFmpegVideoDecoderTest, Destroy_EndOfStream) {
361 Initialize(); 361 Initialize();
362 EnterDecodingState(); 362 EnterDecodingState();
363 EnterEndOfStreamState(); 363 EnterEndOfStreamState();
364 Destroy(); 364 Destroy();
365 } 365 }
366 366
367 } // namespace media 367 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/decrypting_demuxer_stream_unittest.cc ('k') | media/filters/frame_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698