Closed
Bug 952102
Opened 11 years ago
Closed 11 years ago
Fix VideoConduit unit tests
Categories
(Core :: WebRTC: Audio/Video, defect)
Core
WebRTC: Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: ekr, Assigned: ekr)
Details
Attachments
(1 file)
2.30 KB,
patch
|
jesup
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
The current VideoConduit test cases attempt to set up each conduit in both sending and receiving mode, but they don't set "other" so that the following check fails and the packets are dropped: if (mEngineReceiving) { if (mOtherDirection) { return mOtherDirection->SendPacket(channel, data, len); } CSFLogDebug(logTag, "%s : Asked to send RTP without an RTP sender on channel %d", __FUNCTION__, channel); return -1; } else { This change: 1. Adds actual checking that packets were received so that it detects this failure. 2. Fixes the problem in the tests. Arguably, there should be a check in VideoConduit that prohibits you from doing this, at least an aseert or something.
Assignee | ||
Updated•11 years ago
|
Attachment #8350050 -
Flags: review?(rjesup)
Comment 3•11 years ago
|
||
Comment on attachment 8350050 [details] [diff] [review] Fix VideoConduit unit tests Review of attachment 8350050 [details] [diff] [review]: ----------------------------------------------------------------- r+, but this is a fraction of what should be done. See a much more complete set of patches in bug 917916 (though designed to land on top of and old/outdated version of bug 864654, so they've bitrotted since the design for that bug changed). That fixes this problem, makes the usage match our usage far better, and also adds checks for RTCP send and receive and bot unidirectional and bidirectional uses.
Attachment #8350050 -
Flags: review?(rjesup) → review+
Assignee | ||
Updated•11 years ago
|
Whiteboard: checkin-needed
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/d95a2bcdf5cb
Whiteboard: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/d95a2bcdf5cb
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in
before you can comment on or make changes to this bug.
Description
•