summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-07-31 18:53:06 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-07-31 18:53:06 +0200
commit8610a3b5466203f7ed1223f8dd90d49032ce624b (patch)
tree0500b12fc87b369c6a194d1105f2626b9598065f /tests
parent6365c268b7f3074bc0663d7d598b63976cbe4982 (diff)
downloadfarstream-8610a3b5466203f7ed1223f8dd90d49032ce624b.tar.gz
tests: Remove broken _destroy() tests
Diffstat (limited to 'tests')
-rw-r--r--tests/check/raw/conference.c127
1 files changed, 0 insertions, 127 deletions
diff --git a/tests/check/raw/conference.c b/tests/check/raw/conference.c
index 5cb70347..d5ba354c 100644
--- a/tests/check/raw/conference.c
+++ b/tests/check/raw/conference.c
@@ -1376,112 +1376,6 @@ GST_START_TEST (test_rawconference_dispose)
}
GST_END_TEST;
-static void unref_session_on_src_pad_added (FsStream *stream,
- GstPad *pad, FsCodec *codec, struct SimpleTestStream *st)
-{
- TEST_LOCK ();
-
- gst_element_set_locked_state (st->dat->fakesrc, TRUE);
- gst_element_set_state (st->dat->fakesrc, GST_STATE_NULL);
- gst_bin_remove (GST_BIN (st->dat->pipeline), st->dat->fakesrc);
-
- ASSERT_CRITICAL (fs_session_destroy (st->dat->session));
- st->dat->destroyed = TRUE;
-
- TEST_UNLOCK ();
-
- g_main_loop_quit (loop);
-}
-
-static void unref_session_init (struct SimpleTestStream *st, guint confid,
- guint streamid)
-{
- g_signal_connect (st->stream, "src-pad-added",
- G_CALLBACK (unref_session_on_src_pad_added), st);
-}
-
-GST_START_TEST (test_rawconference_unref_session_in_pad_added)
-{
- nway_test (2, NULL, unref_session_init, "rawudp", 0, NULL);
-}
-GST_END_TEST;
-
-static const gchar *signal_name;
-
-static GstBusSyncReply
-unref_stream_sync_handler (GstBus *bus, GstMessage *message,
- gpointer data)
-{
- struct SimpleTestConference *dat = data;
- const GstStructure *s;
- FsStream *stream;
- const GValue *v;
- GList *item;
-
- if (GST_MESSAGE_TYPE (message) != GST_MESSAGE_ELEMENT)
- return GST_BUS_PASS;
-
- s = gst_message_get_structure (message);
-
- if (!gst_structure_has_name (s, signal_name))
- return GST_BUS_PASS;
-
- v = gst_structure_get_value (s, "stream");
- ts_fail_unless (G_VALUE_HOLDS (v, FS_TYPE_STREAM));
- stream = g_value_get_object (v);
-
- TEST_LOCK ();
-
- for (item = dat->streams; item; item = item->next)
- {
- struct SimpleTestStream *st = item->data;
- if (st->stream == stream)
- {
- fs_stream_destroy (stream);
- st->destroyed = TRUE;
- gst_message_unref (message);
- g_main_loop_quit (loop);
- TEST_UNLOCK ();
- return GST_BUS_DROP;
- }
- }
-
- TEST_UNLOCK ();
-
- gst_message_unref (message);
- return GST_BUS_DROP;
-}
-
-static void unref_stream_init (struct SimpleTestConference *dat, guint confid)
-{
- GstBus *bus = gst_pipeline_get_bus (GST_PIPELINE (dat->pipeline));
-
- gst_bus_set_sync_handler (bus, NULL, NULL, NULL);
- gst_bus_set_sync_handler (bus, unref_stream_sync_handler, dat, NULL);
- gst_object_unref (bus);
-}
-
-GST_START_TEST (test_rawconference_unref_stream_in_nice_thread_prepared)
-{
- signal_name = "farstream-local-candidates-prepared";
- nway_test (2, unref_stream_init, NULL, "nice", 0, NULL);
-}
-GST_END_TEST;
-
-GST_START_TEST (test_rawconference_unref_stream_in_nice_thread_new_active)
-{
- signal_name = "farstream-new-active-candidate-pair";
- nway_test (2, unref_stream_init, NULL, "nice", 0, NULL);
-}
-GST_END_TEST;
-
-GST_START_TEST (test_rawconference_unref_stream_in_nice_thread_state_changed)
-{
- signal_name = "farstream-component-state-changed";
- nway_test (2, unref_stream_init, NULL, "nice", 0, NULL);
-}
-GST_END_TEST;
-
static Suite *
fsrawconference_suite (void)
@@ -1521,27 +1415,6 @@ fsrawconference_suite (void)
tcase_add_test (tc_chain, test_rawconference_dispose);
suite_add_tcase (s, tc_chain);
- tc_chain = tcase_create ("fsrawconference_unref_session_in_pad_added");
- tcase_add_test (tc_chain, test_rawconference_unref_session_in_pad_added);
- suite_add_tcase (s, tc_chain);
-
- tc_chain = tcase_create (
- "fsrawconference_unref_stream_in_nice_thread_prepared");
- tcase_add_test (tc_chain,
- test_rawconference_unref_stream_in_nice_thread_prepared);
- suite_add_tcase (s, tc_chain);
-
- tc_chain = tcase_create (
- "fsrawconference_unref_stream_in_nice_thread_new_active");
- tcase_add_test (tc_chain,
- test_rawconference_unref_stream_in_nice_thread_new_active);
- suite_add_tcase (s, tc_chain);
-
- tc_chain = tcase_create (
- "fsrawconference_unref_stream_in_nice_thread_state_changed");
- tcase_add_test (tc_chain,
- test_rawconference_unref_stream_in_nice_thread_state_changed);
- suite_add_tcase (s, tc_chain);
return s;
}