Index: webrtc/media/base/videoengine_unittest.h |
diff --git a/webrtc/media/base/videoengine_unittest.h b/webrtc/media/base/videoengine_unittest.h |
index aaa03b3e867357bfb57c47d52ad6ed2e530480c0..a32bb64ef9065553b6e498989c643eb72fca87f3 100644 |
--- a/webrtc/media/base/videoengine_unittest.h |
+++ b/webrtc/media/base/videoengine_unittest.h |
@@ -423,6 +423,8 @@ class VideoMediaChannelTest : public testing::Test, |
EXPECT_GT(info.senders[0].bytes_sent, 0); |
EXPECT_EQ(NumRtpPackets(), info.senders[0].packets_sent); |
EXPECT_EQ(0.0, info.senders[0].fraction_lost); |
+ EXPECT_TRUE(info.senders[0].codec_payload_type); |
+ EXPECT_EQ(DefaultCodec().id, *info.senders[0].codec_payload_type); |
Taylor Brandstetter
2016/11/08 23:55:44
nit: This will crash if codec_payload_type if null
hbos
2016/11/11 11:20:05
Done. Here and for receivers.
|
EXPECT_EQ(0, info.senders[0].firs_rcvd); |
EXPECT_EQ(0, info.senders[0].plis_rcvd); |
EXPECT_EQ(0, info.senders[0].nacks_rcvd); |
@@ -431,10 +433,16 @@ class VideoMediaChannelTest : public testing::Test, |
EXPECT_GT(info.senders[0].framerate_input, 0); |
EXPECT_GT(info.senders[0].framerate_sent, 0); |
+ EXPECT_NE(info.send_codecs.end(), info.send_codecs.find(DefaultCodec().id)); |
+ EXPECT_EQ(DefaultCodec().ToCodecParameters(), |
+ info.send_codecs[DefaultCodec().id]); |
+ |
ASSERT_EQ(1U, info.receivers.size()); |
EXPECT_EQ(1U, info.senders[0].ssrcs().size()); |
EXPECT_EQ(1U, info.receivers[0].ssrcs().size()); |
EXPECT_EQ(info.senders[0].ssrcs()[0], info.receivers[0].ssrcs()[0]); |
+ EXPECT_TRUE(info.receivers[0].codec_payload_type); |
+ EXPECT_EQ(DefaultCodec().id, *info.receivers[0].codec_payload_type); |
EXPECT_EQ(NumRtpBytes(), info.receivers[0].bytes_rcvd); |
EXPECT_EQ(NumRtpPackets(), info.receivers[0].packets_rcvd); |
EXPECT_EQ(0.0, info.receivers[0].fraction_lost); |
@@ -449,6 +457,11 @@ class VideoMediaChannelTest : public testing::Test, |
EXPECT_GT(info.receivers[0].framerate_rcvd, 0); |
EXPECT_GT(info.receivers[0].framerate_decoded, 0); |
EXPECT_GT(info.receivers[0].framerate_output, 0); |
+ |
+ EXPECT_NE(info.receive_codecs.end(), |
+ info.receive_codecs.find(DefaultCodec().id)); |
+ EXPECT_EQ(DefaultCodec().ToCodecParameters(), |
+ info.receive_codecs[DefaultCodec().id]); |
} |
cricket::VideoSenderInfo GetSenderStats(size_t i) { |