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

Unified Diff: media/video/ffmpeg_video_decode_engine_unittest.cc

Issue 6993042: ffmpeg chromium glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: media/video/ffmpeg_video_decode_engine_unittest.cc
===================================================================
--- media/video/ffmpeg_video_decode_engine_unittest.cc (revision 90887)
+++ media/video/ffmpeg_video_decode_engine_unittest.cc (working copy)
@@ -86,8 +86,8 @@
.WillOnce(Return(&codec_));
EXPECT_CALL(mock_ffmpeg_, AVCodecAllocFrame())
.WillOnce(Return(&yuv_frame_));
- EXPECT_CALL(mock_ffmpeg_, AVCodecThreadInit(&codec_context_, 2))
- .WillOnce(Return(0));
+// EXPECT_CALL(mock_ffmpeg_, AVCodecThreadInit(&codec_context_, 2))
+// .WillOnce(Return(0));
scherkus (not reviewing) 2011/06/29 17:00:36 you can remove
ilja 2011/06/29 21:40:05 Done.
EXPECT_CALL(mock_ffmpeg_, AVCodecOpen(&codec_context_, &codec_))
.WillOnce(Return(0));
EXPECT_CALL(mock_ffmpeg_, AVCodecClose(&codec_context_))
@@ -189,7 +189,10 @@
EXPECT_FALSE(info_.success);
}
-// Note There are 2 threads for FFmpeg-mt.
+/*
+TODO(ihf): remove this as test is obsolete
+ (InitThread can't fail anymore as is deprecated)
scherkus (not reviewing) 2011/06/29 17:00:36 just nuke the test :)
ilja 2011/06/29 21:40:05 Done.
+// Note There are 2 threads for FFmpeg
TEST_F(FFmpegVideoDecodeEngineTest, Initialize_InitThreadFails) {
// Test avcodec_thread_init() failing.
EXPECT_CALL(mock_ffmpeg_, AVCodecAllocContext())
@@ -212,6 +215,7 @@
test_engine_->Initialize(MessageLoop::current(), this, NULL, config_);
EXPECT_FALSE(info_.success);
}
+*/
TEST_F(FFmpegVideoDecodeEngineTest, Initialize_OpenDecoderFails) {
// Test avcodec_open() failing.
@@ -221,8 +225,8 @@
.WillOnce(Return(&codec_));
EXPECT_CALL(mock_ffmpeg_, AVCodecAllocFrame())
.WillOnce(Return(&yuv_frame_));
- EXPECT_CALL(mock_ffmpeg_, AVCodecThreadInit(&codec_context_, 2))
- .WillOnce(Return(0));
+// EXPECT_CALL(mock_ffmpeg_, AVCodecThreadInit(&codec_context_, 2))
+// .WillOnce(Return(0));
scherkus (not reviewing) 2011/06/29 17:00:36 ditto
ilja 2011/06/29 21:40:05 Done.
EXPECT_CALL(mock_ffmpeg_, AVCodecOpen(&codec_context_, &codec_))
.WillOnce(Return(-1));
EXPECT_CALL(mock_ffmpeg_, AVCodecClose(&codec_context_))

Powered by Google App Engine
This is Rietveld 408576698