Lines Matching defs:Test
41 } Test;
43 Test paths, interfaces, members, errors, bus_names, signatures,
217 const Test *test = arg;
220 g_assert (test != NULL);
221 g_assert (test->function != NULL);
222 g_assert (test->valid != NULL);
223 g_assert (test->invalid != NULL);
225 for (i = 0; test->valid[i] != NULL; i++)
227 dbus_bool_t ok = test->function (test->valid[i], &f->e);
230 g_error ("%s was considered invalid: %s: %s", test->valid[i],
234 g_error ("%s was considered invalid without an error", test->valid[i]);
237 for (i = 0; test->invalid[i] != NULL; i++)
239 dbus_bool_t ok = test->function (test->invalid[i], &f->e);
242 g_error ("%s should have been considered invalid", test->invalid[i]);
245 g_error ("%s should have an error set", test->invalid[i]);
249 test->invalid[i], f->e.name);
253 test->invalid[i], f->e.message);