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

Issue 2284903002: Adding ability to simulate EWOULDBLOCK/SignalReadyToSend. (Closed)

Created:
4 years, 3 months ago by Taylor Brandstetter
Modified:
4 years, 3 months ago
Reviewers:
pthatcher1, skvlad
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding ability to simulate EWOULDBLOCK/SignalReadyToSend. Calling VirtualSocketServer::SetSendingBlocked(true) will simulate the network interface being blocked, and SetSendingBlocked(false) will simulate it being unblocked, resulting in SignalReadyToSend if appropriate. I plan to use this to write tests for upper layers of code that deal with EWOULDBLOCK/SignalReadyToSend. Also doing some minor housekeeping in this CL (using RTC_DCHECK, renaming variables, etc.). R=pthatcher@webrtc.org, skvlad@webrtc.org Committed: https://crrev.com/e753641ef10b22eb1725a08a11491f11bf319817 Cr-Commit-Position: refs/heads/master@{#14170}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Removing commented-out assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -61 lines) Patch
M webrtc/base/testclient.h View 2 chunks +5 lines, -2 lines 0 comments Download
M webrtc/base/testclient.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M webrtc/base/virtualsocket_unittest.cc View 1 chunk +64 lines, -1 line 0 comments Download
M webrtc/base/virtualsocketserver.h View 5 chunks +22 lines, -2 lines 0 comments Download
M webrtc/base/virtualsocketserver.cc View 1 25 chunks +95 lines, -50 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
skvlad
lgtm https://codereview.webrtc.org/2284903002/diff/1/webrtc/base/virtualsocketserver.cc File webrtc/base/virtualsocketserver.cc (right): https://codereview.webrtc.org/2284903002/diff/1/webrtc/base/virtualsocketserver.cc#newcode397 webrtc/base/virtualsocketserver.cc:397: // RTC_DCHECK(!local_addr_.IsAnyIP()); Do you happen to know why ...
4 years, 3 months ago (2016-08-26 22:39:04 UTC) #2
Taylor Brandstetter
https://codereview.webrtc.org/2284903002/diff/1/webrtc/base/virtualsocketserver.cc File webrtc/base/virtualsocketserver.cc (right): https://codereview.webrtc.org/2284903002/diff/1/webrtc/base/virtualsocketserver.cc#newcode397 webrtc/base/virtualsocketserver.cc:397: // RTC_DCHECK(!local_addr_.IsAnyIP()); On 2016/08/26 22:39:04, skvlad wrote: > Do ...
4 years, 3 months ago (2016-08-26 23:01:03 UTC) #3
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/2284903002/20001
4 years, 3 months ago (2016-08-26 23:11:24 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/15889)
4 years, 3 months ago (2016-08-26 23:17:13 UTC) #8
pthatcher1
lgtm
4 years, 3 months ago (2016-09-09 17:15:58 UTC) #12
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/2284903002/20001
4 years, 3 months ago (2016-09-09 17:20:33 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-09 19:21:01 UTC) #16
Taylor Brandstetter
4 years, 3 months ago (2016-09-09 20:16:29 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
e753641ef10b22eb1725a08a11491f11bf319817 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698