Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: media/engine/webrtcvideoengine_unittest.cc

Issue 3010003002: Set protected_by_flexfec flag properly in tests. (Closed)
Patch Set: Rebase. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/call_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/engine/webrtcvideoengine_unittest.cc
diff --git a/media/engine/webrtcvideoengine_unittest.cc b/media/engine/webrtcvideoengine_unittest.cc
index 936bc739c19cbcb0f64e6adb8261b1227a1c6163..1b3ec720bd48e836a5e102660ab85853ed40e23f 100644
--- a/media/engine/webrtcvideoengine_unittest.cc
+++ b/media/engine/webrtcvideoengine_unittest.cc
@@ -2654,6 +2654,13 @@ TEST_F(WebRtcVideoChannelFlexfecRecvTest, SetDefaultRecvCodecsWithSsrc) {
EXPECT_EQ(kFlexfecSsrc, config.remote_ssrc);
ASSERT_EQ(1U, config.protected_media_ssrcs.size());
EXPECT_EQ(kSsrcs1[0], config.protected_media_ssrcs[0]);
+
+ const std::vector<FakeVideoReceiveStream*>& video_streams =
+ fake_call_->GetVideoReceiveStreams();
+ ASSERT_EQ(1U, video_streams.size());
+ const webrtc::VideoReceiveStream::Config& video_config =
+ video_streams.front()->GetConfig();
+ EXPECT_TRUE(video_config.rtp.protected_by_flexfec);
}
TEST_F(WebRtcVideoChannelFlexfecRecvTest,
« no previous file with comments | « no previous file | test/call_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698