[farsight2/master] Add test for changing direction property
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:26 PST 2008
---
tests/check/main/rtpconference.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tests/check/main/rtpconference.c b/tests/check/main/rtpconference.c
index 69c7642..138d2a9 100644
--- a/tests/check/main/rtpconference.c
+++ b/tests/check/main/rtpconference.c
@@ -86,7 +86,6 @@ GST_START_TEST (test_rtpconference_new)
"stream-transmitter", &stt,
"direction", &dir,
NULL);
-
fail_unless (part == st->participant, "The stream does not have the right"
" participant");
g_object_unref (part);
@@ -98,6 +97,10 @@ GST_START_TEST (test_rtpconference_new)
g_object_unref (stt);
fail_unless (dir == FS_DIRECTION_BOTH, "The direction is not both");
+ g_object_set (st->stream, "direction", FS_DIRECTION_NONE, NULL);
+ g_object_get (st->stream, "direction", &dir, NULL);
+ fail_unless (dir == FS_DIRECTION_NONE, "The direction is not both");
+
cleanup_simple_conference (dat);
}
GST_END_TEST;
--
1.5.6.5
More information about the farsight-commits
mailing list