libpurple/tests/test_conversation.c

changeset 42916
28a4480fe746
parent 42908
64bbb9d4bf94
child 42968
9bb936b002a2
equal deleted inserted replaced
42915:c6ca43acffbb 42916:28a4480fe746
70 char *user_nickname = NULL; 70 char *user_nickname = NULL;
71 gboolean age_restricted = FALSE; 71 gboolean age_restricted = FALSE;
72 gboolean favorite = FALSE; 72 gboolean favorite = FALSE;
73 gboolean needs_attention = FALSE; 73 gboolean needs_attention = FALSE;
74 gboolean logging = FALSE; 74 gboolean logging = FALSE;
75 gboolean drafting = FALSE;
75 76
76 account = g_object_new( 77 account = g_object_new(
77 PURPLE_TYPE_ACCOUNT, 78 PURPLE_TYPE_ACCOUNT,
78 "id", "test", 79 "id", "test",
79 "protocol-id", "test", 80 "protocol-id", "test",
96 "alias", "talky talk", 97 "alias", "talky talk",
97 "avatar", avatar, 98 "avatar", avatar,
98 "created-on", created_on, 99 "created-on", created_on,
99 "creator", creator, 100 "creator", creator,
100 "description", "to describe or not to describe...", 101 "description", "to describe or not to describe...",
102 "drafting", TRUE,
101 "favorite", TRUE, 103 "favorite", TRUE,
102 "id", "id1", 104 "id", "id1",
103 "logging", TRUE, 105 "logging", TRUE,
104 "name", "name1", 106 "name", "name1",
105 "needs-attention", TRUE, 107 "needs-attention", TRUE,
119 "alias", &alias, 121 "alias", &alias,
120 "avatar", &avatar1, 122 "avatar", &avatar1,
121 "created-on", &created_on1, 123 "created-on", &created_on1,
122 "creator", &creator1, 124 "creator", &creator1,
123 "description", &description, 125 "description", &description,
126 "drafting", &drafting,
124 "favorite", &favorite, 127 "favorite", &favorite,
125 "global-id", &global_id, 128 "global-id", &global_id,
126 "id", &id, 129 "id", &id,
127 "logging", &logging, 130 "logging", &logging,
128 "members", &members, 131 "members", &members,
159 g_clear_object(&creator1); 162 g_clear_object(&creator1);
160 163
161 g_assert_cmpstr(description, ==, "to describe or not to describe..."); 164 g_assert_cmpstr(description, ==, "to describe or not to describe...");
162 g_clear_pointer(&description, g_free); 165 g_clear_pointer(&description, g_free);
163 166
167 g_assert_true(drafting);
168
164 g_assert_true(favorite); 169 g_assert_true(favorite);
165 170
166 g_assert_cmpstr(global_id, ==, "test-id1"); 171 g_assert_cmpstr(global_id, ==, "test-id1");
167 g_clear_pointer(&global_id, g_free); 172 g_clear_pointer(&global_id, g_free);
168 173

mercurial