Home
last modified time | relevance | path

Searched refs:return_val (Results 1 – 25 of 67) sorted by relevance

123

/Zephyr-latest/tests/bluetooth/host/id/bt_id_del/src/
Dmain.c124 bt_conn_lookup_state_le_fake.return_val = &conn_ref; in ZTEST()
178 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
231 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
235 bt_hci_cmd_create_fake.return_val = &net_buff; in ZTEST()
236 bt_hci_cmd_send_sync_fake.return_val = 0; in ZTEST()
283 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
287 bt_hci_cmd_create_fake.return_val = &net_buff; in ZTEST()
288 bt_hci_cmd_send_sync_fake.return_val = 0; in ZTEST()
329 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
335 net_buf_simple_add_fake.return_val = &cp; in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_add/src/
Dmain.c118 bt_conn_lookup_state_le_fake.return_val = &conn_ref; in ZTEST()
172 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
218 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
221 bt_hci_cmd_create_fake.return_val = &net_buff; in ZTEST()
222 bt_hci_cmd_send_sync_fake.return_val = 0; in ZTEST()
267 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
270 net_buf_simple_add_fake.return_val = &cp; in ZTEST()
271 bt_hci_cmd_create_fake.return_val = &net_buff; in ZTEST()
272 bt_hci_cmd_send_sync_fake.return_val = 0; in ZTEST()
325 bt_conn_lookup_state_le_fake.return_val = NULL; in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_le_oob_get_local/src/
Dtest_suite_invalid_inputs.c112 bt_conn_lookup_state_le_fake.return_val = &conn; in ZTEST()
154 bt_le_adv_lookup_legacy_fake.return_val = NULL; in ZTEST()
155 bt_conn_lookup_state_le_fake.return_val = &conn; in ZTEST()
204 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST()
205 bt_conn_lookup_state_le_fake.return_val = &conn; in ZTEST()
257 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST()
258 bt_conn_lookup_state_le_fake.return_val = &conn; in ZTEST()
310 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST()
311 bt_conn_lookup_state_le_fake.return_val = &conn; in ZTEST()
363 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_adv_random_addr/src/
Dtest_suite_invalid_cases.c95 bt_hci_cmd_create_fake.return_val = NULL; in ZTEST()
127 net_buf_simple_add_fake.return_val = &cp; in ZTEST()
128 bt_hci_cmd_create_fake.return_val = &net_buff; in ZTEST()
129 bt_hci_cmd_send_sync_fake.return_val = -1; in ZTEST()
Dmain.c122 net_buf_simple_add_fake.return_val = &cp; in ZTEST()
123 bt_hci_cmd_create_fake.return_val = &net_buff; in ZTEST()
124 bt_hci_cmd_send_sync_fake.return_val = 0; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_private_addr/src/
Dtest_suite_invalid_cases.c54 bt_rand_fake.return_val = -1; in ZTEST()
78 bt_rpa_create_fake.return_val = -1; in ZTEST()
113 bt_hci_cmd_create_fake.return_val = NULL; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_adv_private_addr/src/
Dtest_suite_invalid_cases.c55 bt_rand_fake.return_val = -1; in ZTEST()
89 bt_hci_cmd_create_fake.return_val = NULL; in ZTEST()
117 bt_rpa_create_fake.return_val = -1; in ZTEST()
161 bt_hci_cmd_create_fake.return_val = NULL; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_store/src/
Dmain.c60 bt_settings_store_keys_fake.return_val = 0; in ZTEST()
94 bt_settings_store_keys_fake.return_val = -1; in ZTEST()
127 bt_settings_store_keys_fake.return_val = 0; in ZTEST()
161 bt_settings_store_keys_fake.return_val = -1; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_public_id_addr/src/
Dtest_suite_bt_privacy_enabled.c82 bt_rand_fake.return_val = 0; in ZTEST()
83 bt_smp_irk_get_fake.return_val = -1; in ZTEST()
114 bt_rand_fake.return_val = -1; in ZTEST()
115 bt_smp_irk_get_fake.return_val = -1; in ZTEST()
156 bt_rand_fake.return_val = 0; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_scan_random_addr_check/src/
Dmain.c91 bt_le_adv_lookup_legacy_fake.return_val = NULL; in ZTEST()
120 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST()
150 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST()
184 bt_le_adv_lookup_legacy_fake.return_val = &adv; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_scan_own_addr/src/
Dtest_suite_invalid_inputs.c60 bt_rand_fake.return_val = -1; in ZTEST()
94 bt_hci_cmd_create_fake.return_val = NULL; in ZTEST()
124 bt_rpa_create_fake.return_val = -1; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/crypto/bt_encrypt_be/src/
Dtest_suite_invalid_inputs.c90 psa_import_key_fake.return_val = PSA_ERROR_GENERIC_ERROR; in ZTEST()
114 psa_import_key_fake.return_val = PSA_SUCCESS; in ZTEST()
115 psa_cipher_encrypt_fake.return_val = -EINVAL; in ZTEST()
Dmain.c44 psa_import_key_fake.return_val = PSA_SUCCESS; in ZTEST()
45 psa_cipher_encrypt_fake.return_val = PSA_SUCCESS; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/crypto/bt_encrypt_le/src/
Dtest_suite_invalid_inputs.c90 psa_import_key_fake.return_val = PSA_ERROR_GENERIC_ERROR; in ZTEST()
114 psa_import_key_fake.return_val = PSA_SUCCESS; in ZTEST()
115 psa_cipher_encrypt_fake.return_val = -EINVAL; in ZTEST()
Dmain.c44 psa_import_key_fake.return_val = PSA_SUCCESS; in ZTEST()
45 psa_cipher_encrypt_fake.return_val = PSA_SUCCESS; in ZTEST()
/Zephyr-latest/tests/subsys/openthread/
Dradio_test.c162 set_channel_mock_fake.return_val = 0; in ZTEST()
164 scan_mock_fake.return_val = 0; in ZTEST()
195 set_channel_mock_fake.return_val = 0; in ZTEST()
196 scan_mock_fake.return_val = -EBUSY; in ZTEST()
212 scan_mock_fake.return_val = 0; in ZTEST()
213 set_channel_mock_fake.return_val = 0; in ZTEST()
272 set_channel_mock_fake.return_val = 0; in ZTEST()
290 get_time_mock_fake.return_val = (int64_t)UINT32_MAX * NSEC_PER_USEC + 1000; in ZTEST()
294 get_time_mock_fake.return_val + in ZTEST()
303 set_channel_mock_fake.return_val = 0; in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/sub_sets/
Disoal_test_rx.c52 return sink_sdu_alloc_test_fake.return_val; in custom_sink_sdu_alloc_test()
107 return sink_sdu_emit_test_fake.return_val; in custom_sink_sdu_emit_test()
207 return sink_sdu_write_test_fake.return_val; in custom_sink_sdu_write_test()
870 sink_sdu_alloc_test_fake.return_val = ISOAL_STATUS_OK; in ZTEST()
871 sink_sdu_write_test_fake.return_val = ISOAL_STATUS_OK; in ZTEST()
872 sink_sdu_emit_test_fake.return_val = ISOAL_STATUS_OK; in ZTEST()
1045 sink_sdu_alloc_test_fake.return_val = ISOAL_STATUS_OK; in ZTEST()
1046 sink_sdu_write_test_fake.return_val = ISOAL_STATUS_OK; in ZTEST()
1047 sink_sdu_emit_test_fake.return_val = ISOAL_STATUS_OK; in ZTEST()
1181 sink_sdu_alloc_test_fake.return_val = ISOAL_STATUS_OK; in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/
Dtest_suite_bt_privacy_enabled.c96 bt_rand_fake.return_val = 0; in ZTEST()
97 bt_smp_irk_get_fake.return_val = -1; in ZTEST()
138 bt_rand_fake.return_val = -1; in ZTEST()
139 bt_smp_irk_get_fake.return_val = -1; in ZTEST()
190 bt_rand_fake.return_val = 0; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_le_oob_set_legacy_tk/src/
Dmain.c48 bt_smp_le_oob_set_tk_fake.return_val = 0; in ZTEST()
75 bt_smp_le_oob_set_tk_fake.return_val = -EINVAL; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/crypto/bt_rand/src/
Dmain.c49 bt_hci_le_rand_fake.return_val = 0; in ZTEST()
77 psa_generate_random_fake.return_val = PSA_SUCCESS; in ZTEST()
Dtest_suite_invalid_inputs.c73 bt_hci_le_rand_fake.return_val = -1; in ZTEST()
101 psa_generate_random_fake.return_val = -EIO; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_create_conn_own_addr/src/
Dtest_suite_invalid_inputs.c62 bt_hci_cmd_create_fake.return_val = NULL; in ZTEST()
95 bt_rpa_create_fake.return_val = -1; in ZTEST()
/Zephyr-latest/tests/drivers/regulator/api/src/
Dmain.c50 regulator_parent_fake_dvs_state_set_fake.return_val = 0; in ZTEST()
62 regulator_parent_fake_dvs_state_set_fake.return_val = -ENOTSUP; in ZTEST()
81 regulator_parent_fake_ship_mode_fake.return_val = 0; in ZTEST()
92 regulator_parent_fake_ship_mode_fake.return_val = -ENOTSUP; in ZTEST()
201 regulator_fake_count_voltages_fake.return_val = 10U; in ZTEST()
292 regulator_fake_count_voltages_fake.return_val = 4U; in ZTEST()
313 regulator_fake_count_voltages_fake.return_val = 4U; in ZTEST()
340 regulator_fake_set_voltage_fake.return_val = 0; in ZTEST()
353 regulator_fake_set_voltage_fake.return_val = -EINVAL; in ZTEST()
366 regulator_fake_set_voltage_fake.return_val = 0; in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_le_oob_set_sc_data/src/
Dmain.c50 bt_smp_le_oob_set_sc_data_fake.return_val = 0; in ZTEST()
78 bt_smp_le_oob_set_sc_data_fake.return_val = -EINVAL; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_le_oob_get_sc_data/src/
Dmain.c50 bt_smp_le_oob_get_sc_data_fake.return_val = 0; in ZTEST()
78 bt_smp_le_oob_get_sc_data_fake.return_val = -EINVAL; in ZTEST()

123