DescriptionAdding 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 #
Messages
Total messages: 19 (11 generated)
|