libpurple/tests/test_account_option.c

Sat, 01 Oct 2022 01:50:52 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Sat, 01 Oct 2022 01:50:52 -0500
changeset 41771
c5877e2c93f2
parent 39974
cea80de2f5ac
child 42184
4e1bf25f5575
permissions
-rw-r--r--

Create and add PurpleContacts to the manager when purple_buddy_new is called

This required some additional changes to PurpleContact. Namely that the contact always has a presence and it is no longer writeable.

Testing Done:
Ran the unit tests and verified nothing funky happens when running.

We can't test that all of the properties are properly bound because we would have to start up a lot more of libpurple than I'm willing to do for something that's temporary.

Bugs closed: PIDGIN-17685

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

39974
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 *
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * Purple is the legal property of its developers, whose names are too
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * numerous to list here. Please refer to the COPYRIGHT file distributed
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * with this source distribution
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 *
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or (at
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * your option) any later version.
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 *
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful, but
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * General Public License for more details.
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 *
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #include <glib.h>
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 #include <string.h>
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 #include <purple.h>
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 /******************************************************************************
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 * Helpers
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 *****************************************************************************/
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 static void
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 test_purple_account_option_compare(PurpleAccountOption *opt1,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 PurpleAccountOption *opt2)
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 g_assert_cmpint(purple_account_option_get_pref_type(opt1),
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 ==,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 purple_account_option_get_pref_type(opt2));
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 g_assert_cmpstr(purple_account_option_get_text(opt1),
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 ==,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 purple_account_option_get_text(opt2));
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 g_assert_cmpstr(purple_account_option_get_setting(opt1),
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 ==,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 purple_account_option_get_setting(opt2));
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 }
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 static void
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 test_purple_account_option_compare_string(PurpleAccountOption *opt1,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 PurpleAccountOption *opt2)
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 test_purple_account_option_compare(opt1, opt2);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 g_assert_cmpstr(purple_account_option_get_default_string(opt1),
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 ==,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 purple_account_option_get_default_string(opt2));
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 g_assert_cmpint(purple_account_option_string_get_masked(opt1),
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 ==,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 purple_account_option_string_get_masked(opt2));
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 }
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 /******************************************************************************
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 * Tests
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 *****************************************************************************/
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 static void
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 test_purple_account_option_copy_int(void) {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 PurpleAccountOption *opt1, *opt2;
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 opt1 = purple_account_option_new(PURPLE_PREF_INT, "int", "test-int");
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 opt2 = purple_account_option_copy(opt1);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 test_purple_account_option_compare(opt1, opt2);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 }
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 static void
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 test_purple_account_option_copy_int_with_default(void) {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 PurpleAccountOption *opt1, *opt2;
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 opt1 = purple_account_option_new(PURPLE_PREF_INT, "int", "test-int");
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 purple_account_option_set_default_int(opt1, 42);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 opt2 = purple_account_option_copy(opt1);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 test_purple_account_option_compare(opt1, opt2);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 g_assert_cmpint(purple_account_option_get_default_int(opt1),
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 ==,
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 purple_account_option_get_default_int(opt2));
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 }
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 static void
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 test_purple_account_option_copy_string(void) {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 PurpleAccountOption *opt1, *opt2;
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
93 opt1 = purple_account_option_new(PURPLE_PREF_STRING, "string", "test-string");
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95 opt2 = purple_account_option_copy(opt1);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96 test_purple_account_option_compare_string(opt1, opt2);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 }
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 static void
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 test_purple_account_option_copy_string_with_default(void) {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 PurpleAccountOption *opt1, *opt2;
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
102
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 opt1 = purple_account_option_new(PURPLE_PREF_STRING, "string", "test-string");
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 purple_account_option_set_default_string(opt1, "default");
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106 opt2 = purple_account_option_copy(opt1);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 test_purple_account_option_compare_string(opt1, opt2);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 }
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 static void
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
111 test_purple_account_option_copy_string_with_masked(void) {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 PurpleAccountOption *opt1, *opt2;
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 opt1 = purple_account_option_new(PURPLE_PREF_STRING, "string", "test-string");
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 purple_account_option_string_set_masked(opt1, TRUE);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 opt2 = purple_account_option_copy(opt1);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 test_purple_account_option_compare_string(opt1, opt2);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 }
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 /******************************************************************************
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 * Main
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 *****************************************************************************/
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124 gint
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 main(gint argc, gchar **argv) {
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
126 gint res = 0;
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
127
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128 g_test_init(&argc, &argv, NULL);
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
130 g_test_set_nonfatal_assertions();
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132 g_test_add_func(
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 "/account_option/copy/int",
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 test_purple_account_option_copy_int
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135 );
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 g_test_add_func(
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
138 "/account_option/copy/int_with_default",
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 test_purple_account_option_copy_int_with_default
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
140 );
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142 g_test_add_func(
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 "/account_option/copy/string",
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144 test_purple_account_option_copy_string
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 );
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147 g_test_add_func(
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148 "/account_option/copy/string_with_default",
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 test_purple_account_option_copy_string_with_default
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 );
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
152 g_test_add_func(
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
153 "/account_option/copy/string_with_masked",
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
154 test_purple_account_option_copy_string_with_masked
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
155 );
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
156
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
157 res = g_test_run();
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
158
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159 return res;
cea80de2f5ac Add some unit tests around purple_account_option_copy
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
160 }

mercurial