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

Issue 2292093002: RtcpReceiverTest rewritten using public available interface (Closed)

Created:
4 years, 3 months ago by danilchap
Modified:
4 years, 3 months ago
Reviewers:
philipel, sprang_webrtc
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

RtcpReceiverTest rewritten using public available interface IncomingPacket(const uint8_t*, size_t) is used as entry point instead of IncomingRTCPPacket(PacketInformation* out, RtcpParser* in); Result is validated by checking which callbacks were called instead of checking intermediate structure PacketInformaion. This allows to switch parsing implementation. BUG=webrtc:5260 Committed: https://crrev.com/1e714ae7a655e8ce20a53ba4a8121b75eed9c8c1 Cr-Commit-Position: refs/heads/master@{#14074}

Patch Set 1 #

Patch Set 2 : Unified SetUp and constants. #

Patch Set 3 : Nits #

Total comments: 45

Patch Set 4 : Feedback #

Patch Set 5 : Feedback #

Total comments: 2

Patch Set 6 : Added TODO to test with hidden expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+655 lines, -681 lines) Patch
M webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc View 1 2 3 4 5 10 chunks +655 lines, -681 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
danilchap
Rework of the https://codereview.webrtc.org/1527003002/ In addition to replacing expectation and cleanup of execution phases, this ...
4 years, 3 months ago (2016-09-05 06:33:36 UTC) #9
sprang_webrtc
Nice! Just some minor comments. https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc (left): https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#oldcode1060 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:1060: EXPECT_LT(0U, candidate_set[0].bitrate_bps()); Ehm, "EXPECT_LT(0U," ...
4 years, 3 months ago (2016-09-05 11:05:49 UTC) #10
danilchap
https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc (left): https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#oldcode1060 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:1060: EXPECT_LT(0U, candidate_set[0].bitrate_bps()); On 2016/09/05 11:05:49, språng wrote: > Ehm, ...
4 years, 3 months ago (2016-09-05 11:54:16 UTC) #11
philipel
https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc (right): https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#newcode100 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:100: constexpr uint32_t kReceiverSsrc = 0x123456; kReceiverSsrc1 https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#newcode173 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:173: EXPECT_CALL(intra_frame_observer_, ...
4 years, 3 months ago (2016-09-05 11:59:27 UTC) #12
sprang_webrtc
lgtm
4 years, 3 months ago (2016-09-05 12:14:50 UTC) #13
danilchap
https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc (right): https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#newcode100 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:100: constexpr uint32_t kReceiverSsrc = 0x123456; On 2016/09/05 11:59:27, philipel ...
4 years, 3 months ago (2016-09-05 13:27:55 UTC) #14
philipel
https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc (right): https://codereview.webrtc.org/2292093002/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#newcode173 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:173: EXPECT_CALL(intra_frame_observer_, OnReceivedRPSI(_, _)).Times(0); On 2016/09/05 13:27:55, danilchap wrote: > ...
4 years, 3 months ago (2016-09-05 13:38:44 UTC) #15
danilchap
https://codereview.webrtc.org/2292093002/diff/170001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc (right): https://codereview.webrtc.org/2292093002/diff/170001/webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc#newcode162 webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc:162: InjectRtcpPacket(bad_packet); On 2016/09/05 13:38:44, philipel wrote: > Maybe add ...
4 years, 3 months ago (2016-09-05 14:03:14 UTC) #16
philipel
lgtm
4 years, 3 months ago (2016-09-05 14:15:45 UTC) #17
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/2292093002/190001
4 years, 3 months ago (2016-09-05 16:56:07 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:190001)
4 years, 3 months ago (2016-09-05 16:57:25 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 16:57:32 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1e714ae7a655e8ce20a53ba4a8121b75eed9c8c1
Cr-Commit-Position: refs/heads/master@{#14074}

Powered by Google App Engine
This is Rietveld 408576698