tests: fix indentation

This commit is contained in:
Tim-Philipp Müller 2015-12-23 23:13:21 +00:00
parent c1494a558c
commit 2adecc18e6
5 changed files with 39 additions and 43 deletions

View file

@ -63,8 +63,7 @@ GST_START_TEST (test_properties)
"epsv-mode", &res_epsv_mode, "epsv-mode", &res_epsv_mode,
"create-dirs", &res_create_dirs, "create-dirs", &res_create_dirs,
"create-tmp-file", &res_create_tmpfile, "create-tmp-file", &res_create_tmpfile,
"temp-file-name", &res_tmp_file_name, "temp-file-name", &res_tmp_file_name, NULL);
NULL);
fail_unless (strncmp (res_location, "mylocation", strlen ("mylocation")) fail_unless (strncmp (res_location, "mylocation", strlen ("mylocation"))
== 0); == 0);
@ -72,7 +71,8 @@ GST_START_TEST (test_properties)
== 0); == 0);
fail_unless (strncmp (res_ftp_port, "1.2.3.4:0", strlen ("1.2.3.4:0")) fail_unless (strncmp (res_ftp_port, "1.2.3.4:0", strlen ("1.2.3.4:0"))
== 0); == 0);
fail_unless (strncmp (res_tmp_file_name, "test_tmp_file_", strlen ("test_tmp_file_")) fail_unless (strncmp (res_tmp_file_name, "test_tmp_file_",
strlen ("test_tmp_file_"))
== 0); == 0);
fail_unless (res_epsv_mode == FALSE); fail_unless (res_epsv_mode == FALSE);
fail_unless (res_create_dirs == FALSE); fail_unless (res_create_dirs == FALSE);
@ -99,8 +99,7 @@ GST_START_TEST (test_properties)
"epsv-mode", &res_epsv_mode, "epsv-mode", &res_epsv_mode,
"create-dirs", &res_create_dirs, "create-dirs", &res_create_dirs,
"create-tmp-file", &res_create_tmpfile, "create-tmp-file", &res_create_tmpfile,
"temp-file-name", &res_tmp_file_name, "temp-file-name", &res_tmp_file_name, NULL);
NULL);
fail_unless (strncmp (res_location, "newlocation", strlen ("newlocation")) fail_unless (strncmp (res_location, "newlocation", strlen ("newlocation"))
== 0); == 0);
@ -108,7 +107,8 @@ GST_START_TEST (test_properties)
== 0); == 0);
fail_unless (strncmp (res_ftp_port, "", strlen ("")) fail_unless (strncmp (res_ftp_port, "", strlen (""))
== 0); == 0);
fail_unless (strncmp (res_tmp_file_name, "test_tmp_file_", strlen ("test_tmp_file_")) fail_unless (strncmp (res_tmp_file_name, "test_tmp_file_",
strlen ("test_tmp_file_"))
== 0); == 0);
fail_unless (res_epsv_mode == TRUE); fail_unless (res_epsv_mode == TRUE);
fail_unless (res_create_dirs == TRUE); fail_unless (res_create_dirs == TRUE);
@ -122,6 +122,7 @@ GST_START_TEST (test_properties)
cleanup_curlftpsink (sink); cleanup_curlftpsink (sink);
} }
GST_END_TEST; GST_END_TEST;
static Suite * static Suite *

View file

@ -54,16 +54,14 @@ GST_START_TEST (test_properties)
g_object_set (G_OBJECT (sink), g_object_set (G_OBJECT (sink),
"location", "mylocation", "location", "mylocation",
"file-name","myfile", "file-name", "myfile",
"user", "user", "user", "user",
"passwd", "passwd", "passwd", "passwd",
"proxy", "myproxy", "proxy", "myproxy",
"proxy-port", 7777, "proxy-port", 7777,
"proxy-user", "proxy_user", "proxy-user", "proxy_user",
"proxy-passwd", "proxy_passwd", "proxy-passwd", "proxy_passwd",
"content-type", "image/jpeg", "content-type", "image/jpeg", "use-content-length", TRUE, NULL);
"use-content-length", TRUE,
NULL);
g_object_get (sink, g_object_get (sink,
"location", &res_location, "location", &res_location,
@ -75,8 +73,7 @@ GST_START_TEST (test_properties)
"proxy-user", &res_proxy_user, "proxy-user", &res_proxy_user,
"proxy-passwd", &res_proxy_passwd, "proxy-passwd", &res_proxy_passwd,
"content-type", &res_content_type, "content-type", &res_content_type,
"use-content-length", &res_use_content_length, "use-content-length", &res_use_content_length, NULL);
NULL);
fail_unless (strncmp (res_location, "mylocation", strlen ("mylocation")) fail_unless (strncmp (res_location, "mylocation", strlen ("mylocation"))
== 0); == 0);
@ -118,6 +115,7 @@ GST_START_TEST (test_properties)
cleanup_curlhttpsink (sink); cleanup_curlhttpsink (sink);
} }
GST_END_TEST; GST_END_TEST;
static Suite * static Suite *

View file

@ -80,9 +80,7 @@ GST_START_TEST (test_properties)
"nbr-attachments", &res_nbr_attach, "nbr-attachments", &res_nbr_attach,
"use-ssl", &res_use_ssl, "use-ssl", &res_use_ssl,
"pop-location", &res_pop_location, "pop-location", &res_pop_location,
"pop_user", &res_pop_usr, "pop_user", &res_pop_usr, "pop-passwd", &res_pop_passwd, NULL);
"pop-passwd", &res_pop_passwd,
NULL);
fail_unless (strncmp (res_location, "mylocation", strlen ("mylocation")) fail_unless (strncmp (res_location, "mylocation", strlen ("mylocation"))
== 0); == 0);
@ -147,9 +145,7 @@ GST_START_TEST (test_properties)
"subject", &res_subj, "subject", &res_subj,
"use-ssl", &res_use_ssl, "use-ssl", &res_use_ssl,
"message-body", &res_msg, "message-body", &res_msg,
"mail-from", &res_mail_from, "mail-from", &res_mail_from, "mail-rcpt", &res_mail_rcpt, NULL);
"mail-rcpt", &res_mail_rcpt,
NULL);
fail_unless (strncmp (res_location, "newlocation", strlen ("newlocation")) fail_unless (strncmp (res_location, "newlocation", strlen ("newlocation"))
== 0); == 0);
@ -190,6 +186,7 @@ GST_START_TEST (test_properties)
cleanup_curlsmtpsink (sink); cleanup_curlsmtpsink (sink);
} }
GST_END_TEST; GST_END_TEST;
static Suite * static Suite *

View file

@ -51,7 +51,7 @@ static GstElement *
setup_element (const gchar * desc) setup_element (const gchar * desc)
{ {
GstElement *element; GstElement *element;
GstCaps * caps; GstCaps *caps;
(void) desc; (void) desc;

View file

@ -131,7 +131,7 @@ check_and_clear_events (gint expected, gboolean compare)
} }
} }
g_list_free_full (myreceivedevents, (GDestroyNotify)gst_event_unref); g_list_free_full (myreceivedevents, (GDestroyNotify) gst_event_unref);
myreceivedevents = NULL; myreceivedevents = NULL;
g_list_free (mypushedevents); g_list_free (mypushedevents);
mypushedevents = NULL; mypushedevents = NULL;