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

Unified Diff: webrtc/audio/audio_receive_stream_unittest.cc

Issue 2673523003: Reland of Always call RemoteBitrateEstimator::IncomingPacket from Call. (Closed)
Patch Set: Include padding size in bwe input. Created 3 years, 10 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 | « webrtc/audio/audio_receive_stream.cc ('k') | webrtc/call/call.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_receive_stream_unittest.cc
diff --git a/webrtc/audio/audio_receive_stream_unittest.cc b/webrtc/audio/audio_receive_stream_unittest.cc
index 4c443e0f2e99c11391713c0f789326aef2ae2c9f..8df66fe127a55340b6cc079a98a17dd2e504ad76 100644
--- a/webrtc/audio/audio_receive_stream_unittest.cc
+++ b/webrtc/audio/audio_receive_stream_unittest.cc
@@ -248,13 +248,6 @@ TEST(AudioReceiveStreamTest, ConstructDestruct) {
helper.config(), helper.audio_state(), helper.event_log());
}
-MATCHER_P(VerifyHeaderExtension, expected_extension, "") {
- return arg.extension.hasTransportSequenceNumber ==
- expected_extension.hasTransportSequenceNumber &&
- arg.extension.transportSequenceNumber ==
- expected_extension.transportSequenceNumber;
-}
-
TEST(AudioReceiveStreamTest, ReceiveRtpPacket) {
ConfigHelper helper;
helper.config().rtp.transport_cc = true;
@@ -267,15 +260,6 @@ TEST(AudioReceiveStreamTest, ReceiveRtpPacket) {
std::vector<uint8_t> rtp_packet = CreateRtpHeaderWithOneByteExtension(
kTransportSequenceNumberId, kTransportSequenceNumberValue, 2);
PacketTime packet_time(5678000, 0);
- const size_t kExpectedHeaderLength = 20;
- RTPHeaderExtension expected_extension;
- expected_extension.hasTransportSequenceNumber = true;
- expected_extension.transportSequenceNumber = kTransportSequenceNumberValue;
- EXPECT_CALL(*helper.remote_bitrate_estimator(),
- IncomingPacket(packet_time.timestamp / 1000,
- rtp_packet.size() - kExpectedHeaderLength,
- VerifyHeaderExtension(expected_extension)))
- .Times(1);
EXPECT_CALL(*helper.channel_proxy(),
ReceivedRTPPacket(&rtp_packet[0],
rtp_packet.size(),
« no previous file with comments | « webrtc/audio/audio_receive_stream.cc ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698