Index: talk/media/webrtc/webrtcvideoengine2_unittest.cc |
diff --git a/talk/media/webrtc/webrtcvideoengine2_unittest.cc b/talk/media/webrtc/webrtcvideoengine2_unittest.cc |
index 1fb3d5d73b14072e9a76fb03a86b8601b16fb327..817b66f0f9538aef5b56d2c25a0b5cc78d854809 100644 |
--- a/talk/media/webrtc/webrtcvideoengine2_unittest.cc |
+++ b/talk/media/webrtc/webrtcvideoengine2_unittest.cc |
@@ -2536,6 +2536,17 @@ TEST_F(WebRtcVideoChannel2Test, GetStatsTranslatesDecodeStatsCorrectly) { |
EXPECT_EQ(stats.render_delay_ms, info.receivers[0].render_delay_ms); |
} |
+TEST_F(WebRtcVideoChannel2Test, GetStatsTranslatesReceiveQpStatsCorrectly) { |
+ FakeVideoReceiveStream* stream = AddRecvStream(); |
+ webrtc::VideoReceiveStream::Stats stats; |
+ stats.qp = 9; |
+ stream->SetStats(stats); |
+ |
+ cricket::VideoMediaInfo info; |
+ ASSERT_TRUE(channel_->GetStats(&info)); |
+ EXPECT_EQ(stats.qp, info.receivers[0].qp); |
+} |
+ |
TEST_F(WebRtcVideoChannel2Test, GetStatsTranslatesReceivePacketStatsCorrectly) { |
FakeVideoReceiveStream* stream = AddRecvStream(); |
webrtc::VideoReceiveStream::Stats stats; |