/Zephyr-latest/tests/drivers/i2c/i2c_emul/src/ |
D | test_forwarding_pio.cpp | 32 zexpect_equal(0, target_read_requested_0_fake.call_count); in ZTEST() 33 zexpect_equal(0, target_read_processed_0_fake.call_count); in ZTEST() 36 zexpect_equal(expected_call_count, target_write_requested_0_fake.call_count, in ZTEST() 38 target_write_requested_0_fake.call_count); in ZTEST() 39 zexpect_equal(expected_call_count, target_write_received_0_fake.call_count, in ZTEST() 41 target_write_received_0_fake.call_count); in ZTEST() 49 zexpect_equal(expected_call_count, target_stop_0_fake.call_count, in ZTEST() 51 target_stop_0_fake.call_count); in ZTEST() 81 zexpect_equal(expected_call_count, target_read_requested_0_fake.call_count, in ZTEST() 83 target_read_requested_0_fake.call_count); in ZTEST() [all …]
|
D | test_forwarding_buf.cpp | 37 zexpect_equal(0, target_buf_read_requested_0_fake.call_count); in ZTEST() 38 zexpect_equal(1, target_buf_write_received_0_fake.call_count); in ZTEST() 39 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST() 62 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST() 63 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST() 64 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST() 74 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST() 75 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST() 76 zexpect_equal(0, target_stop_0_fake.call_count); in ZTEST() 91 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST() [all …]
|
D | test_fowarding_common.cpp | 61 zexpect_equal(0, target_read_requested_0_fake.call_count); in ZTEST() 62 zexpect_equal(0, target_read_processed_0_fake.call_count); in ZTEST() 63 zexpect_equal(0, target_write_requested_0_fake.call_count); in ZTEST() 64 zexpect_equal(0, target_write_received_0_fake.call_count); in ZTEST() 65 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST() 66 zexpect_equal(0, target_buf_read_requested_0_fake.call_count); in ZTEST() 67 zexpect_equal(0, target_stop_0_fake.call_count); in ZTEST() 76 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST()
|
/Zephyr-latest/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 …]
|
/Zephyr-latest/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-latest/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()
|
/Zephyr-latest/tests/bluetooth/audio/ascs/include/ |
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-latest/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-latest/tests/drivers/regulator/api/src/ |
D | main.c | 55 zassert_equal(regulator_parent_fake_dvs_state_set_fake.call_count, 1U); in ZTEST() 67 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() 155 zassert_equal(regulator_fake_enable_fake.call_count, 0U); in ZTEST() 159 zassert_equal(regulator_fake_disable_fake.call_count, 0U); in ZTEST() 164 zassert_equal(regulator_fake_disable_fake.call_count, 1U); in ZTEST() 169 zassert_equal(regulator_fake_enable_fake.call_count, 1U); in ZTEST() 174 zassert_equal(regulator_fake_enable_fake.call_count, 2U); in ZTEST() 179 zassert_equal(regulator_fake_disable_fake.call_count, 2U); in ZTEST() [all …]
|
/Zephyr-latest/tests/drivers/comparator/shell/src/ |
D | test.c | 179 zassert_equal(comp_fake_comp_get_output_fake.call_count, 1); in ZTEST() 187 zassert_equal(comp_fake_comp_get_output_fake.call_count, 2); in ZTEST() 195 zassert_equal(comp_fake_comp_get_output_fake.call_count, 3); in ZTEST() 211 zassert_equal(comp_fake_comp_set_trigger_fake.call_count, 1); in ZTEST() 217 zassert_equal(comp_fake_comp_set_trigger_fake.call_count, 2); in ZTEST() 223 zassert_equal(comp_fake_comp_set_trigger_fake.call_count, 3); in ZTEST() 229 zassert_equal(comp_fake_comp_set_trigger_fake.call_count, 4); in ZTEST() 235 zassert_equal(comp_fake_comp_set_trigger_fake.call_count, 4); in ZTEST() 242 zassert_equal(comp_fake_comp_set_trigger_fake.call_count, 5); in ZTEST() 259 zassert_equal(comp_fake_comp_set_trigger_callback_fake.call_count, 1); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/cs/bt_le_cs_step_data_parse/src/ |
D | main.c | 44 zassert_equal(bt_le_cs_step_data_parse_func_fake.call_count, 0); in ZTEST() 70 zassert_equal(1, bt_le_cs_step_data_parse_func_fake.call_count, "called %d", in ZTEST() 71 bt_le_cs_step_data_parse_func_fake.call_count); in ZTEST() 99 zassert_equal(1, bt_le_cs_step_data_parse_func_fake.call_count, "called %d", in ZTEST() 100 bt_le_cs_step_data_parse_func_fake.call_count); in ZTEST() 169 zassert_equal(5, bt_le_cs_step_data_parse_func_fake.call_count, "called %d", in ZTEST() 170 bt_le_cs_step_data_parse_func_fake.call_count); in ZTEST()
|
/Zephyr-latest/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()
|
/Zephyr-latest/tests/net/offloaded_netdev/src/ |
D | main.c | 64 atomic_t call_count = ATOMIC_INIT(0); variable 72 atomic_inc(&call_count); in offload_impl_enable() 138 atomic_set(&call_count, 0); in net_offloaded_netdev_before() 154 zassert_equal(atomic_get(&call_count), 1, in ZTEST() 165 zassert_equal(atomic_get(&call_count), 2, in ZTEST() 185 zassert_equal(atomic_get(&call_count), 0, in ZTEST() 196 zassert_equal(atomic_get(&call_count), 0, in ZTEST() 216 zassert_equal(atomic_get(&call_count), 1, in ZTEST() 227 zassert_equal(atomic_get(&call_count), 2, in ZTEST() 247 zassert_equal(atomic_get(&call_count), 0, in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/ |
D | test_broadcast_reception.c | 177 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in test_broadcast_reception_start() 192 mock_cap_commander_broadcast_reception_stop_cb_fake.call_count); in test_broadcast_reception_stop() 246 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() 257 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() 271 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() 285 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() 301 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() 314 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() 327 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() 340 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F() [all …]
|
/Zephyr-latest/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-latest/tests/net/lib/wifi_credentials_backend_psa/src/ |
D | main.c | 137 zassert_equal(psa_export_key_fake.call_count, CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES, in ZTEST() 139 zassert_equal(wifi_credentials_cache_ssid_fake.call_count, in ZTEST() 163 zassert_equal(psa_import_key_fake.call_count, 2, "Import key call count mismatch"); in ZTEST() 164 zassert_equal(psa_set_key_id_fake.call_count, 2, "Set key ID call count mismatch"); in ZTEST() 165 zassert_equal(psa_set_key_usage_flags_fake.call_count, 2, in ZTEST() 167 zassert_equal(psa_set_key_lifetime_fake.call_count, 2, in ZTEST() 169 zassert_equal(psa_set_key_algorithm_fake.call_count, 2, in ZTEST() 171 zassert_equal(psa_set_key_type_fake.call_count, 2, "Set key type call count mismatch"); in ZTEST() 172 zassert_equal(psa_set_key_bits_fake.call_count, 2, "Set key bits call count mismatch"); in ZTEST() 198 zassert_equal(psa_export_key_fake.call_count, 2, "Export key call count mismatch"); in ZTEST() [all …]
|