diff options
Diffstat (limited to 'media/base/pipeline_impl_unittest.cc')
-rw-r--r-- | media/base/pipeline_impl_unittest.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/media/base/pipeline_impl_unittest.cc b/media/base/pipeline_impl_unittest.cc index 9edae50..86b4e27 100644 --- a/media/base/pipeline_impl_unittest.cc +++ b/media/base/pipeline_impl_unittest.cc @@ -492,7 +492,7 @@ TEST_F(PipelineImplTest, Properties) { pipeline_->GetBufferedTime().ToInternalValue()); } -TEST_F(PipelineImplTest, BroadcastMessage) { +TEST_F(PipelineImplTest, DisableAudioRenderer) { CreateAudioStream(); CreateVideoStream(); MockDemuxerStreamVector streams; @@ -513,20 +513,19 @@ TEST_F(PipelineImplTest, BroadcastMessage) { EXPECT_TRUE(pipeline_->IsRendered(mime_type::kMajorTypeVideo)); EXPECT_CALL(*mocks_->audio_renderer(), SetPlaybackRate(1.0f)) - .WillOnce(BroadcastMessage(mocks_->audio_renderer(), - kMsgDisableAudio)); + .WillOnce(DisableAudioRenderer(mocks_->audio_renderer())); EXPECT_CALL(*mocks_->data_source(), - OnReceivedMessage(kMsgDisableAudio)); + OnAudioRendererDisabled()); EXPECT_CALL(*mocks_->demuxer(), - OnReceivedMessage(kMsgDisableAudio)); + OnAudioRendererDisabled()); EXPECT_CALL(*mocks_->audio_decoder(), - OnReceivedMessage(kMsgDisableAudio)); + OnAudioRendererDisabled()); EXPECT_CALL(*mocks_->audio_renderer(), - OnReceivedMessage(kMsgDisableAudio)); + OnAudioRendererDisabled()); EXPECT_CALL(*mocks_->video_decoder(), - OnReceivedMessage(kMsgDisableAudio)); + OnAudioRendererDisabled()); EXPECT_CALL(*mocks_->video_renderer(), - OnReceivedMessage(kMsgDisableAudio)); + OnAudioRendererDisabled()); mocks_->audio_renderer()->SetPlaybackRate(1.0f); } |