mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
webrtc: Use fail_unless_equals_string() for string assertions
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2310>
This commit is contained in:
parent
7ee8f4539e
commit
348d4229e7
1 changed files with 5 additions and 5 deletions
|
@ -893,22 +893,22 @@ on_sdp_media_direction (struct test_webrtc *t, GstElement * element,
|
||||||
fail_unless (have_direction == FALSE,
|
fail_unless (have_direction == FALSE,
|
||||||
"duplicate/multiple directions for media %u", j);
|
"duplicate/multiple directions for media %u", j);
|
||||||
have_direction = TRUE;
|
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) {
|
} else if (g_strcmp0 (attr->key, "sendonly") == 0) {
|
||||||
fail_unless (have_direction == FALSE,
|
fail_unless (have_direction == FALSE,
|
||||||
"duplicate/multiple directions for media %u", j);
|
"duplicate/multiple directions for media %u", j);
|
||||||
have_direction = TRUE;
|
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) {
|
} else if (g_strcmp0 (attr->key, "recvonly") == 0) {
|
||||||
fail_unless (have_direction == FALSE,
|
fail_unless (have_direction == FALSE,
|
||||||
"duplicate/multiple directions for media %u", j);
|
"duplicate/multiple directions for media %u", j);
|
||||||
have_direction = TRUE;
|
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) {
|
} else if (g_strcmp0 (attr->key, "sendrecv") == 0) {
|
||||||
fail_unless (have_direction == FALSE,
|
fail_unless (have_direction == FALSE,
|
||||||
"duplicate/multiple directions for media %u", j);
|
"duplicate/multiple directions for media %u", j);
|
||||||
have_direction = TRUE;
|
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);
|
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,
|
fail_unless (have_setup == FALSE,
|
||||||
"duplicate/multiple setup for media %u", j);
|
"duplicate/multiple setup for media %u", j);
|
||||||
have_setup = TRUE;
|
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);
|
fail_unless (have_setup, "no setup attribute in media %u", i);
|
||||||
|
|
Loading…
Reference in a new issue