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

Issue 2977603002: Implemented a new sequence number unwrapper in sequence_number_util.h. (Closed)

Created:
3 years, 5 months ago by philipel
Modified:
3 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Implemented a new sequence number unwrapper in sequence_number_util.h. There is already an Unwrapper in webrtc/modules/include/module_common_types.h, but we reimplemented it in sequence_number_util.h for a few reasons: - Such a class belongs in sequence_number_util.h. - It is a cleaner implementation since we can use the rest of sequence_number_util.h functionality. - You can choose at which number the unwrapped sequence should start, which is used to avoid the edge case when a backward wrap can happen as the first few numbers are unwrapped. - This unwrapper can unwrap numbers that does not wrap 8/16/32 bits. BUG=None Review-Url: https://codereview.webrtc.org/2977603002 Cr-Commit-Position: refs/heads/master@{#19154} Committed: https://chromium.googlesource.com/external/webrtc/+/7956c0f2f68e3fbaaab0936aad8b1f2b9437d7fe

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 7

Patch Set 3 : mod_ops unittests #

Total comments: 4

Patch Set 4 : Updated test with ASSERT_DEATH #

Patch Set 5 : ASSERT_DEATH --> ASSERT_DEATH_IF_SUPPORTED #

Total comments: 4

Patch Set 6 : Feedback #

Total comments: 4

Patch Set 7 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -53 lines) Patch
M webrtc/modules/video_coding/sequence_number_util.h View 1 2 3 4 5 5 chunks +51 lines, -39 lines 0 comments Download
M webrtc/modules/video_coding/sequence_number_util_unittest.cc View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
M webrtc/rtc_base/mod_ops.h View 1 2 3 4 5 6 4 chunks +21 lines, -14 lines 0 comments Download
M webrtc/rtc_base/mod_ops_unittest.cc View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (34 generated)
philipel
3 years, 5 months ago (2017-07-10 17:31:23 UTC) #2
terelius
https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h File webrtc/modules/video_coding/sequence_number_util.h (right): https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h#newcode84 webrtc/modules/video_coding/sequence_number_util.h:84: class SeqNumUnwrapper { We already have an Unwrapper in ...
3 years, 5 months ago (2017-07-10 21:20:23 UTC) #11
philipel
https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h File webrtc/modules/video_coding/sequence_number_util.h (right): https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h#newcode84 webrtc/modules/video_coding/sequence_number_util.h:84: class SeqNumUnwrapper { On 2017/07/10 21:20:23, terelius wrote: > ...
3 years, 5 months ago (2017-07-11 11:08:31 UTC) #14
terelius
https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h File webrtc/modules/video_coding/sequence_number_util.h (right): https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h#newcode84 webrtc/modules/video_coding/sequence_number_util.h:84: class SeqNumUnwrapper { On 2017/07/11 11:08:30, philipel wrote: > ...
3 years, 5 months ago (2017-07-11 12:38:18 UTC) #16
philipel
https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h File webrtc/modules/video_coding/sequence_number_util.h (right): https://codereview.webrtc.org/2977603002/diff/20001/webrtc/modules/video_coding/sequence_number_util.h#newcode84 webrtc/modules/video_coding/sequence_number_util.h:84: class SeqNumUnwrapper { On 2017/07/11 12:38:17, terelius wrote: > ...
3 years, 5 months ago (2017-07-11 12:49:06 UTC) #17
terelius
lgtm, but please consider the comments below: https://codereview.webrtc.org/2977603002/diff/40001/webrtc/modules/video_coding/sequence_number_util.h File webrtc/modules/video_coding/sequence_number_util.h (right): https://codereview.webrtc.org/2977603002/diff/40001/webrtc/modules/video_coding/sequence_number_util.h#newcode49 webrtc/modules/video_coding/sequence_number_util.h:49: inline bool ...
3 years, 5 months ago (2017-07-24 13:35:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2977603002/60001
3 years, 5 months ago (2017-07-24 14:31:32 UTC) #22
commit-bot: I haz the power
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/22228)
3 years, 5 months ago (2017-07-24 14:34:02 UTC) #24
philipel
https://codereview.webrtc.org/2977603002/diff/40001/webrtc/modules/video_coding/sequence_number_util.h File webrtc/modules/video_coding/sequence_number_util.h (right): https://codereview.webrtc.org/2977603002/diff/40001/webrtc/modules/video_coding/sequence_number_util.h#newcode49 webrtc/modules/video_coding/sequence_number_util.h:49: inline bool AheadOrAt(T a, T b) { On 2017/07/24 ...
3 years, 5 months ago (2017-07-24 14:46:43 UTC) #25
philipel
Per, PTAL at rtc_base/*. Erik, PTAL at video_coding/* Need OWNERS approval :)
3 years, 4 months ago (2017-07-24 15:41:43 UTC) #31
philipel
Taylor, PTAL at rtc_base/*
3 years, 4 months ago (2017-07-25 11:29:33 UTC) #33
sprang_webrtc
https://codereview.webrtc.org/2977603002/diff/80001/webrtc/modules/video_coding/sequence_number_util_unittest.cc File webrtc/modules/video_coding/sequence_number_util_unittest.cc (right): https://codereview.webrtc.org/2977603002/diff/80001/webrtc/modules/video_coding/sequence_number_util_unittest.cc#newcode219 webrtc/modules/video_coding/sequence_number_util_unittest.cc:219: } Only from 0? Isn't any backwards wrap past ...
3 years, 4 months ago (2017-07-25 12:46:13 UTC) #34
philipel
https://codereview.webrtc.org/2977603002/diff/80001/webrtc/modules/video_coding/sequence_number_util_unittest.cc File webrtc/modules/video_coding/sequence_number_util_unittest.cc (right): https://codereview.webrtc.org/2977603002/diff/80001/webrtc/modules/video_coding/sequence_number_util_unittest.cc#newcode219 webrtc/modules/video_coding/sequence_number_util_unittest.cc:219: } On 2017/07/25 12:46:13, sprang_webrtc wrote: > Only from ...
3 years, 4 months ago (2017-07-25 13:05:48 UTC) #35
Taylor Brandstetter
rtc_base lgtm, with minor comments. https://codereview.webrtc.org/2977603002/diff/100001/webrtc/rtc_base/mod_ops.h File webrtc/rtc_base/mod_ops.h (right): https://codereview.webrtc.org/2977603002/diff/100001/webrtc/rtc_base/mod_ops.h#newcode61 webrtc/rtc_base/mod_ops.h:61: // Would be nice ...
3 years, 4 months ago (2017-07-25 21:33:05 UTC) #40
philipel
https://codereview.webrtc.org/2977603002/diff/100001/webrtc/rtc_base/mod_ops.h File webrtc/rtc_base/mod_ops.h (right): https://codereview.webrtc.org/2977603002/diff/100001/webrtc/rtc_base/mod_ops.h#newcode61 webrtc/rtc_base/mod_ops.h:61: // On 2017/07/25 21:33:04, Taylor Brandstetter wrote: > Would ...
3 years, 4 months ago (2017-07-26 09:52:15 UTC) #41
sprang_webrtc
lgtm
3 years, 4 months ago (2017-07-26 13:26:01 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2977603002/120001
3 years, 4 months ago (2017-07-26 14:44:55 UTC) #49
commit-bot: I haz the power
3 years, 4 months ago (2017-07-26 14:48:25 UTC) #52
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/webrtc/+/7956c0f2f68e3fbaaab0936aa...

Powered by Google App Engine
This is Rietveld 408576698