OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |