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

Issue 2080553003: Style updates for ForwardErrorCorrection and related classes (Closed)

Created:
4 years, 6 months ago by brandtr
Modified:
4 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, danilchap, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Style updates for ForwardErrorCorrection and related classes. This CL mainly updates the FEC code to use more C++11 features and to be more in line with the style guide. These changes should have no impact on the functionality provided by the FEC. Summary of style fixes: - Use range-based for loops, where applicable. - Use auto type deduction for iterator type names. - Use RTC_DCHECK instead of assert. - Rename FEC to Fec, where applicable. - Update test_fec.cc to use variable_names rather than variableNames. - Avoid redefining the PacketList types outside ForwardErrorCorrection. Another minor change is that storage for the packet masks, as these are generated, now is provided by a member variable, rather than being dynamically allocated on every call to GenerateFec. BUG=webrtc:5654 R=danilchap@webrtc.org, stefan@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/ae4f7674e472f21701c1e65bc2c9b28e421dee8e

Patch Set 1 : Initial fixes. #

Patch Set 2 : Replace single-member enum with constant for consistency. #

Patch Set 3 : Update variable names in test_fec.cc in accordance with style guide, and use auto in places. #

Patch Set 4 : Use auto for iterator type names in unit tests. #

Patch Set 5 : Avoid redefining PacketList type outside of ForwardErrorCorrection. #

Patch Set 6 : Make it clearer that the set intersection leaves the two original sets untouched. #

Patch Set 7 : Rebase. #

Patch Set 8 : Re-add explicit constructors. #

Total comments: 39

Patch Set 9 : Response to feedback, changed asserts -> RTC_DCHECKs, removed some unused header includes. #

Patch Set 10 : Line length and fec_packet_list.clear(). #

Patch Set 11 : Re-add <iterator> in forward_error_correction.cc. #

Total comments: 24

Patch Set 12 : Response to feedback. #

Total comments: 5

Patch Set 13 : Switch from {0} -> () initializers of arrays. #

Total comments: 2

Patch Set 14 : Rebase to try to fix the patch errors. #

Patch Set 15 : Rebase 2. #

Patch Set 16 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -593 lines) Patch
M webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +13 lines, -14 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +48 lines, -51 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/forward_error_correction.h View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +37 lines, -30 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/forward_error_correction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 33 chunks +114 lines, -131 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/producer_fec.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/producer_fec.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -4 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/producer_fec_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_fec_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 46 chunks +66 lines, -80 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +259 lines, -276 lines 0 comments Download

Messages

Total messages: 41 (19 generated)
brandtr
Please have a look :) The following three CLs are related to this one, and ...
4 years, 5 months ago (2016-06-29 06:35:00 UTC) #4
danilchap
Nice to see so many style improvements. Would like to see more. https://codereview.webrtc.org/2080553003/diff/140001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc ...
4 years, 5 months ago (2016-06-29 10:31:53 UTC) #5
brandtr
https://codereview.webrtc.org/2080553003/diff/140001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc (right): https://codereview.webrtc.org/2080553003/diff/140001/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc#newcode241 webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc:241: auto it = recovered_packet_list_.begin(); On 2016/06/29 10:31:52, danilchap wrote: ...
4 years, 5 months ago (2016-06-29 14:24:11 UTC) #7
danilchap
Reduce CL description to reflect only changes in the CL, since that description would be ...
4 years, 5 months ago (2016-06-29 15:18:24 UTC) #8
stefan-webrtc
Mention in description if this CL is expected to not have any functional changes. https://codereview.webrtc.org/2080553003/diff/220001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc ...
4 years, 5 months ago (2016-06-29 16:14:03 UTC) #9
brandtr
Comments addressed. Update to "1b" CL coming soon. https://codereview.webrtc.org/2080553003/diff/220001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc File webrtc/modules/rtp_rtcp/source/forward_error_correction.cc (right): https://codereview.webrtc.org/2080553003/diff/220001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc#newcode109 webrtc/modules/rtp_rtcp/source/forward_error_correction.cc:109: int32_t ...
4 years, 5 months ago (2016-06-30 13:37:43 UTC) #11
stefan-webrtc
https://codereview.webrtc.org/2080553003/diff/240001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc File webrtc/modules/rtp_rtcp/source/forward_error_correction.cc (right): https://codereview.webrtc.org/2080553003/diff/240001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc#newcode89 webrtc/modules/rtp_rtcp/source/forward_error_correction.cc:89: packet_mask_{0}, tmp_packet_mask_{0} {} Never seen this type of initialization ...
4 years, 5 months ago (2016-06-30 13:58:34 UTC) #12
brandtr
https://codereview.webrtc.org/2080553003/diff/240001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc File webrtc/modules/rtp_rtcp/source/forward_error_correction.cc (right): https://codereview.webrtc.org/2080553003/diff/240001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc#newcode89 webrtc/modules/rtp_rtcp/source/forward_error_correction.cc:89: packet_mask_{0}, tmp_packet_mask_{0} {} On 2016/06/30 13:58:34, stefan-webrtc (holmer) wrote: ...
4 years, 5 months ago (2016-06-30 14:25:34 UTC) #13
stefan-webrtc
lgtm
4 years, 5 months ago (2016-06-30 14:38:01 UTC) #14
danilchap
lgtm too. more improvements probably better do in next CLs https://codereview.webrtc.org/2080553003/diff/260001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc File webrtc/modules/rtp_rtcp/source/forward_error_correction.cc (right): https://codereview.webrtc.org/2080553003/diff/260001/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc#newcode837 ...
4 years, 5 months ago (2016-06-30 15:38:36 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2080553003/260001
4 years, 5 months ago (2016-07-05 11:01:21 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_rel/builds/14952)
4 years, 5 months ago (2016-07-05 11:06:12 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2080553003/280001
4 years, 5 months ago (2016-07-05 11:16:20 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_arm64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_dbg/builds/11071) ios_rel on ...
4 years, 5 months ago (2016-07-05 11:17:32 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2080553003/260001
4 years, 5 months ago (2016-07-05 14:03:16 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios64_sim_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_sim_dbg/builds/8757) ios_arm64_rel on ...
4 years, 5 months ago (2016-07-05 14:04:28 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2080553003/300001
4 years, 5 months ago (2016-07-06 07:56:32 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_compile_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_compile_dbg/builds/6720)
4 years, 5 months ago (2016-07-06 08:01:05 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2080553003/300001
4 years, 5 months ago (2016-07-06 11:59:10 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_dbg/builds/16333) ios_rel on ...
4 years, 5 months ago (2016-07-06 12:00:22 UTC) #36
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/ae4f7674e472f21701c1e65bc2c9b28e421dee8e Cr-Commit-Position: refs/heads/master@{#13403}
4 years, 5 months ago (2016-07-07 07:41:11 UTC) #39
brandtr
4 years, 5 months ago (2016-07-07 07:41:12 UTC) #40
Message was sent while issue was closed.
Committed patchset #16 (id:340001) manually as
ae4f7674e472f21701c1e65bc2c9b28e421dee8e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698