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

Issue 1527003002: [rtp_rtcp] RtcpReceiverTest rewritten using public available interface (observers) instead intermid… (Closed)

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

Description

[rtp_rtcp] RtcpReceiverTest rewritten using public available interface (observers) instead intermidiate structure RtcpReceiver interface slightly changed: combining two functions to process RTCP packet is done now in RtcpReceiver instead of RtpRtcpModule. Some packets couldn't be tested now because there result is unobservable (i.e. do not cause any special callbacks, do not change RtcpReceiver internal state). BUG=webrtc:5260

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : RtcpReceiver accepts RtpRtcp module by own interface to make it more testable #

Patch Set 9 : nits #

Patch Set 10 : Rebase & nits #

Patch Set 11 : BUILD.gn #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+637 lines, -533 lines) Patch
M webrtc/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_format_remb_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +13 lines, -16 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 35 chunks +566 lines, -517 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
danilchap
5 years ago (2015-12-22 09:29:52 UTC) #2
philipel
https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h File webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h (right): https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h#newcode2 webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h:2: * Copyright (c) 2012 The WebRTC project authors. All ...
4 years, 10 months ago (2016-02-24 11:02:01 UTC) #6
danilchap
https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h File webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h (right): https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h#newcode2 webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h:2: * Copyright (c) 2012 The WebRTC project authors. All ...
4 years, 10 months ago (2016-02-24 12:53:11 UTC) #7
philipel
4 years, 10 months ago (2016-02-25 15:26:08 UTC) #8
On 2016/02/24 12:53:11, danilchap wrote:
>
https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/m...
> File webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h (right):
> 
>
https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/m...
> webrtc/modules/rtp_rtcp/mocks/mock_rtcp_observers.h:2: *  Copyright (c) 2012
The
> WebRTC project authors. All Rights Reserved.
> On 2016/02/24 11:02:01, philipel wrote:
> > 2016 :)
> 
> Oops.
> 
>
https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/s...
> File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right):
> 
>
https://codereview.webrtc.org/1527003002/diff/60001/webrtc/modules/rtp_rtcp/s...
> webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:292: if (!valid_rtcpheader) {
> On 2016/02/24 11:02:01, philipel wrote:
> > Replace with if(!rtcp_parser.IsValid()) and remove line 291.
> 
> Actually yes: rtcp_parser do slightly more than validating first rtcp header.
So
> name is misleading.

LGTM

Powered by Google App Engine
This is Rietveld 408576698