Lines Matching refs:_dbus_assert
68 _dbus_assert (rule->matches_go_to != NULL); in bus_match_rule_new()
77 _dbus_assert (rule->refcount > 0); in bus_match_rule_ref()
87 _dbus_assert (rule->refcount > 0); in bus_match_rule_unref()
236 _dbus_assert (rule->args != NULL); in match_rule_to_string()
301 _dbus_assert (interface != NULL); in bus_match_rule_set_interface()
320 _dbus_assert (member != NULL); in bus_match_rule_set_member()
339 _dbus_assert (sender != NULL); in bus_match_rule_set_sender()
358 _dbus_assert (destination != NULL); in bus_match_rule_set_destination()
388 _dbus_assert (path != NULL); in bus_match_rule_set_path()
417 _dbus_assert (value != NULL); in bus_match_rule_set_arg()
483 _dbus_assert (rule->args[rule->args_len] == NULL); in bus_match_rule_set_arg()
484 _dbus_assert (rule->arg_lens[rule->args_len] == 0); in bus_match_rule_set_arg()
622 _dbus_assert (quote_char == '\''); in find_value()
659 _dbus_assert (quote_char == '\0'); in find_value()
720 _dbus_assert (tokens[i].key == NULL); in tokenize_rule()
721 _dbus_assert (tokens[i].value == NULL); in tokenize_rule()
1114 _dbus_assert (i < MAX_RULE_TOKENS); in bus_match_rule_parse()
1218 _dbus_assert (message_type >= 0); in bus_matchmaker_get_rules()
1219 _dbus_assert (message_type < DBUS_NUM_MESSAGE_TYPES); in bus_matchmaker_get_rules()
1287 _dbus_assert (_dbus_hash_table_lookup_string (p->rules_by_iface, interface) in bus_matchmaker_gc_rules()
1296 _dbus_assert (matchmaker->refcount > 0); in bus_matchmaker_ref()
1306 _dbus_assert (matchmaker->refcount > 0); in bus_matchmaker_unref()
1332 _dbus_assert (bus_connection_is_active (rule->matches_go_to)); in bus_matchmaker_add_rule()
1429 _dbus_assert (b->args[i] != NULL); in match_rule_equal()
1481 _dbus_assert (rules != NULL); in bus_matchmaker_remove_rule()
1582 _dbus_assert (name != NULL); /* because we're an active connection */ in rule_list_remove_by_connection()
1611 _dbus_assert (bus_connection_is_active (connection)); in bus_matchmaker_disconnected()
1643 _dbus_assert (connection != NULL); in connection_is_primary_owner()
1694 _dbus_assert (rule->message_type != DBUS_MESSAGE_TYPE_INVALID); in match_rule_matches()
1704 _dbus_assert (rule->interface != NULL); in match_rule_matches()
1718 _dbus_assert (rule->member != NULL); in match_rule_matches()
1730 _dbus_assert (rule->sender != NULL); in match_rule_matches()
1767 _dbus_assert (rule->destination != NULL); in match_rule_matches()
1793 _dbus_assert (rule->destination == NULL); in match_rule_matches()
1809 _dbus_assert (rule->path != NULL); in match_rule_matches()
1824 _dbus_assert (rule->path != NULL); in match_rule_matches()
1849 _dbus_assert (rule->args != NULL); in match_rule_matches()
1879 _dbus_assert (actual_arg != NULL); in match_rule_matches()
2009 _dbus_assert (*recipients_p == NULL); in bus_matchmaker_get_recipients()
2105 _dbus_assert (rule->flags & BUS_MATCH_MESSAGE_TYPE); in assert_large_rule()
2106 _dbus_assert (rule->flags & BUS_MATCH_SENDER); in assert_large_rule()
2107 _dbus_assert (rule->flags & BUS_MATCH_INTERFACE); in assert_large_rule()
2108 _dbus_assert (rule->flags & BUS_MATCH_MEMBER); in assert_large_rule()
2109 _dbus_assert (rule->flags & BUS_MATCH_DESTINATION); in assert_large_rule()
2110 _dbus_assert (rule->flags & BUS_MATCH_PATH); in assert_large_rule()
2112 _dbus_assert (rule->message_type == DBUS_MESSAGE_TYPE_SIGNAL); in assert_large_rule()
2113 _dbus_assert (rule->interface != NULL); in assert_large_rule()
2114 _dbus_assert (rule->member != NULL); in assert_large_rule()
2115 _dbus_assert (rule->sender != NULL); in assert_large_rule()
2116 _dbus_assert (rule->destination != NULL); in assert_large_rule()
2117 _dbus_assert (rule->path != NULL); in assert_large_rule()
2119 _dbus_assert (strcmp (rule->interface, "org.freedesktop.DBusInterface") == 0); in assert_large_rule()
2120 _dbus_assert (strcmp (rule->sender, "org.freedesktop.DBusSender") == 0); in assert_large_rule()
2121 _dbus_assert (strcmp (rule->member, "Foo") == 0); in assert_large_rule()
2122 _dbus_assert (strcmp (rule->path, "/bar/foo") == 0); in assert_large_rule()
2123 _dbus_assert (strcmp (rule->destination, ":452345.34") == 0); in assert_large_rule()
2151 _dbus_assert (rule->flags & BUS_MATCH_MESSAGE_TYPE); in test_parsing()
2152 _dbus_assert (rule->flags & BUS_MATCH_INTERFACE); in test_parsing()
2153 _dbus_assert (rule->flags & BUS_MATCH_PATH); in test_parsing()
2155 _dbus_assert (rule->message_type == DBUS_MESSAGE_TYPE_SIGNAL); in test_parsing()
2156 _dbus_assert (rule->interface != NULL); in test_parsing()
2157 _dbus_assert (rule->path != NULL); in test_parsing()
2159 _dbus_assert (strcmp (rule->interface, "org.Bar") == 0); in test_parsing()
2160 _dbus_assert (strcmp (rule->path, "/foo") == 0); in test_parsing()
2169 _dbus_assert (rule->flags == BUS_MATCH_ARGS); in test_parsing()
2170 _dbus_assert (rule->args != NULL); in test_parsing()
2171 _dbus_assert (rule->args_len == 1); in test_parsing()
2172 _dbus_assert (rule->args[0] != NULL); in test_parsing()
2173 _dbus_assert (rule->args[1] == NULL); in test_parsing()
2174 _dbus_assert (strcmp (rule->args[0], "foo") == 0); in test_parsing()
2182 _dbus_assert (rule->flags == BUS_MATCH_ARGS); in test_parsing()
2183 _dbus_assert (rule->args != NULL); in test_parsing()
2184 _dbus_assert (rule->args_len == 2); in test_parsing()
2185 _dbus_assert (rule->args[0] == NULL); in test_parsing()
2186 _dbus_assert (rule->args[1] != NULL); in test_parsing()
2187 _dbus_assert (rule->args[2] == NULL); in test_parsing()
2188 _dbus_assert (strcmp (rule->args[1], "foo") == 0); in test_parsing()
2196 _dbus_assert (rule->flags == BUS_MATCH_ARGS); in test_parsing()
2197 _dbus_assert (rule->args != NULL); in test_parsing()
2198 _dbus_assert (rule->args_len == 3); in test_parsing()
2199 _dbus_assert (rule->args[0] == NULL); in test_parsing()
2200 _dbus_assert (rule->args[1] == NULL); in test_parsing()
2201 _dbus_assert (rule->args[2] != NULL); in test_parsing()
2202 _dbus_assert (rule->args[3] == NULL); in test_parsing()
2203 _dbus_assert (strcmp (rule->args[2], "foo") == 0); in test_parsing()
2211 _dbus_assert (rule->flags == BUS_MATCH_ARGS); in test_parsing()
2212 _dbus_assert (rule->args != NULL); in test_parsing()
2213 _dbus_assert (rule->args_len == 41); in test_parsing()
2214 _dbus_assert (rule->args[0] == NULL); in test_parsing()
2215 _dbus_assert (rule->args[1] == NULL); in test_parsing()
2216 _dbus_assert (rule->args[40] != NULL); in test_parsing()
2217 _dbus_assert (rule->args[41] == NULL); in test_parsing()
2218 _dbus_assert (strcmp (rule->args[40], "foo") == 0); in test_parsing()
2226 _dbus_assert (rule->flags == BUS_MATCH_ARGS); in test_parsing()
2227 _dbus_assert (rule->args != NULL); in test_parsing()
2228 _dbus_assert (rule->args_len == 64); in test_parsing()
2229 _dbus_assert (rule->args[0] == NULL); in test_parsing()
2230 _dbus_assert (rule->args[1] == NULL); in test_parsing()
2231 _dbus_assert (rule->args[63] != NULL); in test_parsing()
2232 _dbus_assert (rule->args[64] == NULL); in test_parsing()
2233 _dbus_assert (strcmp (rule->args[63], "foo") == 0); in test_parsing()
2241 _dbus_assert (rule->flags = BUS_MATCH_ARGS); in test_parsing()
2242 _dbus_assert (rule->args != NULL); in test_parsing()
2243 _dbus_assert (rule->args_len == 8); in test_parsing()
2244 _dbus_assert (rule->args[7] != NULL); in test_parsing()
2245 _dbus_assert (rule->args[8] == NULL); in test_parsing()
2246 _dbus_assert (strcmp (rule->args[7], "/foo") == 0); in test_parsing()
2247 _dbus_assert ((rule->arg_lens[7] & BUS_MATCH_ARG_IS_PATH) in test_parsing()
2257 _dbus_assert (rule->flags == BUS_MATCH_ARGS); in test_parsing()
2258 _dbus_assert (rule->args != NULL); in test_parsing()
2259 _dbus_assert (rule->args_len == 1); in test_parsing()
2260 _dbus_assert (strcmp (rule->args[0], "foo") == 0); in test_parsing()
2261 _dbus_assert ((rule->arg_lens[0] & BUS_MATCH_ARG_NAMESPACE) in test_parsing()
2270 _dbus_assert (rule->flags == BUS_MATCH_ARGS); in test_parsing()
2271 _dbus_assert (rule->args != NULL); in test_parsing()
2272 _dbus_assert (rule->args_len == 1); in test_parsing()
2273 _dbus_assert (strcmp (rule->args[0], "foo.bar") == 0); in test_parsing()
2274 _dbus_assert ((rule->arg_lens[0] & BUS_MATCH_ARG_NAMESPACE) in test_parsing()
2282 _dbus_assert (rule == NULL); in test_parsing()
2288 _dbus_assert (rule == NULL); in test_parsing()
2293 _dbus_assert (rule == NULL); in test_parsing()
2296 _dbus_assert (rule == NULL); in test_parsing()
2299 _dbus_assert (rule == NULL); in test_parsing()
2302 _dbus_assert (rule == NULL); in test_parsing()
2306 _dbus_assert (rule == NULL); in test_parsing()
2308 _dbus_assert (rule == NULL); in test_parsing()
2312 _dbus_assert (rule == NULL); in test_parsing()
2314 _dbus_assert (rule == NULL); in test_parsing()
2316 _dbus_assert (rule == NULL); in test_parsing()
2318 _dbus_assert (rule == NULL); in test_parsing()
2322 _dbus_assert (rule == NULL); in test_parsing()
2327 _dbus_assert (rule->flags == BUS_MATCH_PATH_NAMESPACE); in test_parsing()
2328 _dbus_assert (rule->path != NULL); in test_parsing()
2329 _dbus_assert (strcmp (rule->path, "/foo/bar") == 0); in test_parsing()
2336 _dbus_assert (rule == NULL); in test_parsing()
2340 _dbus_assert (rule == NULL); in test_parsing()
2344 _dbus_assert (rule == NULL); in test_parsing()
2346 _dbus_assert (rule == NULL); in test_parsing()
2348 _dbus_assert (rule == NULL); in test_parsing()
2352 _dbus_assert (rule == NULL); in test_parsing()
2356 _dbus_assert (rule == NULL); in test_parsing()
2358 _dbus_assert (rule == NULL); in test_parsing()
2360 _dbus_assert (rule == NULL); in test_parsing()
2366 _dbus_assert (rule->flags == 0); in test_parsing()
2375 _dbus_assert (rule->flags == 0); in test_parsing()
2382 _dbus_assert (rule == NULL); in test_parsing()
2419 _dbus_assert (first != NULL); in test_equality()
2421 _dbus_assert (second != NULL); in test_equality()
2548 _dbus_assert (rule != NULL); in check_matches()
2595 _dbus_assert (message1 != NULL); in test_matching()
2614 _dbus_assert (message2 != NULL); in test_matching()
2670 _dbus_assert (message != NULL); in test_path_match()
2702 _dbus_assert (rule != NULL); in test_path_matching()
2764 _dbus_assert (message1 != NULL); in test_matching_path_namespace()
2769 _dbus_assert (message2 != NULL); in test_matching_path_namespace()
2774 _dbus_assert (message3 != NULL); in test_matching_path_namespace()