
RtpPacket::UpdateDelayStatistics was previously optimized with several sanity checks added. These sanity checks caused many of the unit tests in peerconnection_integration_unittests to fail and the CL was therefore reverted. This CL contains the sanity checks along with patches so that the unit tests pass. Bug: webrtc:9439 Change-Id: Ia5f5e8b125e5f3f4b79d433e2282901143530a25 Reviewed-on: https://webrtc-review.googlesource.com/99802 Reviewed-by: Björn Terelius <terelius@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24813}