Unit test out of band H264 SPS,PPS within RtpStreamReceiver.
This CL introduces a dedicated unit test for webrtc::RtpStreamReceiver. Focus of this CL is testing RtpStreamReciver::OnReceivedPayloadData(). Dependencies with virtual interfaces are (g)mocked, non-virtual dependencies are instantiated. This CL is chained to https://codereview.webrtc.org/2638933002/ . BUG=webrtc:5948 Review-Url: https://codereview.webrtc.org/2641463002 Cr-Commit-Position: refs/heads/master@{#16240}
This commit is contained in:
@ -29,6 +29,7 @@ namespace webrtc {
|
||||
|
||||
bool H264SpropParameterSets::DecodeSprop(const std::string& sprop) {
|
||||
size_t separator_pos = sprop.find(',');
|
||||
LOG(LS_INFO) << "Parsing sprop \"" << sprop << "\"";
|
||||
if ((separator_pos <= 0) || (separator_pos >= sprop.length() - 1)) {
|
||||
LOG(LS_WARNING) << "Invalid seperator position " << separator_pos << " *"
|
||||
<< sprop << "*";
|
||||
|
||||
Reference in New Issue
Block a user