/Zephyr-Core-3.5.0/tests/bluetooth/audio/mocks/include/ |
D | bap_stream_expects.h | 19 zexpect_call_count(func_name, 1, mock_bap_stream_configured_cb_fake.call_count); \ 21 if (mock_bap_stream_configured_cb_fake.call_count > 0) { \ 37 zexpect_call_count(func_name, 0, mock_bap_stream_configured_cb_fake.call_count); in expect_bt_bap_stream_ops_configured_not_called() 44 zexpect_call_count(func_name, 1, mock_bap_stream_qos_set_cb_fake.call_count); in expect_bt_bap_stream_ops_qos_set_called_once() 46 if (mock_bap_stream_qos_set_cb_fake.call_count > 0) { in expect_bt_bap_stream_ops_qos_set_called_once() 56 zexpect_call_count(func_name, 0, mock_bap_stream_qos_set_cb_fake.call_count); in expect_bt_bap_stream_ops_qos_set_not_called() 63 zexpect_call_count(func_name, 1, mock_bap_stream_enabled_cb_fake.call_count); in expect_bt_bap_stream_ops_enabled_called_once() 65 if (mock_bap_stream_enabled_cb_fake.call_count > 0) { in expect_bt_bap_stream_ops_enabled_called_once() 75 zexpect_call_count(func_name, 0, mock_bap_stream_enabled_cb_fake.call_count); in expect_bt_bap_stream_ops_enabled_not_called() 83 zexpect_call_count(func_name, 1, mock_bap_stream_metadata_updated_cb_fake.call_count); in expect_bt_bap_stream_ops_metadata_updated_called_once() [all …]
|
D | bap_unicast_server_expects.h | 19 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_config_fake.call_count); \ 45 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_reconfig_fake.call_count); \ 66 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_qos_fake.call_count); \ 82 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_enable_fake.call_count); \ 102 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_metadata_fake.call_count); \ 122 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_disable_fake.call_count); \ 134 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_release_fake.call_count); \ 146 zexpect_call_count(func_name, 2, mock_bap_unicast_server_cb_release_fake.call_count); \ 164 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_start_fake.call_count); \ 176 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_stop_fake.call_count); \ [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/mocks/ |
D | scan_expects.c | 12 void expect_call_count_bt_le_scan_set_enable(int call_count, uint8_t args_history[]) in expect_call_count_bt_le_scan_set_enable() argument 16 zassert_equal(bt_le_scan_set_enable_fake.call_count, call_count, in expect_call_count_bt_le_scan_set_enable() 19 for (size_t i = 0; i < call_count; i++) { in expect_call_count_bt_le_scan_set_enable() 29 zassert_equal(bt_le_scan_set_enable_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_le_scan_set_enable()
|
D | addr_expects.c | 12 void expect_call_count_bt_addr_le_create_static(int call_count) in expect_call_count_bt_addr_le_create_static() argument 16 zassert_equal(bt_addr_le_create_static_fake.call_count, call_count, in expect_call_count_bt_addr_le_create_static() 27 zassert_equal(bt_addr_le_create_static_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_addr_le_create_static()
|
D | hci_core_expects.c | 17 zassert_equal(bt_unpair_fake.call_count, 1, "'%s()' was called more than once", func_name); in expect_single_call_bt_unpair() 35 zassert_equal(bt_unpair_fake.call_count, 0, "'%s()' was called unexpectedly", func_name); in expect_not_called_bt_unpair() 42 zassert_equal(bt_hci_cmd_create_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_hci_cmd_create() 55 zassert_equal(bt_hci_cmd_create_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_hci_cmd_create() 63 zassert_equal(bt_hci_cmd_send_sync_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_hci_cmd_send_sync() 74 zassert_equal(bt_hci_cmd_send_sync_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_hci_cmd_send_sync()
|
D | settings_expects.c | 16 zassert_equal(bt_settings_store_id_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_settings_store_id() 24 zassert_equal(bt_settings_store_id_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_settings_store_id() 32 zassert_equal(bt_settings_store_irk_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_settings_store_irk() 40 zassert_equal(bt_settings_store_irk_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_settings_store_irk()
|
D | adv_expects.c | 16 zassert_equal(bt_le_adv_lookup_legacy_fake.call_count, 1, in expect_single_call_bt_le_adv_lookup_legacy() 24 zassert_equal(bt_le_adv_lookup_legacy_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_le_adv_lookup_legacy() 32 zassert_equal(bt_le_ext_adv_foreach_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_le_ext_adv_foreach() 43 zassert_equal(bt_le_ext_adv_foreach_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_le_ext_adv_foreach()
|
D | net_buf_expects.c | 17 zassert_equal(net_buf_unref_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_net_buf_unref() 28 zassert_equal(net_buf_unref_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_net_buf_unref() 36 zassert_equal(net_buf_simple_add_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_net_buf_simple_add() 49 zassert_equal(net_buf_simple_add_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_net_buf_simple_add()
|
D | keys_expects.c | 16 zassert_equal(bt_keys_find_irk_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_keys_find_irk() 29 zassert_equal(bt_keys_find_irk_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_keys_find_irk() 37 zassert_equal(bt_keys_foreach_type_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_keys_foreach_type() 50 zassert_equal(bt_keys_foreach_type_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_keys_foreach_type()
|
D | conn_expects.c | 17 zassert_equal(bt_conn_lookup_state_le_fake.call_count, 1, in expect_single_call_bt_conn_lookup_state_le() 32 zassert_equal(bt_conn_lookup_state_le_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_conn_lookup_state_le() 40 zassert_equal(bt_conn_unref_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_conn_unref() 51 zassert_equal(bt_conn_unref_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_conn_unref()
|
D | smp_expects.c | 16 zassert_equal(bt_smp_le_oob_generate_sc_data_fake.call_count, 1, in expect_single_call_bt_smp_le_oob_generate_sc_data() 24 zassert_equal(bt_smp_le_oob_generate_sc_data_fake.call_count, 0, in expect_not_called_bt_smp_le_oob_generate_sc_data() 32 zassert_equal(bt_smp_le_oob_set_tk_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_smp_le_oob_set_tk() 47 zassert_equal(bt_smp_le_oob_set_sc_data_fake.call_count, 1, in expect_single_call_bt_smp_le_oob_set_sc_data() 64 zassert_equal(bt_smp_le_oob_get_sc_data_fake.call_count, 1, in expect_single_call_bt_smp_le_oob_get_sc_data()
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/crypto/mocks/ |
D | hci_core_expects.c | 11 void expect_call_count_bt_hci_le_rand(int call_count, uint8_t args_history[]) in expect_call_count_bt_hci_le_rand() argument 15 zassert_equal(bt_hci_le_rand_fake.call_count, call_count, in expect_call_count_bt_hci_le_rand() 18 for (size_t i = 0; i < call_count; i++) { in expect_call_count_bt_hci_le_rand() 31 zassert_equal(bt_hci_le_rand_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_hci_le_rand()
|
D | hmac_prng_expects.c | 15 zassert_equal(tc_hmac_prng_init_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_tc_hmac_prng_init() 31 zassert_equal(tc_hmac_prng_reseed_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_tc_hmac_prng_reseed() 47 void expect_call_count_tc_hmac_prng_generate(int call_count, uint8_t *out, unsigned int outlen, in expect_call_count_tc_hmac_prng_generate() argument 52 zassert_equal(tc_hmac_prng_generate_fake.call_count, call_count, in expect_call_count_tc_hmac_prng_generate()
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/buf/mocks/ |
D | net_buf_expects.c | 16 zassert_equal(net_buf_alloc_fixed_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_net_buf_alloc() 30 zassert_equal(net_buf_alloc_fixed_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_net_buf_alloc() 38 zassert_equal(net_buf_simple_reserve_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_net_buf_reserve() 52 zassert_equal(net_buf_simple_reserve_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_net_buf_reserve() 60 zassert_equal(net_buf_ref_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_net_buf_ref() 71 zassert_equal(net_buf_ref_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_net_buf_ref()
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/data/bt_data_parse/src/ |
D | main.c | 39 zassert_equal(bt_data_parse_func_fake.call_count, 0); in ZTEST() 69 zassert_equal(2, bt_data_parse_func_fake.call_count, in ZTEST() 70 "called %d", bt_data_parse_func_fake.call_count); in ZTEST() 101 zassert_equal(3, bt_data_parse_func_fake.call_count, in ZTEST() 102 "called %d", bt_data_parse_func_fake.call_count); in ZTEST() 130 zassert_equal(1, bt_data_parse_func_fake.call_count, in ZTEST() 131 "called %d", bt_data_parse_func_fake.call_count); in ZTEST() 192 zassert_equal(2, bt_data_parse_func_fake.call_count, in ZTEST() 193 "called %d", bt_data_parse_func_fake.call_count); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/net/offloaded_netdev/src/ |
D | main.c | 55 atomic_t call_count = ATOMIC_INIT(0); variable 63 atomic_inc(&call_count); in offload_impl_enable() 129 atomic_set(&call_count, 0); in net_offloaded_netdev_before() 145 zassert_equal(atomic_get(&call_count), 1, in ZTEST() 156 zassert_equal(atomic_get(&call_count), 2, in ZTEST() 176 zassert_equal(atomic_get(&call_count), 0, in ZTEST() 187 zassert_equal(atomic_get(&call_count), 0, in ZTEST() 207 zassert_equal(atomic_get(&call_count), 1, in ZTEST() 218 zassert_equal(atomic_get(&call_count), 2, in ZTEST() 238 zassert_equal(atomic_get(&call_count), 0, in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/ecc/mocks/ |
D | hci_core_expects.c | 17 zassert_equal(bt_hci_cmd_create_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_hci_cmd_create() 30 zassert_equal(bt_hci_cmd_create_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_hci_cmd_create() 38 zassert_equal(bt_hci_cmd_send_sync_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_hci_cmd_send_sync() 49 zassert_equal(bt_hci_cmd_send_sync_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_hci_cmd_send_sync()
|
/Zephyr-Core-3.5.0/tests/drivers/regulator/api/src/ |
D | main.c | 47 zassert_equal(regulator_parent_fake_dvs_state_set_fake.call_count, 1U); in ZTEST() 60 zassert_equal(regulator_parent_fake_dvs_state_set_fake.call_count, 1U); in ZTEST() 85 zassert_equal(regulator_parent_fake_ship_mode_fake.call_count, 1U); in ZTEST() 96 zassert_equal(regulator_parent_fake_ship_mode_fake.call_count, 1U); in ZTEST() 147 zassert_equal(regulator_fake_enable_fake.call_count, 0U); in ZTEST() 151 zassert_equal(regulator_fake_disable_fake.call_count, 0U); in ZTEST() 156 zassert_equal(regulator_fake_disable_fake.call_count, 1U); in ZTEST() 161 zassert_equal(regulator_fake_enable_fake.call_count, 1U); in ZTEST() 166 zassert_equal(regulator_fake_enable_fake.call_count, 2U); in ZTEST() 171 zassert_equal(regulator_fake_disable_fake.call_count, 2U); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/keys/mocks/ |
D | settings_expects.c | 16 zassert_equal(bt_settings_encode_key_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_settings_encode_key_with_not_null_key() 34 zassert_equal(bt_settings_encode_key_fake.call_count, 1, in expect_single_call_bt_settings_encode_key_with_null_key() 36 bt_settings_encode_key_fake.call_count); in expect_single_call_bt_settings_encode_key_with_null_key() 53 zassert_equal(bt_settings_encode_key_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_settings_encode_key()
|
D | settings_store_expects.c | 17 zassert_equal(bt_settings_delete_keys_fake.call_count, 1, in expect_single_call_bt_settings_delete_keys() 25 zassert_equal(bt_settings_store_keys_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_settings_store_keys() 38 zassert_equal(bt_settings_store_keys_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_settings_store_keys()
|
D | id_expects.c | 16 zassert_equal(bt_id_del_fake.call_count, 1, "'%s()' was called more than once", in expect_single_call_bt_id_del() 27 zassert_equal(bt_id_del_fake.call_count, 0, "'%s()' was called unexpectedly", in expect_not_called_bt_id_del()
|
/Zephyr-Core-3.5.0/tests/drivers/rtc/shell/src/ |
D | main.c | 75 zassert_equal(rtc_fake_set_time_fake.call_count, 1, "set_time not called"); in assert_set_time() 96 zassert_equal(rtc_fake_get_time_fake.call_count, 1, "get_time not called"); in ZTEST() 108 zassert_equal(rtc_fake_get_time_fake.call_count, 1, "get_time not called"); in ZTEST() 120 zassert_equal(rtc_fake_get_time_fake.call_count, 1, "get_time not called"); in ZTEST() 135 zassert_equal(rtc_fake_get_time_fake.call_count, 1, "get_time not called"); in ZTEST() 151 zassert_equal(rtc_fake_get_time_fake.call_count, 1, "get_time not called"); in ZTEST() 166 zassert_equal(rtc_fake_get_time_fake.call_count, 1, "get_time not called"); in ZTEST() 181 zassert_equal(rtc_fake_get_time_fake.call_count, 1, "get_time not called"); in ZTEST() 182 zassert_equal(rtc_fake_set_time_fake.call_count, 0, "set_time called"); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/subsys/openthread/ |
D | radio_test.c | 167 zassert_equal(1, scan_mock_fake.call_count); in ZTEST() 170 zassert_equal(1, set_channel_mock_fake.call_count); in ZTEST() 177 zassert_equal(1, otPlatRadioEnergyScanDone_fake.call_count); in ZTEST() 200 zassert_equal(1, scan_mock_fake.call_count); in ZTEST() 203 zassert_equal(1, set_channel_mock_fake.call_count); in ZTEST() 216 zassert_equal(1, scan_mock_fake.call_count); in ZTEST() 219 zassert_equal(1, set_channel_mock_fake.call_count); in ZTEST() 227 zassert_equal(1, otPlatRadioEnergyScanDone_fake.call_count); in ZTEST() 274 zassert_equal(1, set_channel_mock_fake.call_count); in ZTEST() 276 zassert_equal(1, set_txpower_mock_fake.call_count); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/can/shell/src/ |
D | main.c | 98 zassert_equal(fake_can_start_fake.call_count, 1, "start function not called"); in ZTEST() 108 zassert_equal(fake_can_stop_fake.call_count, 1, "stop function not called"); in ZTEST() 118 zassert_equal(fake_can_get_max_filters_fake.call_count, 2, in ZTEST() 120 zassert_equal(fake_can_get_capabilities_fake.call_count, 1, in ZTEST() 122 zassert_equal(fake_can_get_state_fake.call_count, 1, "get_state function not called"); in ZTEST() 132 zassert_equal(fake_can_set_timing_fake.call_count, 0, "set_timing function called"); in ZTEST() 149 zassert_equal(fake_can_set_timing_fake.call_count, 1, "set_timing function not called"); in can_shell_test_bitrate() 173 zassert_equal(fake_can_set_timing_data_fake.call_count, 0, in ZTEST() 193 zassert_equal(fake_can_set_timing_data_fake.call_count, 1, in can_shell_test_dbitrate() 216 zassert_equal(fake_can_set_mode_fake.call_count, 0, "set_mode function called"); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/eeprom/shell/src/ |
D | main.c | 64 zassert_equal(fake_eeprom_write_fake.call_count, 1); in ZTEST() 71 zassert_equal(fake_eeprom_read_fake.call_count, 1); in ZTEST() 90 zassert_equal(fake_eeprom_write_fake.call_count, 1); in ZTEST() 97 zassert_equal(fake_eeprom_read_fake.call_count, 1); in ZTEST() 115 zassert_equal(fake_eeprom_read_fake.call_count, 2); in ZTEST() 137 zassert_equal(fake_eeprom_size_fake.call_count, 1); in ZTEST() 159 zassert_equal(fake_eeprom_write_fake.call_count, 1); in ZTEST() 166 zassert_equal(fake_eeprom_read_fake.call_count, 1); in ZTEST()
|