[farsight2/master] Make mcast test flags into an enum
Olivier Crête
olivier.crete at collabora.co.uk
Thu Feb 5 06:32:09 PST 2009
---
tests/check/Makefile.am | 2 ++
tests/check/transmitter/multicast.c | 6 ++++--
tests/check/transmitter/nice.c | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index 6aa61f4..55c545c 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -92,6 +92,8 @@ transmitter_nice_SOURCES = \
check-threadsafe.h \
transmitter/generic.c \
transmitter/generic.h \
+ transmitter/fake-filter.c \
+ transmitter/fake-filter.h \
transmitter/nice.c
rtp_conference_CFLAGS = $(AM_CFLAGS)
diff --git a/tests/check/transmitter/multicast.c b/tests/check/transmitter/multicast.c
index b3f3ec8..d091521 100644
--- a/tests/check/transmitter/multicast.c
+++ b/tests/check/transmitter/multicast.c
@@ -43,8 +43,10 @@ gint candidates[2] = {0, 0};
GstElement *pipeline = NULL;
gboolean src_setup[2] = {FALSE, FALSE};
-#define FLAG_NOT_SENDING 1<<0
-#define FLAG_RECVONLY_FILTER 1<<1
+enum {
+ FLAG_NOT_SENDING = 1<<0,
+ FLAG_RECVONLY_FILTER = 1<<1
+};
GST_START_TEST (test_multicasttransmitter_new)
diff --git a/tests/check/transmitter/nice.c b/tests/check/transmitter/nice.c
index 4b9979d..bf471fa 100644
--- a/tests/check/transmitter/nice.c
+++ b/tests/check/transmitter/nice.c
@@ -30,6 +30,7 @@
#include "check-threadsafe.h"
#include "generic.h"
+#include "fake-filter.c"
enum {
--
1.5.6.5
More information about the farsight-commits
mailing list