
Classes | |
| struct | TestData |
| struct | SlotObj |
Macros | |
| #define | signal_test1 SIGNAL(test, 1, TestData *) |
| #define | signal_test2 SIGNAL(test, 2, TestData *) |
| #define | DEFINE_TEST_SLOT(func_name) |
| #define | test_signal_0 SIGNAL(test, func_0, TestData *) |
| #define | test_signal_1 SIGNAL(test, func_1, TestData *) |
| #define | test_signal_2 SIGNAL(test, func_2, TestData *) |
| #define | test_signal_3 SIGNAL(test, func_3, TestData *) |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
Functions | |
| void | test_data_init (TestData *data) |
| void | slot_obj_init (SlotObj *obj) |
| void | test1_slot (gpointer obj, TestData *user_data) |
| void | test2_slot (gpointer obj, TestData *user_data) |
| Test (basic_signal_slots, when_the_signal_is_emitted_then_the_connected_slot_is_executed) | |
| Test (basic_signal_slots, abort_when_trying_to_connect_multiple_times_the_same_connection,.signal=SIGABRT) | |
| Test (basic_signal_slots, abort_when_trying_to_disconnect_multiple_times_the_same_connection,.signal=SIGABRT) | |
| Test (basic_signal_slots, when_slot_is_disconnected_from_a_signal_and_the_signal_is_emitted_then_the_slot_should_not_be_executed) | |
| Test (basic_signal_slots, when_disconnect_the_connected_slot_from_a_signal_then_the_signal_is_unregistered) | |
| Test (basic_signal_slots, abort_when_trying_to_disconnect_a_connected_slot_with_different_slot_object_then_slot_is_not_disconnected,.signal=SIGABRT) | |
| void | _connect_a_signal_with_all_test_slots (SignalSlotConnector *ssc, Signal s) |
| void | _disconnect_all_test_slots_from_a_signal (SignalSlotConnector *ssc, Signal s) |
| Test (multiple_signals_slots, given_one_signal_with_multiple_slots_when_the_signal_is_emitted_then_the_slots_are_executed) | |
| Test (multiple_signals_slots, given_a_signal_with_multiple_slots_when_slots_are_disconnected_1_by_1_then_remaining_slots_are_still_executed) | |
| void | setup (void) |
| void | teardown (void) |
| TestSuite (multiple_signals_slots,.init=setup,.fini=teardown) | |
| TestSuite (basic_signal_slots,.init=setup,.fini=teardown) | |
Variables | |
| Signal | signals [4] |
| Slot | slots [4] |
| SlotObj | slot_objects [4] |
| #define ARRAY_SIZE | ( | a | ) | (sizeof(a) / sizeof((a)[0])) |
| #define DEFINE_TEST_SLOT | ( | func_name | ) |
| void _connect_a_signal_with_all_test_slots | ( | SignalSlotConnector * | ssc, |
| Signal | s | ||
| ) |
| void _disconnect_all_test_slots_from_a_signal | ( | SignalSlotConnector * | ssc, |
| Signal | s | ||
| ) |
| void setup | ( | void | ) |
| void slot_obj_init | ( | SlotObj * | obj | ) |
| void teardown | ( | void | ) |
| Test | ( | basic_signal_slots | , |
| abort_when_trying_to_connect_multiple_times_the_same_connection | , | ||
| . | signal = SIGABRT |
||
| ) |
| Test | ( | basic_signal_slots | , |
| abort_when_trying_to_disconnect_a_connected_slot_with_different_slot_object_then_slot_is_not_disconnected | , | ||
| . | signal = SIGABRT |
||
| ) |
| Test | ( | basic_signal_slots | , |
| abort_when_trying_to_disconnect_multiple_times_the_same_connection | , | ||
| . | signal = SIGABRT |
||
| ) |
| Test | ( | basic_signal_slots | , |
| when_disconnect_the_connected_slot_from_a_signal_then_the_signal_is_unregistered | |||
| ) |
| Test | ( | basic_signal_slots | , |
| when_slot_is_disconnected_from_a_signal_and_the_signal_is_emitted_then_the_slot_should_not_be_executed | |||
| ) |
| Test | ( | basic_signal_slots | , |
| when_the_signal_is_emitted_then_the_connected_slot_is_executed | |||
| ) |
| Test | ( | multiple_signals_slots | , |
| given_a_signal_with_multiple_slots_when_slots_are_disconnected_1_by_1_then_remaining_slots_are_still_executed | |||
| ) |
| Test | ( | multiple_signals_slots | , |
| given_one_signal_with_multiple_slots_when_the_signal_is_emitted_then_the_slots_are_executed | |||
| ) |
| void test1_slot | ( | gpointer | obj, |
| TestData * | user_data | ||
| ) |
| void test2_slot | ( | gpointer | obj, |
| TestData * | user_data | ||
| ) |
| void test_data_init | ( | TestData * | data | ) |
| Signal signals[4] |
| SlotObj slot_objects[4] |