Index: webrtc/media/base/testutils.cc |
diff --git a/webrtc/media/base/testutils.cc b/webrtc/media/base/testutils.cc |
index b1f520a929704d9919cf29b9ce2145ff238b19dd..93d1bc0b3df13186bdf74f477c1f069c362a1150 100644 |
--- a/webrtc/media/base/testutils.cc |
+++ b/webrtc/media/base/testutils.cc |
@@ -268,4 +268,17 @@ cricket::StreamParams CreateSimWithRtxStreamParams( |
return sp; |
} |
+cricket::StreamParams CreatePrimaryWithFecFrStreamParams( |
+ const std::string& cname, |
+ uint32_t primary_ssrc, |
+ uint32_t flexfec_ssrc) { |
+ cricket::StreamParams sp; |
+ cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics, |
+ {primary_ssrc, flexfec_ssrc}); |
+ sp.ssrcs = {primary_ssrc}; |
+ sp.ssrc_groups.push_back(sg); |
+ sp.cname = cname; |
+ return sp; |
+} |
+ |
} // namespace cricket |