mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
rtphdrext: Use fail_unless_equals_string() to make tests easier to debug
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
This commit is contained in:
parent
674611c851
commit
e65053a477
1 changed files with 6 additions and 6 deletions
|
@ -105,12 +105,12 @@ GST_START_TEST (rtp_header_ext_caps_with_attributes)
|
||||||
fail_unless (GST_VALUE_HOLDS_ARRAY (arr));
|
fail_unless (GST_VALUE_HOLDS_ARRAY (arr));
|
||||||
fail_unless_equals_int (gst_value_array_get_size (arr), 3);
|
fail_unless_equals_int (gst_value_array_get_size (arr), 3);
|
||||||
val = gst_value_array_get_value (arr, 0);
|
val = gst_value_array_get_value (arr, 0);
|
||||||
fail_unless_equals_int (g_strcmp0 (g_value_get_string (val), direction), 0);
|
fail_unless_equals_string (g_value_get_string (val), direction);
|
||||||
val = gst_value_array_get_value (arr, 1);
|
val = gst_value_array_get_value (arr, 1);
|
||||||
fail_unless_equals_int (g_strcmp0 (g_value_get_string (val),
|
fail_unless_equals_string (g_value_get_string (val),
|
||||||
gst_rtp_header_extension_get_uri (dummy)), 0);
|
gst_rtp_header_extension_get_uri (dummy));
|
||||||
val = gst_value_array_get_value (arr, 2);
|
val = gst_value_array_get_value (arr, 2);
|
||||||
fail_unless_equals_int (g_strcmp0 (g_value_get_string (val), attributes), 0);
|
fail_unless_equals_string (g_value_get_string (val), attributes);
|
||||||
|
|
||||||
gst_rtp_header_extension_set_direction (dummy,
|
gst_rtp_header_extension_set_direction (dummy,
|
||||||
GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV |
|
GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV |
|
||||||
|
@ -120,8 +120,8 @@ GST_START_TEST (rtp_header_ext_caps_with_attributes)
|
||||||
|
|
||||||
fail_unless (gst_rtp_header_extension_set_attributes_from_caps (dummy, caps));
|
fail_unless (gst_rtp_header_extension_set_attributes_from_caps (dummy, caps));
|
||||||
|
|
||||||
fail_unless_equals_int (g_strcmp0 (GST_RTP_DUMMY_HDR_EXT (dummy)->attributes,
|
fail_unless_equals_string (GST_RTP_DUMMY_HDR_EXT (dummy)->attributes,
|
||||||
attributes), 0);
|
attributes);
|
||||||
fail_unless_equals_int (gst_rtp_header_extension_get_direction (dummy),
|
fail_unless_equals_int (gst_rtp_header_extension_get_direction (dummy),
|
||||||
GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY);
|
GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue