From 95b3bd4e0cbcf21fb775763b36938d5e15d86942 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 15 Jul 2013 16:48:37 +0200 Subject: [PATCH] tests: simplify tests Client settings are now disabled by default so we don't need an auth module to disable them. --- tests/check/gst/client.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/check/gst/client.c b/tests/check/gst/client.c index a84c352..d3a1808 100644 --- a/tests/check/gst/client.c +++ b/tests/check/gst/client.c @@ -468,16 +468,9 @@ GST_START_TEST (test_client_multicast_ignore_transport_specific) GstRTSPClient *client; GstRTSPMessage request = { 0, }; gchar *str; - GstRTSPClientState state = { NULL }; client = setup_multicast_client (); - state.client = client; - state.auth = gst_rtsp_auth_new (); - state.token = - gst_rtsp_token_new ("media.factory.role", G_TYPE_STRING, "user", NULL); - gst_rtsp_client_state_push_current (&state); - /* simple SETUP with a valid URI and multicast and a specific dest, * but ignore it */ fail_unless (gst_rtsp_message_init_request (&request, GST_RTSP_SETUP, @@ -497,9 +490,6 @@ GST_START_TEST (test_client_multicast_ignore_transport_specific) expected_transport = NULL; g_object_unref (client); - g_object_unref (state.auth); - gst_rtsp_token_unref (state.token); - gst_rtsp_client_state_pop_current (&state); } GST_END_TEST; @@ -550,11 +540,6 @@ GST_START_TEST (test_client_multicast_invalid_transport_specific) G_TYPE_BOOLEAN, TRUE, "media.factory.role", G_TYPE_STRING, "user", NULL); gst_rtsp_client_state_push_current (&state); -#if 0 - gst_rtsp_client_set_use_client_settings (client, TRUE); - fail_unless (gst_rtsp_client_get_use_client_settings (client)); -#endif - /* simple SETUP with a valid URI and multicast, but an invalid ip */ fail_unless (gst_rtsp_message_init_request (&request, GST_RTSP_SETUP, "rtsp://localhost/test/stream=0") == GST_RTSP_OK); @@ -642,11 +627,6 @@ GST_START_TEST (test_client_multicast_transport_specific) G_TYPE_BOOLEAN, TRUE, "media.factory.role", G_TYPE_STRING, "user", NULL); gst_rtsp_client_state_push_current (&state); -#if 0 - gst_rtsp_client_set_use_client_settings (client, TRUE); - fail_unless (gst_rtsp_client_get_use_client_settings (client)); -#endif - expected_transport = "RTP/AVP;multicast;destination=233.252.0.1;" "ttl=1;port=5000-5001;mode=\"PLAY\""; -- 2.7.4