summaryrefslogtreecommitdiff
path: root/tests/check/transmitter/nice.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check/transmitter/nice.c')
-rw-r--r--tests/check/transmitter/nice.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/tests/check/transmitter/nice.c b/tests/check/transmitter/nice.c
index a0ec84fd..a085996e 100644
--- a/tests/check/transmitter/nice.c
+++ b/tests/check/transmitter/nice.c
@@ -30,7 +30,6 @@
#include "check-threadsafe.h"
#include "generic.h"
-#include "fake-filter.h"
enum {
@@ -38,7 +37,6 @@ enum {
FLAG_IS_LOCAL = 1 << 1,
FLAG_FORCE_CANDIDATES = 1 << 2,
FLAG_NOT_SENDING = 1 << 3,
- FLAG_RECVONLY_FILTER = 1 << 4
};
@@ -372,15 +370,6 @@ fs_nice_test_participant_class_init (FsNiceTestParticipantClass *klass)
{
}
-static GstElement *
-_get_recvonly_filter (FsTransmitter *trans, guint component, gpointer user_data)
-{
- if (component == 1)
- return NULL;
-
- return gst_element_factory_make ("fsfakefilter", NULL);
-}
-
static void
run_nice_transmitter_test (gint n_parameters, GParameter *params,
gint flags)
@@ -401,9 +390,6 @@ run_nice_transmitter_test (gint n_parameters, GParameter *params,
is_address_local = (flags & FLAG_IS_LOCAL);
force_candidates = (flags & FLAG_FORCE_CANDIDATES);
- if (flags & FLAG_RECVONLY_FILTER)
- ts_fail_unless (fs_fake_filter_register ());
-
if (flags & FLAG_NOT_SENDING)
{
buffer_count[0][0] = 20;
@@ -421,10 +407,6 @@ run_nice_transmitter_test (gint n_parameters, GParameter *params,
}
ts_fail_if (trans == NULL, "No transmitter create, yet error is still NULL");
- if (flags & FLAG_RECVONLY_FILTER)
- ts_fail_unless (g_signal_connect (trans, "get-recvonly-filter",
- G_CALLBACK (_get_recvonly_filter), NULL));
-
trans2 = fs_transmitter_new ("nice", 2, 0, &error);
if (error) {
ts_fail ("Error creating transmitter: (%s:%d) %s",
@@ -432,10 +414,6 @@ run_nice_transmitter_test (gint n_parameters, GParameter *params,
}
ts_fail_if (trans2 == NULL, "No transmitter create, yet error is still NULL");
- if (flags & FLAG_RECVONLY_FILTER)
- ts_fail_unless (g_signal_connect (trans2, "get-recvonly-filter",
- G_CALLBACK (_get_recvonly_filter), NULL));
-
pipeline = setup_pipeline (trans, G_CALLBACK (_handoff_handler1));
pipeline2 = setup_pipeline (trans2, G_CALLBACK (_handoff_handler2));
@@ -855,15 +833,9 @@ GST_START_TEST (test_nicetransmitter_invalid_arguments)
}
GST_END_TEST;
-GST_START_TEST (test_nicetransmitter_with_filter)
-{
- run_nice_transmitter_test (0, NULL, FLAG_RECVONLY_FILTER);
-}
-GST_END_TEST;
-
GST_START_TEST (test_nicetransmitter_sending_half)
{
- run_nice_transmitter_test (0, NULL, FLAG_NOT_SENDING | FLAG_RECVONLY_FILTER);
+ run_nice_transmitter_test (0, NULL, FLAG_NOT_SENDING);
}
GST_END_TEST;
@@ -911,10 +883,6 @@ nicetransmitter_suite (void)
tcase_add_test (tc_chain, test_nicetransmitter_invalid_arguments);
suite_add_tcase (s, tc_chain);
- tc_chain = tcase_create ("nicetransmitter-with-filter");
- tcase_add_test (tc_chain, test_nicetransmitter_with_filter);
- suite_add_tcase (s, tc_chain);
-
tc_chain = tcase_create ("nicetransmitter-sending-half");
tcase_add_test (tc_chain, test_nicetransmitter_sending_half);
suite_add_tcase (s, tc_chain);