tests: fix tests
authorPatricia Muscalu <patricia@axis.com>
Thu, 27 Jun 2013 09:21:42 +0000 (11:21 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 27 Jun 2013 10:22:46 +0000 (12:22 +0200)
gst_rtsp_client_get_uri() has been removed

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703173

tests/check/gst/client.c

index 7dacca4..e25ba48 100644 (file)
@@ -247,8 +247,6 @@ GST_START_TEST (test_describe)
   GstRTSPClient *client;
   GstRTSPMessage request = { 0, };
   gchar *str;
-  GstRTSPUrl *uri_client;
-  gchar *uri_str;
 
   client = gst_rtsp_client_new ();
 
@@ -264,11 +262,6 @@ GST_START_TEST (test_describe)
           &request) == GST_RTSP_OK);
   gst_rtsp_message_unset (&request);
 
-  uri_client = gst_rtsp_client_get_uri (client);
-  fail_unless (uri_client == NULL);
-  gst_rtsp_url_free (uri_client);
-
-
   g_object_unref (client);
 
   /* simple DESCRIBE for an existing url */
@@ -284,13 +277,6 @@ GST_START_TEST (test_describe)
           &request) == GST_RTSP_OK);
   gst_rtsp_message_unset (&request);
 
-  uri_client = gst_rtsp_client_get_uri (client);
-  fail_unless (uri_client != NULL);
-  uri_str = gst_rtsp_url_get_request_uri (uri_client);
-  gst_rtsp_url_free (uri_client);
-  fail_unless (g_strcmp0 (uri_str, "rtsp://localhost/test") == 0);
-  g_free (uri_str);
-
   g_object_unref (client);
 }