Index: webrtc/call/call_unittest.cc |
diff --git a/webrtc/call/call_unittest.cc b/webrtc/call/call_unittest.cc |
index 99d6812d687cf8ca4db2f793f81c27b9aece4c83..e84d9c50965d53db5f0532015e5a71a9db301824 100644 |
--- a/webrtc/call/call_unittest.cc |
+++ b/webrtc/call/call_unittest.cc |
@@ -9,6 +9,7 @@ |
*/ |
#include <list> |
+#include <map> |
#include <memory> |
#include "webrtc/call/audio_state.h" |
@@ -141,6 +142,12 @@ TEST(CallTest, CreateDestroy_AssociateAudioSendReceiveStreams_RecvFirst) { |
new testing::NiceMock<test::MockVoEChannelProxy>(); |
EXPECT_CALL(*channel_proxy, GetAudioDecoderFactory()) |
.WillRepeatedly(testing::ReturnRef(decoder_factory)); |
+ EXPECT_CALL(*channel_proxy, SetReceiveCodecs(testing::_)) |
+ .WillRepeatedly(testing::Invoke( |
+ [](const std::map<int, SdpAudioFormat>& codecs) { |
+ EXPECT_THAT(codecs, testing::IsEmpty()); |
+ return true; |
+ })); |
// If being called for the send channel, save a pointer to the channel |
// proxy for later. |
if (channel_id == kRecvChannelId) { |
@@ -188,6 +195,12 @@ TEST(CallTest, CreateDestroy_AssociateAudioSendReceiveStreams_SendFirst) { |
new testing::NiceMock<test::MockVoEChannelProxy>(); |
EXPECT_CALL(*channel_proxy, GetAudioDecoderFactory()) |
.WillRepeatedly(testing::ReturnRef(decoder_factory)); |
+ EXPECT_CALL(*channel_proxy, SetReceiveCodecs(testing::_)) |
+ .WillRepeatedly(testing::Invoke( |
+ [](const std::map<int, SdpAudioFormat>& codecs) { |
+ EXPECT_THAT(codecs, testing::IsEmpty()); |
+ return true; |
+ })); |
// If being called for the send channel, save a pointer to the channel |
// proxy for later. |
if (channel_id == kRecvChannelId) { |