Index: media/filters/ffmpeg_video_decoder_unittest.cc |
diff --git a/media/filters/ffmpeg_video_decoder_unittest.cc b/media/filters/ffmpeg_video_decoder_unittest.cc |
index cfba730b45c707626a4e0cb73a3580f8cea02caa..9102b6c3fed266db652038aec7a7029b16ba6216 100644 |
--- a/media/filters/ffmpeg_video_decoder_unittest.cc |
+++ b/media/filters/ffmpeg_video_decoder_unittest.cc |
@@ -161,7 +161,7 @@ TEST_F(FFmpegVideoDecoderTest, Initialize_QueryInterfaceFails) { |
// Test QueryInterface returning NULL. |
EXPECT_CALL(*demuxer_, QueryInterface(AVStreamProvider::interface_id())) |
.WillOnce(ReturnNull()); |
- EXPECT_CALL(host_, Error(PIPELINE_ERROR_DECODE)); |
+ EXPECT_CALL(host_, SetError(PIPELINE_ERROR_DECODE)); |
EXPECT_CALL(callback_, OnFilterCallback()); |
EXPECT_CALL(callback_, OnCallbackDestroyed()); |
@@ -178,7 +178,7 @@ TEST_F(FFmpegVideoDecoderTest, Initialize_FindDecoderFails) { |
.WillOnce(Return(&stream_)); |
EXPECT_CALL(*MockFFmpeg::get(), AVCodecFindDecoder(CODEC_ID_NONE)) |
.WillOnce(ReturnNull()); |
- EXPECT_CALL(host_, Error(PIPELINE_ERROR_DECODE)); |
+ EXPECT_CALL(host_, SetError(PIPELINE_ERROR_DECODE)); |
EXPECT_CALL(callback_, OnFilterCallback()); |
EXPECT_CALL(callback_, OnCallbackDestroyed()); |
@@ -197,7 +197,7 @@ TEST_F(FFmpegVideoDecoderTest, Initialize_InitThreadFails) { |
.WillOnce(Return(&codec_)); |
EXPECT_CALL(*MockFFmpeg::get(), AVCodecThreadInit(&codec_context_, 2)) |
.WillOnce(Return(-1)); |
- EXPECT_CALL(host_, Error(PIPELINE_ERROR_DECODE)); |
+ EXPECT_CALL(host_, SetError(PIPELINE_ERROR_DECODE)); |
EXPECT_CALL(callback_, OnFilterCallback()); |
EXPECT_CALL(callback_, OnCallbackDestroyed()); |
@@ -218,7 +218,7 @@ TEST_F(FFmpegVideoDecoderTest, Initialize_OpenDecoderFails) { |
.WillOnce(Return(0)); |
EXPECT_CALL(*MockFFmpeg::get(), AVCodecOpen(&codec_context_, &codec_)) |
.WillOnce(Return(-1)); |
- EXPECT_CALL(host_, Error(PIPELINE_ERROR_DECODE)); |
+ EXPECT_CALL(host_, SetError(PIPELINE_ERROR_DECODE)); |
EXPECT_CALL(callback_, OnFilterCallback()); |
EXPECT_CALL(callback_, OnCallbackDestroyed()); |