tests: fix indentation

Fix and "fix".
This commit is contained in:
Tim-Philipp Müller 2018-01-13 15:02:28 +00:00
parent d0a4ddc2bb
commit 4e048f7b8a
4 changed files with 25 additions and 14 deletions

View file

@ -156,7 +156,8 @@ GST_START_TEST (test_record)
gint i;
mfactory =
start_record_server ("( rtppcmadepay name=depay0 ! appsink name=sink async=false )");
start_record_server
("( rtppcmadepay name=depay0 ! appsink name=sink async=false )");
g_signal_connect (mfactory, "media-constructed",
G_CALLBACK (media_constructed_cb), &server_sink);

View file

@ -342,7 +342,8 @@ read_response (GstRTSPConnection * conn)
return NULL;
}
type = gst_rtsp_message_get_type (response);
fail_unless (type == GST_RTSP_MESSAGE_RESPONSE || type == GST_RTSP_MESSAGE_DATA);
fail_unless (type == GST_RTSP_MESSAGE_RESPONSE
|| type == GST_RTSP_MESSAGE_DATA);
return response;
}
@ -1104,7 +1105,8 @@ do_test_play_tcp_full (const gchar * range)
{
GstRTSPMessage *message;
fail_unless (gst_rtsp_message_new (&message) == GST_RTSP_OK);
fail_unless (gst_rtsp_connection_receive (conn, message, NULL) == GST_RTSP_OK);
fail_unless (gst_rtsp_connection_receive (conn, message,
NULL) == GST_RTSP_OK);
fail_unless (gst_rtsp_message_get_type (message) == GST_RTSP_MESSAGE_DATA);
gst_rtsp_message_free (message);
}
@ -2336,7 +2338,8 @@ do_test_multiple_transports (GstRTSPLowerTrans trans1, GstRTSPLowerTrans trans2)
{
GstRTSPMessage *message;
fail_unless (gst_rtsp_message_new (&message) == GST_RTSP_OK);
fail_unless (gst_rtsp_connection_receive (conn2, message, NULL) == GST_RTSP_OK);
fail_unless (gst_rtsp_connection_receive (conn2, message,
NULL) == GST_RTSP_OK);
fail_unless (gst_rtsp_message_get_type (message) == GST_RTSP_MESSAGE_DATA);
gst_rtsp_message_free (message);
}
@ -2364,7 +2367,8 @@ do_test_multiple_transports (GstRTSPLowerTrans trans1, GstRTSPLowerTrans trans2)
GST_START_TEST (test_multiple_transports)
{
start_server (TRUE);
do_test_multiple_transports (GST_RTSP_LOWER_TRANS_UDP, GST_RTSP_LOWER_TRANS_TCP);
do_test_multiple_transports (GST_RTSP_LOWER_TRANS_UDP,
GST_RTSP_LOWER_TRANS_TCP);
stop_server ();
}

View file

@ -111,8 +111,10 @@ GST_START_TEST (test_pool)
{
Responses responses = {
{session1, session2, session3},
{GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP},
{session1, session2, session3}
,
{GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP}
,
};
list = gst_rtsp_session_pool_filter (pool, filter_func, &responses);
@ -121,8 +123,10 @@ GST_START_TEST (test_pool)
{
Responses responses = {
{session1, session2, session3},
{GST_RTSP_FILTER_REF, GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP},
{session1, session2, session3}
,
{GST_RTSP_FILTER_REF, GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP}
,
};
list = gst_rtsp_session_pool_filter (pool, filter_func, &responses);
@ -133,8 +137,10 @@ GST_START_TEST (test_pool)
{
Responses responses = {
{session1, session2, session3},
{GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_REMOVE},
{session1, session2, session3}
,
{GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_KEEP, GST_RTSP_FILTER_REMOVE}
,
};
list = gst_rtsp_session_pool_filter (pool, filter_func, &responses);