Lines Matching refs:same

30 assert_and_unset (GValue *value, GValue *same, GValue *different)  in assert_and_unset()  argument
32 g_assert (value_is_same (value, same)); in assert_and_unset()
33 g_assert (value_is_same (same, value)); in assert_and_unset()
39 g_value_unset (same); in assert_and_unset()
44 assert_and_reset (GValue *value, GValue *same, GValue *different) in assert_and_reset() argument
46 g_assert (value_is_same (value, same)); in assert_and_reset()
47 g_assert (value_is_same (same, value)); in assert_and_reset()
53 g_value_reset (same); in assert_and_reset()
61 GValue same = G_VALUE_INIT; in test_numeric() local
65 g_value_set_int (g_value_init (&same, G_TYPE_INT), -42); in test_numeric()
67 assert_and_unset (&value, &same, &different); in test_numeric()
70 g_value_set_uint (g_value_init (&same, G_TYPE_UINT), 42); in test_numeric()
72 assert_and_unset (&value, &same, &different); in test_numeric()
75 g_value_set_int64 (g_value_init (&same, G_TYPE_INT64), -42); in test_numeric()
77 assert_and_unset (&value, &same, &different); in test_numeric()
80 g_value_set_uint64 (g_value_init (&same, G_TYPE_UINT64), -42); in test_numeric()
82 assert_and_unset (&value, &same, &different); in test_numeric()
85 g_value_set_uchar (g_value_init (&same, G_TYPE_UCHAR), 42); in test_numeric()
87 assert_and_unset (&value, &same, &different); in test_numeric()
90 g_value_set_double (g_value_init (&same, G_TYPE_DOUBLE), 4.5); in test_numeric()
92 assert_and_unset (&value, &same, &different); in test_numeric()
95 g_value_set_boolean (g_value_init (&same, G_TYPE_BOOLEAN), TRUE); in test_numeric()
97 assert_and_unset (&value, &same, &different); in test_numeric()
100 g_value_set_boolean (g_value_init (&same, G_TYPE_BOOLEAN), FALSE); in test_numeric()
102 assert_and_unset (&value, &same, &different); in test_numeric()
109 GValue same = G_VALUE_INIT; in test_string() local
113 g_value_init (&same, G_TYPE_STRING); in test_string()
117 g_value_set_static_string (&same, NULL); in test_string()
119 assert_and_reset (&value, &same, &different); in test_string()
122 g_value_set_static_string (&same, ""); in test_string()
124 assert_and_reset (&value, &same, &different); in test_string()
127 g_value_take_string (&same, g_strdup ("foo")); in test_string()
129 assert_and_reset (&value, &same, &different); in test_string()
132 g_value_unset (&same); in test_string()
140 GValue same = G_VALUE_INIT; in test_object_path() local
144 g_value_init (&same, DBUS_TYPE_G_OBJECT_PATH); in test_object_path()
148 g_value_take_boxed (&same, g_strdup ("/foo")); in test_object_path()
150 assert_and_reset (&value, &same, &different); in test_object_path()
153 g_value_unset (&same); in test_object_path()
164 GValue same = G_VALUE_INIT; in test_strv() local
168 g_value_init (&same, G_TYPE_STRV); in test_strv()
172 g_value_take_boxed (&same, g_strdupv ((GStrv) small)); in test_strv()
174 assert_and_reset (&value, &same, &different); in test_strv()
177 g_value_take_boxed (&same, g_strdupv ((GStrv) large)); in test_strv()
179 assert_and_reset (&value, &same, &different); in test_strv()
182 g_value_set_static_boxed (&same, (GStrv) empty); in test_strv()
184 assert_and_reset (&value, &same, &different); in test_strv()
187 g_value_set_static_boxed (&same, NULL); in test_strv()
189 assert_and_reset (&value, &same, &different); in test_strv()
192 g_value_unset (&same); in test_strv()