unit-tests: Use wrapper for add_listener in bus_t related asserts

This commit is contained in:
Tobias Brunner
2016-06-17 18:48:04 +02:00
parent 5d10ef316d
commit 7c6e0c2979
@@ -183,7 +183,7 @@ do { \
.name = #n, \ .name = #n, \
##__VA_ARGS__ \ ##__VA_ARGS__ \
}; \ }; \
charon->bus->add_listener(charon->bus, &_hook_listener.listener) exchange_test_helper->add_listener(exchange_test_helper, &_hook_listener.listener)
/** /**
* Enforce the most recently initialized hook assertion. * Enforce the most recently initialized hook assertion.
@@ -337,7 +337,7 @@ bool exchange_test_asserts_message(listener_t *this, ike_sa_t *ike_sa,
.rules = _rules, \ .rules = _rules, \
.num_rules = countof(_rules), \ .num_rules = countof(_rules), \
}; \ }; \
charon->bus->add_listener(charon->bus, &_listener.listener); \ exchange_test_helper->add_listener(exchange_test_helper, &_listener.listener); \
}) })
#endif /** EXCHANGE_TEST_ASSERTS_H_ @}*/ #endif /** EXCHANGE_TEST_ASSERTS_H_ @}*/