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

Unified Diff: webrtc/pc/channel_unittest.cc

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: respond to comments. Created 4 years, 2 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
Index: webrtc/pc/channel_unittest.cc
diff --git a/webrtc/pc/channel_unittest.cc b/webrtc/pc/channel_unittest.cc
index 00382fab8e44582a561a80a44fa66eaa96a53384..46e8b1f2ead8d94d16ef6c90be8aa9218270832c 100644
--- a/webrtc/pc/channel_unittest.cc
+++ b/webrtc/pc/channel_unittest.cc
@@ -958,11 +958,16 @@ class ChannelTest : public testing::Test, public sigslot::has_slots<> {
});
WaitForThreads();
EXPECT_EQ(1, media_channel1->num_network_route_changes());
+ constexpr int kTransportOverheadPerPacket = 28; // Ipv4(20) + UDP(8).
rtc::NetworkRoute expected_network_route(true, kLocalNetId, kRemoteNetId,
- kLastPacketId);
+ kLastPacketId,
+ kTransportOverheadPerPacket);
EXPECT_EQ(expected_network_route, media_channel1->last_network_route());
EXPECT_EQ(kLastPacketId,
media_channel1->last_network_route().last_sent_packet_id);
+ EXPECT_EQ(
+ kTransportOverheadPerPacket,
+ media_channel1->last_network_route().transport_overhead_per_packet);
}
// Test setting up a call.

Powered by Google App Engine
This is Rietveld 408576698