libpurple/tests/test_contact_info.c

changeset 42596
b64b96f3b781
parent 42581
73eda937c387
child 42747
801025bad2e1
--- a/libpurple/tests/test_contact_info.c	Tue Feb 20 01:43:23 2024 -0600
+++ b/libpurple/tests/test_contact_info.c	Thu Feb 22 06:03:16 2024 -0600
@@ -60,6 +60,7 @@
 	char *note = NULL;
 	char *sid = NULL;
 	char *name_for_display = NULL;
+	gboolean favorite = FALSE;
 
 	avatar = g_object_new(PURPLE_TYPE_AVATAR, NULL);
 	person = purple_person_new();
@@ -85,6 +86,7 @@
 		"person", person,
 		"permission", PURPLE_CONTACT_INFO_PERMISSION_ALLOW,
 		"sid", "sid",
+		"favorite", TRUE,
 		NULL);
 
 	/* Now use g_object_get to read all of the properties. */
@@ -105,6 +107,7 @@
 		"permission", &permission,
 		"sid", &sid,
 		"name-for-display", &name_for_display,
+		"favorite", &favorite,
 		NULL);
 
 	/* Compare all the things. */
@@ -125,6 +128,7 @@
 	g_assert_true(person1 == person);
 	g_assert_true(permission == PURPLE_CONTACT_INFO_PERMISSION_ALLOW);
 	g_assert_cmpstr(sid, ==, "sid");
+	g_assert_true(favorite);
 
 	/* Free/unref all the things. */
 	g_clear_pointer(&id, g_free);

mercurial