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

Issue 2770233003: Implemented the GetSources() in native code. (Closed)

Created:
3 years, 9 months ago by Zhi Huang
Modified:
3 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, danilchap, zhuangzesen_agora.io, stefan-webrtc, tterriberry_mozilla.com, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added the GetSources() to the RtpReceiverInterface and implemented it for the AudioRtpReceiver. This method returns a vector of RtpSource(both CSRC source and SSRC source) which contains the ID of a source, the timestamp, the source type (SSRC or CSRC) and the audio level. The RtpSource objects are buffered and maintained by the RtpReceiver in webrtc/modules/rtp_rtcp/. When the method is called, the info of the contributing source will be pulled along the object chain: AudioRtpReceiver -> VoiceChannel -> WebRtcVoiceMediaChannel -> AudioReceiveStream -> voe::Channel -> RtpRtcp module Spec:https://w3c.github.io/webrtc-pc/archives/20151006/webrtc.html#widl-RTCRtpReceiver-getContributingSources-sequence-RTCRtpContributingSource BUG=chromium:703122 TBR=stefan@webrtc.org, danilchap@webrtc.org Review-Url: https://codereview.webrtc.org/2770233003 Cr-Commit-Position: refs/heads/master@{#17591} Committed: https://chromium.googlesource.com/external/webrtc/+/292084c3765d9f3ee406ca2ec86eae206b540053

Patch Set 1 : Add the interface #

Patch Set 2 : Merge and add the tests. #

Total comments: 44

Patch Set 3 : Address the comments related to threading and the special ContributingSource that uses the SSRC. #

Total comments: 4

Patch Set 4 : Use map+list. #

Patch Set 5 : Merge with origin/master. #

Patch Set 6 : Fix the BUILD file. #

Total comments: 21

Patch Set 7 : Try to fix the build failure on the bots. #

Total comments: 12

Patch Set 8 : Renaming. Add a unit test. Resolve the comments. #

Total comments: 80

Patch Set 9 : Resolve the comments. #

Total comments: 34

Patch Set 10 : Resolve the comments. Fix the nits. #

Patch Set 11 : Add a direct dependency to the webrtc/voice_engine/BUILD.gn #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+563 lines, -44 lines) Patch
M webrtc/api/rtpreceiverinterface.h View 1 2 3 4 5 6 7 8 4 chunks +45 lines, -1 line 0 comments Download
M webrtc/api/test/mock_rtpreceiver.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/call/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/audio_receive_stream.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/include/rtp_receiver.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +22 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +101 lines, -5 lines 1 comment Download
A webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +260 lines, -0 lines 9 comments Download
M webrtc/pc/channel.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M webrtc/pc/peerconnection_integrationtest.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
M webrtc/pc/rtpreceiver.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/pc/rtpreceiver.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/test/mock_voe_channel_proxy.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 7 8 18 chunks +44 lines, -35 lines 0 comments Download
M webrtc/voice_engine/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 98 (60 generated)
Zhi Huang
Hello, Please take a look. Thanks!
3 years, 8 months ago (2017-03-30 03:55:01 UTC) #10
hbos
https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h#newcode39 webrtc/api/rtpreceiverinterface.h:39: virtual int8_t audio_level() const = 0; This should be ...
3 years, 8 months ago (2017-03-30 09:51:55 UTC) #12
the sun
https://codereview.webrtc.org/2770233003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode238 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:238: contributing_sources_.push_back(&contributing_source); IIUC, UpdateContributingSource() will be called on the network ...
3 years, 8 months ago (2017-03-30 11:31:42 UTC) #13
Taylor Brandstetter
https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h#newcode39 webrtc/api/rtpreceiverinterface.h:39: virtual int8_t audio_level() const = 0; On 2017/03/30 09:51:54, ...
3 years, 8 months ago (2017-03-30 22:55:38 UTC) #14
Zhi Huang
Hi, Please take another look. Thanks. https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h#newcode78 webrtc/api/rtpreceiverinterface.h:78: virtual std::vector<std::unique_ptr<RtpContributingSourceInterface>> On ...
3 years, 8 months ago (2017-03-31 06:44:05 UTC) #18
the sun
https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h#newcode78 webrtc/api/rtpreceiverinterface.h:78: virtual std::vector<std::unique_ptr<RtpContributingSourceInterface>> On 2017/03/30 22:55:37, Taylor Brandstetter wrote: > ...
3 years, 8 months ago (2017-03-31 07:03:49 UTC) #19
the sun
https://codereview.webrtc.org/2770233003/diff/80001/webrtc/pc/rtpreceiver.cc File webrtc/pc/rtpreceiver.cc (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/pc/rtpreceiver.cc#newcode106 webrtc/pc/rtpreceiver.cc:106: auto sources = channel_->GetContributingSources(ssrc_); On 2017/03/30 22:55:38, Taylor Brandstetter ...
3 years, 8 months ago (2017-03-31 07:05:42 UTC) #20
Zhi Huang
On 2017/03/31 07:05:42, the sun wrote: > https://codereview.webrtc.org/2770233003/diff/80001/webrtc/pc/rtpreceiver.cc > File webrtc/pc/rtpreceiver.cc (right): > > https://codereview.webrtc.org/2770233003/diff/80001/webrtc/pc/rtpreceiver.cc#newcode106 ...
3 years, 8 months ago (2017-03-31 17:13:53 UTC) #21
Zhi Huang
On 2017/03/31 07:03:49, the sun wrote: > https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h > File webrtc/api/rtpreceiverinterface.h (right): > > https://codereview.webrtc.org/2770233003/diff/80001/webrtc/api/rtpreceiverinterface.h#newcode78 ...
3 years, 8 months ago (2017-03-31 17:20:42 UTC) #22
Taylor Brandstetter
On 2017/03/31 17:13:53, Zhi Huang wrote: > On 2017/03/31 07:05:42, the sun wrote: > > ...
3 years, 8 months ago (2017-03-31 17:23:37 UTC) #23
Taylor Brandstetter
https://codereview.webrtc.org/2770233003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode217 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:217: contributing_sources_.clear(); On 2017/03/31 06:44:04, Zhi Huang wrote: > On ...
3 years, 8 months ago (2017-03-31 22:10:50 UTC) #24
the sun
https://codereview.webrtc.org/2770233003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/80001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode517 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:517: } On 2017/03/31 07:03:49, the sun wrote: > On ...
3 years, 8 months ago (2017-04-01 12:23:02 UTC) #25
Zhi Huang
Please take another look. Thanks. https://codereview.webrtc.org/2770233003/diff/160001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/160001/webrtc/api/rtpreceiverinterface.h#newcode41 webrtc/api/rtpreceiverinterface.h:41: rtc::Optional<int8_t> audio_level; On 2017/03/31 ...
3 years, 8 months ago (2017-04-04 04:24:34 UTC) #29
stefan-webrtc
Adding philipel for rtp/rtcp review.
3 years, 8 months ago (2017-04-04 13:58:14 UTC) #31
the sun
https://codereview.webrtc.org/2770233003/diff/280001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/280001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode232 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:232: std::set<uint32_t> selected_ssrcs; Should the SSRCs go first in the ...
3 years, 8 months ago (2017-04-04 21:10:00 UTC) #41
Zhi Huang
Since the working group have achieved some agreements on this, there are some changes on ...
3 years, 8 months ago (2017-04-05 04:16:05 UTC) #47
Taylor Brandstetter
lgtm with a couple nits and minor comments about tests. Looks great to me. https://codereview.webrtc.org/2770233003/diff/350001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc ...
3 years, 8 months ago (2017-04-05 04:27:56 UTC) #48
hbos
https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h#newcode35 webrtc/api/rtpreceiverinterface.h:35: struct RtpSource { Considering the getters/setters and private members, ...
3 years, 8 months ago (2017-04-05 11:15:42 UTC) #50
the sun
Looking really good! A few more comments (some of them just echoing hbos'). https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h File ...
3 years, 8 months ago (2017-04-05 14:58:30 UTC) #51
hbos
Yes looking good. Super tiny nit. https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h#newcode30 webrtc/api/rtpreceiverinterface.h:30: enum class RtpSourceType ...
3 years, 8 months ago (2017-04-05 15:20:16 UTC) #52
danilchap
https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h#newcode43 webrtc/api/rtpreceiverinterface.h:43: int64_t timestamp() const { return timestamp_; } can you ...
3 years, 8 months ago (2017-04-05 16:24:22 UTC) #53
Zhi Huang
Sorry about my silly mistakes. Please take another look. Thanks. https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h File webrtc/api/rtpreceiverinterface.h (right): https://codereview.webrtc.org/2770233003/diff/350001/webrtc/api/rtpreceiverinterface.h#newcode17 ...
3 years, 8 months ago (2017-04-06 03:09:51 UTC) #58
the sun
A work of art! LGTM % nit https://codereview.webrtc.org/2770233003/diff/350001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/350001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode30 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:30: static const ...
3 years, 8 months ago (2017-04-06 06:55:38 UTC) #59
hbos
lgtm https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode548 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:548: ++it; nit: now that every iteration ends with ...
3 years, 8 months ago (2017-04-06 08:17:17 UTC) #60
philipel
lgtm regarding rtp_receiver_impl.{h,cc}, mostly suggestions/nits to make the code cleaner. https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode215 ...
3 years, 8 months ago (2017-04-06 14:33:34 UTC) #61
the sun
We're missing an API level test for this.
3 years, 8 months ago (2017-04-06 19:01:34 UTC) #62
Zhi Huang
On 2017/04/06 19:01:34, the sun wrote: > We're missing an API level test for this. ...
3 years, 8 months ago (2017-04-06 19:55:18 UTC) #63
Zhi Huang
https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode215 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:215: std::vector<RtpSource> sources; On 2017/04/06 14:33:34, philipel wrote: > I ...
3 years, 8 months ago (2017-04-06 22:30:25 UTC) #69
hbos
Can we land this? :) My follow-up chromium CL just got LGTM'd: https://codereview.chromium.org/2803693002/ https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc File ...
3 years, 8 months ago (2017-04-07 08:22:21 UTC) #77
philipel
https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right): https://codereview.webrtc.org/2770233003/diff/450001/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc#newcode215 webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:215: std::vector<RtpSource> sources; On 2017/04/06 22:30:25, Zhi Huang wrote: > ...
3 years, 8 months ago (2017-04-07 08:44:07 UTC) #78
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/2770233003/510001
3 years, 8 months ago (2017-04-07 17:19:55 UTC) #81
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/15902)
3 years, 8 months ago (2017-04-07 17:24:55 UTC) #83
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/2770233003/510001
3 years, 8 months ago (2017-04-07 17:54:45 UTC) #90
commit-bot: I haz the power
Committed patchset #11 (id:510001) as https://chromium.googlesource.com/external/webrtc/+/292084c3765d9f3ee406ca2ec86eae206b540053
3 years, 8 months ago (2017-04-07 17:57:31 UTC) #93
Zhi Huang
On 2017/04/07 08:22:21, hbos wrote: > Can we land this? :) My follow-up chromium CL ...
3 years, 8 months ago (2017-04-07 17:59:03 UTC) #94
olka_webrtc
A revert of this CL (patchset #11 id:510001) has been created in https://codereview.webrtc.org/2809613002/ by olka@webrtc.org. ...
3 years, 8 months ago (2017-04-10 10:18:13 UTC) #96
hbos
On 2017/04/10 10:18:13, olka_webrtc wrote: > A revert of this CL (patchset #11 id:510001) has ...
3 years, 8 months ago (2017-04-10 10:27:50 UTC) #97
danilchap
3 years, 8 months ago (2017-04-10 12:14:07 UTC) #98
Message was sent while issue was closed.
/rtp_rtcp/ lgtm
with few optional suggestions how tests can look better.

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
File webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc (right):

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc:217: {
taking current time and constructing an empty vector and returning vector by
value can be done inside lock too, and this extra indentation can be removed.

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
File webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc (right):

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:22: 
tests, specially with constants, better to place inside unnamed namespace

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:69: header.ssrc = 1;
might be better to name all [cs]src constants, specially when the value (1) look
like it might be a size.
const uint32_t kSsrc = 123;
const uint32_t kCsrc1 = 111;
const uint32_t kCsrc2 = 222;
// or const uint32_t kCsrc[] = { 111, 222 };

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:70: header.timestamp =
fake_clock_.TimeInMilliseconds();
it looks wrong to use current_time as rtp timestamp, specially when you have
kTestRate != 1000
may be make a small helper
static uint32_t rtp_timestamp(int64_t time_ms) {
  return static_cast<uint32_t>(time_ms * kTestRate / 1000);
}
or
uint32_t rtp_timestamp_now() const;
(It doesn't cover large values of time_ms, but should be fine for these tests)

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:75: bool in_order =
false;
may be bool in_order = true; // or better kInOrder = true;
and then, when call IncomingRtpPacket, write !kInOrder

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:78:
EXPECT_TRUE(rtp_receiver_->IncomingRtpPacket(header, kTestPayload, 4,
may be sizeof(kTestPayload) instead of 'magic' value 4

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:82: ASSERT_EQ(3u,
sources.size());
with gmock and RtpSource::operator== or customer matcher you might write
int64_t now_ms = fake_clock_.TimeInMilliseconds();
EXPECT_THAT(sources, UnorderedElementsAre(
RtpSource(now_ms, kSsrc, RtpSourceType::SSRC),
RtpSource(now_ms, kCsrc1, RtpSourceType::CSRC),
RtpSource(now_ms, kCsrc2, RtpSourceType::CSRC)));
instead of 7 ASSERT/EXPECT

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:133: int64_t cur_time =
fake_clock_.TimeInMilliseconds();
now_ms is probably more common name in the codebase.

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:202: for (size_t i = 0;
i < kSourceListsSize; ++i) {
any plan to use this constant in another test? if not - define it inside the
test instead of top of the file. (if yes - still might good to define it inside
each test, like you do with in_order flag)

https://codereview.webrtc.org/2770233003/diff/510001/webrtc/modules/rtp_rtcp/...
webrtc/modules/rtp_rtcp/source/rtp_receiver_unittest.cc:204:
header.arrOfCSRCs[0] = (i + 1);
is it intended CSRC is same as SSRC of the next packet?

Powered by Google App Engine
This is Rietveld 408576698