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

Issue 2997973002: Split LogRtpHeader and LogRtcpPacket into separate versions for incoming and outgoing packets.

Created:
3 years, 4 months ago by terelius
Modified:
3 years, 2 months ago
Reviewers:
the sun, danilchap, eladalon
CC:
webrtc-reviews_webrtc.org, AleBzk, zhuangzesen_agora.io, Andrew MacDonald, henrika_webrtc, stefan-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Split LogRtpHeader and LogRtcpPacket into separate versions for incoming and outgoing packets. This is done in anticipation of proto format changes that will use different types for incoming and outgoing packets. This CL makes the interface more natural for the new event log implementation, and it is just as natural for the current implementation. (Note that the current format actually has fields that are only used for outgoing packets. However, we're not changing the encoding or implementation in this CL, merely adding a thin wrapper around the old code.) BUG=webrtc:8111

Patch Set 1 #

Total comments: 1

Patch Set 2 : Keep empty implementation in interface. #

Patch Set 3 : Use RTC_DEPRECATED #

Total comments: 4

Patch Set 4 : Change LogIncomingRtpHeader and LogOutgoingRtpHeader to take RtpPacketReceived and RtpPacketToSend #

Patch Set 5 : Use RtpHeaderExtensionMap instead of bitvector. #

Patch Set 6 : Resolve ambiguous overload #

Patch Set 7 : Rebase #

Total comments: 16

Patch Set 8 : Split LogSessionAndReadBack into three functions and create class to share state between them. #

Patch Set 9 : Misc comments #

Patch Set 10 : Misc comments #

Patch Set 11 : Update deps in build file #

Total comments: 4

Patch Set 12 : Add some out-of-bounds checks in unit test #

Patch Set 13 : Review comments #

Patch Set 14 : Review comments #

Patch Set 15 : Silly test #

Patch Set 16 : Silly test2 #

Patch Set 17 : Silly test3 #

Patch Set 18 : Silly test4 #

Patch Set 19 : Silly test5 #

Patch Set 20 : Silly test6 #

Patch Set 21 : Silly test7 #

Patch Set 22 : Silly test8 #

Patch Set 23 : Rebase #

Patch Set 24 : Silly test9 #

Patch Set 25 : Silly test10 #

Patch Set 26 : Silly test11 #

Patch Set 27 : Silly test12 #

Patch Set 28 : Format #

Patch Set 29 : Split VerifyRtpEvent into one incoming and one outgoing version. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+732 lines, -392 lines) Patch
M call/call.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 3 chunks +3 lines, -3 lines 0 comments Download
M logging/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -0 lines 0 comments Download
M logging/rtc_event_log/mock/mock_rtc_event_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +12 lines, -15 lines 0 comments Download
M logging/rtc_event_log/rtc_event_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +34 lines, -26 lines 0 comments Download
M logging/rtc_event_log/rtc_event_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +33 lines, -0 lines 0 comments Download
M logging/rtc_event_log/rtc_event_log_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 18 chunks +562 lines, -285 lines 0 comments Download
M logging/rtc_event_log/rtc_event_log_unittest_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +8 lines, -6 lines 0 comments Download
M logging/rtc_event_log/rtc_event_log_unittest_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +45 lines, -16 lines 0 comments Download
M modules/rtp_rtcp/source/rtcp_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +4 lines, -2 lines 0 comments Download
M modules/rtp_rtcp/source/rtp_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -2 lines 0 comments Download
M modules/rtp_rtcp/source/rtp_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 9 chunks +9 lines, -23 lines 0 comments Download
M voice_engine/channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +20 lines, -14 lines 0 comments Download

Messages

Total messages: 70 (55 generated)
terelius
3 years, 4 months ago (2017-08-17 15:54:27 UTC) #4
eladalon
lgtm % I would suggest extending the CL's description with an explanation of why this ...
3 years, 4 months ago (2017-08-18 08:54:37 UTC) #7
terelius
Updated CL description. kwiberg, could you review voice_engine/? danil, could you review rtp_rtcp/?
3 years, 4 months ago (2017-08-18 11:12:17 UTC) #11
terelius
stefan, could you review call/?
3 years, 4 months ago (2017-08-18 11:14:01 UTC) #13
danilchap
rtp_rtcp/ lgtm https://codereview.webrtc.org/2997973002/diff/1/webrtc/logging/rtc_event_log/rtc_event_log.h File webrtc/logging/rtc_event_log/rtc_event_log.h (left): https://codereview.webrtc.org/2997973002/diff/1/webrtc/logging/rtc_event_log/rtc_event_log.h#oldcode128 webrtc/logging/rtc_event_log/rtc_event_log.h:128: virtual void LogRtpHeader(PacketDirection direction, can you keep ...
3 years, 4 months ago (2017-08-18 11:34:03 UTC) #14
terelius
danil, I added back an empty implementation in the interface. Does this seem good enough? ...
3 years, 4 months ago (2017-08-21 14:42:39 UTC) #16
danilchap
On 2017/08/21 14:42:39, terelius wrote: > danil, I added back an empty implementation in the ...
3 years, 4 months ago (2017-08-21 15:17:09 UTC) #19
the sun
https://codereview.webrtc.org/2997973002/diff/40001/webrtc/call/call.cc File webrtc/call/call.cc (left): https://codereview.webrtc.org/2997973002/diff/40001/webrtc/call/call.cc#oldcode1292 webrtc/call/call.cc:1292: event_log_->LogRtcpPacket(kIncomingPacket, packet, length); Can you remove the PacketDirection enum? ...
3 years, 4 months ago (2017-08-22 11:44:31 UTC) #22
terelius
There have been large changes since the last iteration. Could you all take another look? ...
3 years, 3 months ago (2017-09-04 12:47:51 UTC) #37
danilchap
lgtm with few suggestions https://codereview.webrtc.org/2997973002/diff/120001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2997973002/diff/120001/webrtc/call/call.cc#newcode1303 webrtc/call/call.cc:1303: rtc::ArrayView<const uint8_t>(packet, length)); for this ...
3 years, 3 months ago (2017-09-05 08:47:16 UTC) #38
eladalon
https://codereview.webrtc.org/2997973002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): https://codereview.webrtc.org/2997973002/diff/120001/webrtc/logging/rtc_event_log/rtc_event_log.cc#newcode447 webrtc/logging/rtc_event_log/rtc_event_log.cc:447: LogRtcpPacket(kIncomingPacket, packet.data(), packet.size()); nit: Would it be possible to ...
3 years, 3 months ago (2017-09-05 11:57:01 UTC) #39
terelius
https://codereview.webrtc.org/2997973002/diff/120001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2997973002/diff/120001/webrtc/call/call.cc#newcode1303 webrtc/call/call.cc:1303: rtc::ArrayView<const uint8_t>(packet, length)); On 2017/09/05 08:47:16, danilchap wrote: > ...
3 years, 3 months ago (2017-09-07 12:53:56 UTC) #46
eladalon
https://codereview.webrtc.org/2997973002/diff/190001/webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc File webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc (right): https://codereview.webrtc.org/2997973002/diff/190001/webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc#newcode228 webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc:228: INCOMING_RTP = 1, 1. Assigning the numbers manually runs ...
3 years, 3 months ago (2017-09-07 13:41:28 UTC) #51
eladalon
P.S: re-lgtm whether you accept my suggestions or not. If you could land this as-is ...
3 years, 3 months ago (2017-09-07 13:42:18 UTC) #52
commit-bot: I haz the power
3 years, 3 months ago (2017-09-11 10:29:55 UTC) #62

Powered by Google App Engine
This is Rietveld 408576698