Closed Bug 952102 Opened 11 years ago Closed 11 years ago

Fix VideoConduit unit tests

Categories

(Core :: WebRTC: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: ekr, Assigned: ekr)

Details

Attachments

(1 file)

      No description provided.
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.
Attachment #8350050 - Flags: review?(rjesup)
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+
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.

Attachment

General

Created:
Updated:
Size: