libpurple/tests/test_channel_join_details.c

Tue, 20 Feb 2024 00:55:28 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 20 Feb 2024 00:55:28 -0600
changeset 42592
6b65c0e4ba15
parent 42364
b739bb0811f7
child 42799
8b06291db25c
permissions
-rw-r--r--

Remove unnecessary casts for GObject methods

Testing Done:
Compiled with the turtles and verified no new warnings appeared.

Reviewed at https://reviews.imfreedom.org/r/2956/

42326
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple - Internet Messaging Library
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * This library is free software; you can redistribute it and/or
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * modify it under the terms of the GNU Lesser General Public
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * License as published by the Free Software Foundation; either
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * version 2 of the License, or (at your option) any later version.
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 *
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * This library is distributed in the hope that it will be useful,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * Lesser General Public License for more details.
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 *
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * You should have received a copy of the GNU Lesser General Public
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 */
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 #include <glib.h>
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 #include <purple.h>
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 /******************************************************************************
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 * Tests
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 *****************************************************************************/
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 static void
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 test_purple_channel_join_details_new(void) {
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 PurpleChannelJoinDetails *details = NULL;
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 details = purple_channel_join_details_new(FALSE, FALSE);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 g_assert_true(PURPLE_IS_CHANNEL_JOIN_DETAILS(details));
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 g_clear_object(&details);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 }
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 static void
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 test_purple_channel_join_details_properties(void) {
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 PurpleChannelJoinDetails *details;
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 char *name = NULL;
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 char *nickname = NULL;
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 char *password = NULL;
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 gboolean nickname_supported = FALSE;
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 gboolean password_supported = FALSE;
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 details = g_object_new(
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 PURPLE_TYPE_CHANNEL_JOIN_DETAILS,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 "name", "name",
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 "nickname", "nickname",
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 "nickname-supported", TRUE,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 "password", "hunter2",
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 "password-supported", TRUE,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 NULL);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54
42592
6b65c0e4ba15 Remove unnecessary casts for GObject methods
Gary Kramlich <grim@reaperworld.com>
parents: 42364
diff changeset
55 g_object_get(
6b65c0e4ba15 Remove unnecessary casts for GObject methods
Gary Kramlich <grim@reaperworld.com>
parents: 42364
diff changeset
56 details,
42326
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 "name", &name,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 "nickname", &nickname,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 "nickname-supported", &nickname_supported,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 "password", &password,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 "password-supported", &password_supported,
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 NULL);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 g_assert_cmpstr(name, ==, "name");
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 g_clear_pointer(&name, g_free);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 g_assert_cmpstr(nickname, ==, "nickname");
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 g_clear_pointer(&nickname, g_free);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 g_assert_true(nickname_supported);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 g_assert_cmpstr(password, ==, "hunter2");
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 g_clear_pointer(&password, g_free);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 g_assert_true(password_supported);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 g_clear_object(&details);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 }
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79
42364
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
80 static void
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
81 test_purple_channel_join_details_merge(void) {
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
82 PurpleChannelJoinDetails *destination = NULL;
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
83 PurpleChannelJoinDetails *source = NULL;
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
84 const char *str = NULL;
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
85 gboolean supported = FALSE;
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
86
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
87 source = purple_channel_join_details_new(TRUE, TRUE);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
88 purple_channel_join_details_set_name(source, "name");
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
89 purple_channel_join_details_set_nickname(source, "nickname");
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
90 purple_channel_join_details_set_password(source, "password");
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
91
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
92 destination = purple_channel_join_details_new(FALSE, FALSE);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
93
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
94 purple_channel_join_details_merge(source, destination);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
95
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
96 str = purple_channel_join_details_get_name(destination);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
97 g_assert_cmpstr(str, ==, purple_channel_join_details_get_name(source));
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
98
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
99 supported = purple_channel_join_details_get_nickname_supported(destination);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
100 g_assert_true(supported == purple_channel_join_details_get_nickname_supported(source));
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
101
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
102 str = purple_channel_join_details_get_nickname(destination);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
103 g_assert_cmpstr(str, ==, purple_channel_join_details_get_nickname(source));
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
104
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
105 supported = purple_channel_join_details_get_password_supported(destination);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
106 g_assert_true(supported == purple_channel_join_details_get_password_supported(source));
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
107
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
108 str = purple_channel_join_details_get_password(destination);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
109 g_assert_cmpstr(str, ==, purple_channel_join_details_get_password(source));
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
110
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
111 g_clear_object(&source);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
112 g_clear_object(&destination);
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
113 }
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
114
42326
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 /******************************************************************************
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116 * Main
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 *****************************************************************************/
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 gint
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 main(gint argc, gchar *argv[]) {
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 g_test_init(&argc, &argv, NULL);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 g_test_add_func("/channel-join-details/new",
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 test_purple_channel_join_details_new);
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124 g_test_add_func("/channel-join-details/properties",
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 test_purple_channel_join_details_properties);
42364
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
126 g_test_add_func("/channel-join-details/merge",
b739bb0811f7 Merge whether nickname and password are supported when merging ChannelJoinDetails
Gary Kramlich <grim@reaperworld.com>
parents: 42326
diff changeset
127 test_purple_channel_join_details_merge);
42326
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129 return g_test_run();
3fc3dd614b4e Create PurpleChannelJoinDetails to replace the components for join chats
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
130 }

mercurial