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

Issue 1207563002: Add flakiness check if there is no received packets in a certain period. (Closed)

Created:
5 years, 6 months ago by honghaiz3
Modified:
5 years, 4 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Patch Set 1 : First-cut #

Total comments: 19

Patch Set 2 : Address comments except for naming. #

Total comments: 30

Patch Set 3 : Changing method names #

Total comments: 8

Patch Set 4 : Address comments and add tests #

Total comments: 8

Patch Set 5 : Address comments #

Total comments: 2

Patch Set 6 : Address more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -16 lines) Patch
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/PeerConnection.java View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/testcommon/src/org/webrtc/PeerConnectionTest.java View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnection.h View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M talk/app/webrtc/peerconnection.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M talk/app/webrtc/webrtcsession.h View 1 2 3 5 chunks +8 lines, -0 lines 0 comments Download
M talk/app/webrtc/webrtcsession.cc View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M talk/examples/android/src/org/appspot/apprtc/PeerConnectionClient.java View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M webrtc/p2p/base/fakesession.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 4 5 4 chunks +12 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 8 chunks +33 lines, -1 line 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M webrtc/p2p/base/session.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/p2p/base/session.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 2 3 4 7 chunks +23 lines, -3 lines 0 comments Download
M webrtc/p2p/base/transport.cc View 1 2 7 chunks +37 lines, -5 lines 0 comments Download
M webrtc/p2p/base/transport_unittest.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M webrtc/p2p/base/transportchannel.h View 1 2 4 chunks +7 lines, -1 line 0 comments Download
M webrtc/p2p/base/transportchannel.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (21 generated)
honghaiz3
This is a firstcut of the CL. I have tested that flakiness was able to ...
5 years, 6 months ago (2015-06-24 23:14:15 UTC) #10
pthatcher1
I like it, I'm just not sold on two things: 1. The name "flaky". 2. ...
5 years, 6 months ago (2015-06-24 23:42:52 UTC) #12
honghaiz3
On 2015/06/24 23:42:52, pthatcher1 wrote: > I like it, I'm just not sold on two ...
5 years, 6 months ago (2015-06-25 23:24:42 UTC) #13
pthatcher1
I think I would be happy with this CL if it used the name "receiving", ...
5 years, 6 months ago (2015-06-26 19:24:03 UTC) #14
pthatcher1
Oh, and we need some unit tests.
5 years, 6 months ago (2015-06-26 19:27:22 UTC) #15
honghaiz3
Fixed the names following the suggestions except slight difference in peerconnection.h. Let me know if ...
5 years, 5 months ago (2015-07-06 17:51:46 UTC) #17
honghaiz3
Plus, I changed the default check_receiving_delay_ to 250ms so that it will have smaller impact ...
5 years, 5 months ago (2015-07-06 17:54:52 UTC) #18
pthatcher1
Unit tests? https://codereview.webrtc.org/1207563002/diff/280001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1207563002/diff/280001/talk/app/webrtc/webrtcsession.cc#newcode1413 talk/app/webrtc/webrtcsession.cc:1413: SetIceConnectionReceiving(transport->no_channel_receiving()); The session is receiving if no ...
5 years, 5 months ago (2015-07-06 22:04:47 UTC) #21
honghaiz3
Thanks! added tests. PTAL.
5 years, 5 months ago (2015-07-07 18:54:51 UTC) #25
pthatcher1
https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcsession.cc#newcode1410 talk/app/webrtc/webrtcsession.cc:1410: void WebRtcSession::OnTransportReceiving(cricket::Transport* transp) { transp? https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcsession.cc#newcode1421 talk/app/webrtc/webrtcsession.cc:1421: SetIceConnectionReceiving(!not_receiving); Actually, ...
5 years, 5 months ago (2015-07-07 20:49:56 UTC) #26
honghaiz3
On 2015/07/07 20:49:56, pthatcher1 wrote: > https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcsession.cc > File talk/app/webrtc/webrtcsession.cc (right): > > https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcsession.cc#newcode1410 > ...
5 years, 5 months ago (2015-07-07 21:40:15 UTC) #27
pthatcher1
lgtm with the change to the unit tests https://codereview.webrtc.org/1207563002/diff/380001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/1207563002/diff/380001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode1887 webrtc/p2p/base/p2ptransportchannel_unittest.cc:1887: ch.set_receiving_timeout(500); ...
5 years, 5 months ago (2015-07-07 22:01:40 UTC) #28
honghaiz3
On 2015/07/07 22:01:40, pthatcher1 wrote: > lgtm with the change to the unit tests > ...
5 years, 5 months ago (2015-07-07 22:16:44 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207563002/400001
5 years, 5 months ago (2015-07-07 23:14:26 UTC) #32
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 5 months ago (2015-07-07 23:14:28 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207563002/400001
5 years, 5 months ago (2015-07-08 15:18:51 UTC) #36
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 5 months ago (2015-07-08 15:18:54 UTC) #38
pthatcher1
Committed patchset #6 (id:400001) manually as 54360510ff9b7c61fc906d3ed360b06a5824bbf1 (presubmit successful).
5 years, 5 months ago (2015-07-08 18:08:44 UTC) #39
guoweis_webrtc
On 2015/07/08 18:08:44, pthatcher1 wrote: > Committed patchset #6 (id:400001) manually as > 54360510ff9b7c61fc906d3ed360b06a5824bbf1 (presubmit ...
5 years, 5 months ago (2015-07-20 16:58:56 UTC) #40
honghaiz3
5 years, 4 months ago (2015-08-05 23:56:57 UTC) #41
Message was sent while issue was closed.
These are some draft responses to the comments which I did not publish earlier.
You can safely ignore them. (Need to publish them so that its state will change
to closed).

https://codereview.webrtc.org/1207563002/diff/180001/talk/app/webrtc/peerconn...
File talk/app/webrtc/peerconnection.h (right):

https://codereview.webrtc.org/1207563002/diff/180001/talk/app/webrtc/peerconn...
talk/app/webrtc/peerconnection.h:152: void OnIceFlakinessChange(bool flaky)
override;
On 2015/06/24 23:42:52, pthatcher1 wrote:
> Can you make them all "override", then, to be consistent?

Done.

https://codereview.webrtc.org/1207563002/diff/180001/talk/app/webrtc/webrtcse...
File talk/app/webrtc/webrtcsession.cc (right):

https://codereview.webrtc.org/1207563002/diff/180001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.cc:1413: if (ice_flaky_ != flaky) {
On 2015/06/24 23:42:52, pthatcher1 wrote:
> Please use an early return.

Done.

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/dtlstran...
File webrtc/p2p/base/dtlstransportchannel.cc (right):

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/dtlstran...
webrtc/p2p/base/dtlstransportchannel.cc:467: if (dtls_state_ == STATE_NONE ||
dtls_state_ == STATE_OPEN) {
On 2015/06/24 23:42:52, pthatcher1 wrote:
> Why not just always set it, regardless of state?
For both set_readable and set_writable, they only do it when the dtls state is
none or open. 
I suppose, if this is in the middle a DTLS exchange, it is better not to fire
the event (which may trigger ICE restart).

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/port.cc
File webrtc/p2p/base/port.cc (right):

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/port.cc#...
webrtc/p2p/base/port.cc:1450: last_data_received_ >= min_last_recv_time;
On 2015/06/24 23:42:52, pthatcher1 wrote:
> Instead of using this method, we could just have methods for
> last_ping_received(), last_ping_response_received(), and last_data_received(),
> and let the p2ptransportchannel.cc handle it from there.
If we do that, we will have to expose three public methods to (instead of one
now). 
For this reason, I slightly prefer to the current one which only exposes one
public method.

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/transport.h
File webrtc/p2p/base/transport.h (right):

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/transpor...
webrtc/p2p/base/transport.h:66: enum TransportOperation {
On 2015/06/24 23:42:52, pthatcher1 wrote:
> Maybe TransportStateType?

Done.

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/transpor...
webrtc/p2p/base/transport.h:67: TRANSPORT_READABLE = 0,
On 2015/06/24 23:42:52, pthatcher1 wrote:
> TRANSPORT_OPERATION_READABLE or TRANSPORT_READABLE_STATE

Done. Took the latter one.

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/transpor...
webrtc/p2p/base/transport.h:185: }
On 2015/06/24 23:42:52, pthatcher1 wrote:
> Is all_channels_flaky() ever used?  If not, we should leave it out.

Yes in webrtcsession.cc

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/transpor...
File webrtc/p2p/base/transportchannel.cc (right):

https://codereview.webrtc.org/1207563002/diff/180001/webrtc/p2p/base/transpor...
webrtc/p2p/base/transportchannel.cc:35: if (flaky_ != flaky) {
On 2015/06/24 23:42:52, pthatcher1 wrote:
> Please use an early return.

Done.

https://codereview.webrtc.org/1207563002/diff/200001/talk/app/webrtc/peerconn...
File talk/app/webrtc/peerconnection.h (right):

https://codereview.webrtc.org/1207563002/diff/200001/talk/app/webrtc/peerconn...
talk/app/webrtc/peerconnection.h:152: void OnIceFlakinessChange(bool flaky)
override;
On 2015/06/26 19:24:02, pthatcher1 wrote:
> How about "OnIceConnectionReceivingChange(bool receiving)"?
That's a pretty long name. Plus, that may raise more confusion with
OnIceConnectionChange. 
So I choose  OnIceReceivingChange. Let me know if you still prefer to using the
longer name.

https://codereview.webrtc.org/1207563002/diff/200001/talk/app/webrtc/webrtcse...
File talk/app/webrtc/webrtcsession.h (right):

https://codereview.webrtc.org/1207563002/diff/200001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.h:305: void OnTransportFlaky(cricket::Transport*
transport) override;
On 2015/06/26 19:24:02, pthatcher1 wrote:
> How about OnTransportReceiving?

Done.

https://codereview.webrtc.org/1207563002/diff/200001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.h:350: void SetIceFlaky(bool flaky);
On 2015/06/26 19:24:02, pthatcher1 wrote:
> How about SetIceConnectionReceiving(bool receiving)?

Done, although not sure if I should just change it to SetIceReceiving().

https://codereview.webrtc.org/1207563002/diff/200001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.h:388: bool ice_flaky_;
On 2015/06/26 19:24:02, pthatcher1 wrote:
> How about "bool ice_connection_receiving_"?

Done.

https://codereview.webrtc.org/1207563002/diff/200001/talk/examples/android/sr...
File talk/examples/android/src/org/appspot/apprtc/PeerConnectionClient.java
(right):

https://codereview.webrtc.org/1207563002/diff/200001/talk/examples/android/sr...
talk/examples/android/src/org/appspot/apprtc/PeerConnectionClient.java:901:
public void onIceFlakinessChange(boolean flaky) {
On 2015/06/26 19:24:02, pthatcher1 wrote:
> How about "onIceConnectionRecevingChange(boolean receiving)"?

Done (without "Connection").

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/dtlstran...
File webrtc/p2p/base/dtlstransportchannel.h (right):

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/dtlstran...
webrtc/p2p/base/dtlstransportchannel.h:216: void OnFlakyState(TransportChannel*
channel);
On 2015/06/26 19:24:02, pthatcher1 wrote:
> How about OnRecevingState?

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/p2ptrans...
File webrtc/p2p/base/p2ptransportchannel.cc (right):

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/p2ptrans...
webrtc/p2p/base/p2ptransportchannel.cc:28: MSG_CHECK_FLAKINESS
On 2015/06/26 19:24:02, pthatcher1 wrote:
> MSG_CHECK_RECEIVING

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/p2ptrans...
webrtc/p2p/base/p2ptransportchannel.cc:1163: OnCheckFlakiness();
On 2015/06/26 19:24:02, pthatcher1 wrote:
> OnCheckReceiving

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/p2ptrans...
File webrtc/p2p/base/p2ptransportchannel.h (right):

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/p2ptrans...
webrtc/p2p/base/p2ptransportchannel.h:248: 
On 2015/06/26 19:24:02, pthatcher1 wrote:
> How about 
> 
> 
> check_receiving_delay_;
> receiving_timeout_;

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/port.cc
File webrtc/p2p/base/port.cc (right):

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/port.cc#...
webrtc/p2p/base/port.cc:1450: last_data_received_ >= min_last_recv_time;
On 2015/06/26 19:24:02, pthatcher1 wrote:
> Return max(last_ping_received_, last_ping_response_received_,
> last_data_received_);

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/port.h
File webrtc/p2p/base/port.h (right):

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/port.h#n...
webrtc/p2p/base/port.h:563: bool CheckReceiving(uint32 receiving_timeout);
On 2015/06/26 19:24:02, pthatcher1 wrote:
> I think it would be better to just have a last_received() method that returns
> the max of the three values we store and let the caller  compare that with the
> current time and timeout value.

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/session.h
File webrtc/p2p/base/session.h (right):

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/session....
webrtc/p2p/base/session.h:371: virtual void OnTransportFlaky(Transport*
transport) {
On 2015/06/26 19:24:02, pthatcher1 wrote:
> OnTransportReceiving

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/transport.h
File webrtc/p2p/base/transport.h (right):

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/transpor...
webrtc/p2p/base/transport.h:69: TRANSPORT_FLAKY_STATE
On 2015/06/26 19:24:03, pthatcher1 wrote:
> TRANSPORT_RECEIVING_STATE

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/transpor...
webrtc/p2p/base/transport.h:380: void OnChannelFlakyState(TransportChannel*
channel);
On 2015/06/26 19:24:03, pthatcher1 wrote:
> OnChannelReceivingState

Done.

https://codereview.webrtc.org/1207563002/diff/200001/webrtc/p2p/base/transpor...
webrtc/p2p/base/transport.h:451: TransportState flaky_;
On 2015/06/26 19:24:03, pthatcher1 wrote:
> receiving_;

Done.

https://codereview.webrtc.org/1207563002/diff/280001/talk/app/webrtc/webrtcse...
File talk/app/webrtc/webrtcsession.cc (right):

https://codereview.webrtc.org/1207563002/diff/280001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.cc:1413:
SetIceConnectionReceiving(transport->no_channel_receiving());
On 2015/07/06 22:04:47, pthatcher1 wrote:
> The session is receiving if no channel is receiving?  Should there be a "!"
> somewhere in there?
> 
> Also, the logic here is a little more tricky than this.  There are potentially
3
> transports: audio, video, and data.  We should probably only be "receiving" if
> all transports are receiving.  For example:
> 
> int receiving = 0;
> int not_receiving = 0;
> for (const auto& kv : transport_proxies()) {
>   cricket::Transport* transport = kv.second->impl();
>   if (transport && transport->HasChannels()) {
>     if (transport->no_channel_receiving()) {
>       not_receiving++;
>     } else {
>       receiving++;
>     }
>   }
> }
> 
> 
> SetIceConnectionReceiving((receiving > 0) && (not_receiving == 0));

Done. Modified as discussed.

https://codereview.webrtc.org/1207563002/diff/280001/talk/app/webrtc/webrtcse...
File talk/app/webrtc/webrtcsession.h (right):

https://codereview.webrtc.org/1207563002/diff/280001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.h:88: // conform to the w3c standard.
On 2015/07/06 22:04:47, pthatcher1 wrote:
> Just one TODO is sufficient.  You can remove this one.
I kept this one and removed the other one because this is the definition of the
interface.

https://codereview.webrtc.org/1207563002/diff/280001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.h:102: // packets or at least one channel changes
back.
On 2015/07/06 22:04:47, pthatcher1 wrote:
> Might be more clear with something like:
> 
> "Called with receiving=true when packets are first received, then called with
> receiving=false when no packets are received for a certain time period, and
then
> called whenever the state changes between receiving and not receiving."
Maybe enough just with the last sentence.

https://codereview.webrtc.org/1207563002/diff/280001/webrtc/p2p/base/p2ptrans...
File webrtc/p2p/base/p2ptransportchannel.cc (right):

https://codereview.webrtc.org/1207563002/diff/280001/webrtc/p2p/base/p2ptrans...
webrtc/p2p/base/p2ptransportchannel.cc:201:
receiving_timeout_(MIN_CHECK_RECEIVING_DELAY * 50) {
On 2015/07/06 22:04:47, pthatcher1 wrote:
> It seems like we should add a set_receiving_timeout method to allow apps to
> change the timeout.  Perhaps you were planning on adding that in a future CL? 
I
> think it would make sense in this CL.

Done. Yes. This is needed for the tests.

https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcse...
File talk/app/webrtc/webrtcsession.cc (right):

https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.cc:1410: void
WebRtcSession::OnTransportReceiving(cricket::Transport* transp) {
On 2015/07/07 20:49:55, pthatcher1 wrote:
> transp?
The parameter is not used and I wanted to avoid the name shadowing, although it
probably does not matter. Change to transport.

https://codereview.webrtc.org/1207563002/diff/360001/talk/app/webrtc/webrtcse...
talk/app/webrtc/webrtcsession.cc:1421:
SetIceConnectionReceiving(!not_receiving);
On 2015/07/07 20:49:55, pthatcher1 wrote:
> Actually, now that I see it, I think it would be more clear in the reverse:
> 
> // The ice connection is considered receiving if any
> // transport has channels and is receiving.
> 
> bool receiving = false;
> for (const auto& kv : transport_proxies()) {
>   cricket::Transport* transport = kv.second->impl();
>   if (transport && transport->HasChannels() &&
> !transport->no_channel_receiving()) {
>     receiving = true;
>     break;
>   }
> }
> SetIceConnectionReceiving(receiving);
> 
> 
> 
> Or better yet:
> 
> bool receiving = false;
> for (const auto& kv : transport_proxies()) {
>   cricket::Transport* transport = kv.second->impl();
>   if (transport && transport->any_channel_receiving()) {
>     receiving = true;
>     break;
>   }
> }
> SetIceConnectionReceiving(receiving);
> 
> 

Done. This is better. Thanks!

https://codereview.webrtc.org/1207563002/diff/360001/talk/examples/android/sr...
File talk/examples/android/src/org/appspot/apprtc/PeerConnectionClient.java
(right):

https://codereview.webrtc.org/1207563002/diff/360001/talk/examples/android/sr...
talk/examples/android/src/org/appspot/apprtc/PeerConnectionClient.java:902:
Log.d(TAG, "IceConnectionReceiving changes to " + receiving);
On 2015/07/07 20:49:55, pthatcher1 wrote:
> changes to => changed to

Done.

https://codereview.webrtc.org/1207563002/diff/360001/webrtc/p2p/base/p2ptrans...
File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right):

https://codereview.webrtc.org/1207563002/diff/360001/webrtc/p2p/base/p2ptrans...
webrtc/p2p/base/p2ptransportchannel_unittest.cc:1880: }
On 2015/07/07 20:49:55, pthatcher1 wrote:
> Can you add a test for when set_receiving_timeout isn't called? 

Done.

https://codereview.webrtc.org/1207563002/diff/380001/webrtc/p2p/base/p2ptrans...
File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right):

https://codereview.webrtc.org/1207563002/diff/380001/webrtc/p2p/base/p2ptrans...
webrtc/p2p/base/p2ptransportchannel_unittest.cc:1887:
ch.set_receiving_timeout(500);
On 2015/07/07 22:01:40, pthatcher1 wrote:
> On second though, just delete the previous test and add this:
> 
> EXPECT_GE(1000, ch.receiving_timeout());
> EXPECT_GE(200, ch.check_receiving_delay());
> ch.set_receiving_timeout(500);
> EXPECT_EQ(500, ch.receiving_timeout());
> EXPECT_EQ(200, ch.check_receiving_delay());

Done.

Powered by Google App Engine
This is Rietveld 408576698