stream: Add unit tests for channel stream usage.
authorJoshua Colp <jcolp@digium.com>
Tue, 14 Feb 2017 18:33:57 +0000 (18:33 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 15 Feb 2017 16:15:13 +0000 (16:15 +0000)
commita9c15a0e4c987d053b0ab43312946719d7655a3f
treed11f640d8c45d4fe1fc548076a18b0bb3a671b4c
parentbf2f091bbb2b099d6ca87e5fdd76efe45a209eb7
stream: Add unit tests for channel stream usage.

This change adds unit tests cover the following:

1. That retrieving the first media stream of a specific media
type from a stream topology retrieves the expected media
stream.

2. That setting the native formats of a channel which does
not support streams results in the creation of streams on
its behalf according to the formats of the channel.

3. That setting a stream topology on a channel which supports
streams sets the topology to the provided one.

ASTERISK-26790

Change-Id: Ic53176dd3e4532e8c3e97d9e22f8a4b66a2bb755
tests/test_stream.c