[calls] tests: util: Unit test call icon name function
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] tests: util: Unit test call icon name function
- Date: Tue, 7 Dec 2021 10:36:20 +0000 (UTC)
commit a87c3eeb2e863b9a5f0ee58009d962eaca119c71
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Tue Dec 7 11:00:55 2021 +0100
tests: util: Unit test call icon name function
tests/test-util.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/tests/test-util.c b/tests/test-util.c
index 2e1e7f7a..60b2d09e 100644
--- a/tests/test-util.c
+++ b/tests/test-util.c
@@ -52,6 +52,15 @@ test_dtmf_tone_validity (void)
}
+static void
+test_call_icon_names (void)
+{
+ g_assert_cmpstr (get_call_icon_symbolic_name (FALSE, FALSE), ==, "call-arrow-outgoing-symbolic");
+ g_assert_cmpstr (get_call_icon_symbolic_name (FALSE, TRUE), ==, "call-arrow-outgoing-missed-symbolic");
+ g_assert_cmpstr (get_call_icon_symbolic_name (TRUE, FALSE), ==, "call-arrow-incoming-symbolic");
+ g_assert_cmpstr (get_call_icon_symbolic_name (TRUE, TRUE), ==, "call-arrow-incoming-missed-symbolic");
+}
+
int
main (int argc,
char *argv[])
@@ -60,6 +69,7 @@ main (int argc,
g_test_add_func ("/Calls/util/protocol_prefix", (GTestFunc) test_protocol_prefix);
g_test_add_func ("/Calls/util/dtmf_tones", (GTestFunc) test_dtmf_tone_validity);
+ g_test_add_func ("/Calls/util/call_icon_names", (GTestFunc) test_call_icon_names);
g_test_run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]