diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-06-25 12:13:42 +0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-06-25 09:45:24 +0000 |
commit | 348d4229e7ab130e6d24fc96c1d40b72257875db (patch) | |
tree | a2d4b060bf3dafc8a322f60c4a5f9092a66bd0a7 /tests | |
parent | 7ee8f4539ea49a72564b90091482b0f76c7c8bf3 (diff) | |
download | gstreamer-plugins-bad-348d4229e7ab130e6d24fc96c1d40b72257875db.tar.gz |
webrtc: Use fail_unless_equals_string() for string assertions
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2310>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/webrtcbin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/check/elements/webrtcbin.c b/tests/check/elements/webrtcbin.c index a1253f07a..7cfc2e476 100644 --- a/tests/check/elements/webrtcbin.c +++ b/tests/check/elements/webrtcbin.c @@ -893,22 +893,22 @@ on_sdp_media_direction (struct test_webrtc *t, GstElement * element, fail_unless (have_direction == FALSE, "duplicate/multiple directions for media %u", j); have_direction = TRUE; - fail_unless (g_strcmp0 (attr->key, expected_directions[i]) == 0); + fail_unless_equals_string (attr->key, expected_directions[i]); } else if (g_strcmp0 (attr->key, "sendonly") == 0) { fail_unless (have_direction == FALSE, "duplicate/multiple directions for media %u", j); have_direction = TRUE; - fail_unless (g_strcmp0 (attr->key, expected_directions[i]) == 0); + fail_unless_equals_string (attr->key, expected_directions[i]); } else if (g_strcmp0 (attr->key, "recvonly") == 0) { fail_unless (have_direction == FALSE, "duplicate/multiple directions for media %u", j); have_direction = TRUE; - fail_unless (g_strcmp0 (attr->key, expected_directions[i]) == 0); + fail_unless_equals_string (attr->key, expected_directions[i]); } else if (g_strcmp0 (attr->key, "sendrecv") == 0) { fail_unless (have_direction == FALSE, "duplicate/multiple directions for media %u", j); have_direction = TRUE; - fail_unless (g_strcmp0 (attr->key, expected_directions[i]) == 0); + fail_unless_equals_string (attr->key, expected_directions[i]); } } fail_unless (have_direction, "no direction attribute in media %u", i); @@ -973,7 +973,7 @@ on_sdp_media_setup (struct test_webrtc *t, GstElement * element, fail_unless (have_setup == FALSE, "duplicate/multiple setup for media %u", j); have_setup = TRUE; - fail_unless (g_strcmp0 (attr->value, expected_setup[i]) == 0); + fail_unless_equals_string (attr->value, expected_setup[i]); } } fail_unless (have_setup, "no setup attribute in media %u", i); |