mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
tests: simplify tests
Client settings are now disabled by default so we don't need an auth module to disable them.
This commit is contained in:
parent
f18f2619e1
commit
95b3bd4e0c
1 changed files with 0 additions and 20 deletions
|
@ -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\"";
|
||||
|
||||
|
|
Loading…
Reference in a new issue