| Index: talk/media/webrtc/webrtcvideoengine2_unittest.cc
|
| diff --git a/talk/media/webrtc/webrtcvideoengine2_unittest.cc b/talk/media/webrtc/webrtcvideoengine2_unittest.cc
|
| index 832c4d06233a71c40c6c1749eb9f88e626554095..985d92a0bb0c8f020e4c3a4688cb1a6afe8a10b1 100644
|
| --- a/talk/media/webrtc/webrtcvideoengine2_unittest.cc
|
| +++ b/talk/media/webrtc/webrtcvideoengine2_unittest.cc
|
| @@ -2472,6 +2472,26 @@ TEST_F(WebRtcVideoChannel2Test, GetStatsReportsUpperResolution) {
|
| EXPECT_EQ(90, info.senders[0].send_frame_height);
|
| }
|
|
|
| +TEST_F(WebRtcVideoChannel2Test, GetStatsReportsQpForUpperResolution) {
|
| + FakeVideoSendStream* stream = AddSendStream();
|
| + webrtc::VideoSendStream::Stats stats;
|
| + stats.substreams[17].width = 320;
|
| + stats.substreams[17].height = 180;
|
| + stats.substreams[17].qp = 20;
|
| + stats.substreams[42].width = 1280;
|
| + stats.substreams[42].height = 720;
|
| + stats.substreams[42].qp = 21;
|
| + stats.substreams[11].width = 640;
|
| + stats.substreams[11].height = 360;
|
| + stats.substreams[11].qp = 22;
|
| + stream->SetStats(stats);
|
| +
|
| + cricket::VideoMediaInfo info;
|
| + ASSERT_TRUE(channel_->GetStats(&info));
|
| + ASSERT_EQ(1u, info.senders.size());
|
| + EXPECT_EQ(21, info.senders[0].qp);
|
| +}
|
| +
|
| TEST_F(WebRtcVideoChannel2Test, GetStatsTracksAdaptationStats) {
|
| AddSendStream(cricket::CreateSimStreamParams("cname", MAKE_VECTOR(kSsrcs3)));
|
|
|
|
|