Home
last modified time | relevance | path

Searched refs:DECLARE_FAKE_VALUE_FUNC (Results 1 – 25 of 43) sorted by relevance

12

/Zephyr-Core-3.6.0/include/zephyr/drivers/regulator/
Dfake.h16 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *);
17 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *);
18 DECLARE_FAKE_VALUE_FUNC(unsigned int, regulator_fake_count_voltages,
20 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *,
22 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *,
24 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *,
26 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_current_limit,
28 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_current_limit,
30 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *,
32 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *,
[all …]
/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/lwm2m_rd_client/src/
Dstubs.h25 DECLARE_FAKE_VALUE_FUNC(uint8_t, coap_header_get_code, const struct coap_packet *);
30 DECLARE_FAKE_VALUE_FUNC(int, coap_append_option_int, struct coap_packet *, uint16_t, unsigned int);
31 DECLARE_FAKE_VALUE_FUNC(int, coap_packet_append_option, struct coap_packet *, uint16_t,
35 DECLARE_FAKE_VALUE_FUNC(int, coap_packet_append_payload_marker, struct coap_packet *);
36 DECLARE_FAKE_VALUE_FUNC(int, coap_find_options, const struct coap_packet *, uint16_t,
40 DECLARE_FAKE_VALUE_FUNC(uint16_t, coap_next_id);
43 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_start, struct lwm2m_ctx *);
44 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_engine_stop, struct lwm2m_ctx *);
45 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_open_socket, struct lwm2m_ctx *);
46 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_u32, const struct lwm2m_obj_path *, uint32_t *);
[all …]
/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.h26 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_rd_client_pause);
27 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_rd_client_resume);
28 DECLARE_FAKE_VALUE_FUNC(struct lwm2m_message *, find_msg, struct coap_pending *,
31 DECLARE_FAKE_VALUE_FUNC(size_t, coap_pendings_count, struct coap_pending *, size_t);
33 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_send_message_async, struct lwm2m_message *);
36 DECLARE_FAKE_VALUE_FUNC(bool, coap_pending_cycle, struct coap_pending *);
37 DECLARE_FAKE_VALUE_FUNC(int, generate_notify_message, struct lwm2m_ctx *, struct observe_node *,
39 DECLARE_FAKE_VALUE_FUNC(int64_t, engine_observe_shedule_next_event, struct observe_node *, uint16_t,
41 DECLARE_FAKE_VALUE_FUNC(int, handle_request, struct coap_packet *, struct lwm2m_message *);
44 DECLARE_FAKE_VALUE_FUNC(bool, lwm2m_rd_client_is_registred, struct lwm2m_ctx *);
[all …]
/Zephyr-Core-3.6.0/include/zephyr/drivers/can/
Dcan_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_can_start, const struct device *);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_can_stop, const struct device *);
21 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *);
23 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing_data, const struct device *,
26 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *);
28 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t);
30 DECLARE_FAKE_VALUE_FUNC(int, fake_can_send, const struct device *, const struct can_frame *,
33 DECLARE_FAKE_VALUE_FUNC(int, fake_can_add_rx_filter, const struct device *, can_rx_callback_t,
38 DECLARE_FAKE_VALUE_FUNC(int, fake_can_recover, const struct device *, k_timeout_t);
40 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_state, const struct device *, enum can_state *,
[all …]
/Zephyr-Core-3.6.0/include/zephyr/drivers/rtc/
Drtc_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_set_time, const struct device *, const struct rtc_time *);
18 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_get_time, const struct device *, struct rtc_time *);
21 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_supported_fields, const struct device *, uint16_t,
23 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_time, const struct device *, uint16_t, uint16_t,
25 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_time, const struct device *, uint16_t, uint16_t,
27 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_is_pending, const struct device *, uint16_t);
28 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_callback, const struct device *uint16_t,
33 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_update_set_callback, const struct device *rtc_alarm_callback,
38 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_set_calibration, const struct device *, int32_t);
39 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_get_calibration, const struct device *, int32_t *);
/Zephyr-Core-3.6.0/tests/bluetooth/audio/mocks/include/
Dbap_unicast_server.h18 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_config, struct bt_conn *,
22 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_reconfig, struct bt_bap_stream *,
25 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_qos, struct bt_bap_stream *,
27 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_enable, struct bt_bap_stream *,
29 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_start, struct bt_bap_stream *,
31 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_metadata, struct bt_bap_stream *,
33 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_disable, struct bt_bap_stream *,
35 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_stop, struct bt_bap_stream *,
37 DECLARE_FAKE_VALUE_FUNC(int, mock_bap_unicast_server_cb_release, struct bt_bap_stream *,
Dmock_kernel.h17 DECLARE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *);
18 DECLARE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *,
20 DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
Dgatt.h16 DECLARE_FAKE_VALUE_FUNC(int, mock_bt_gatt_notify_cb, struct bt_conn *,
18 DECLARE_FAKE_VALUE_FUNC(bool, mock_bt_gatt_is_subscribed, struct bt_conn *,
/Zephyr-Core-3.6.0/tests/bluetooth/host/id/mocks/
Dsmp.h22 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_irk_get, uint8_t *, uint8_t *);
23 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_tk, struct bt_conn *, const uint8_t *);
24 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_generate_sc_data, struct bt_le_oob_sc_data *);
25 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_set_sc_data, struct bt_conn *,
27 DECLARE_FAKE_VALUE_FUNC(int, bt_smp_le_oob_get_sc_data, struct bt_conn *,
Dadv.h23 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable, struct bt_le_ext_adv *, bool);
24 DECLARE_FAKE_VALUE_FUNC(struct bt_le_ext_adv *, bt_le_adv_lookup_legacy);
25 DECLARE_FAKE_VALUE_FUNC(uint8_t, bt_le_ext_adv_get_index, struct bt_le_ext_adv *);
26 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_legacy, struct bt_le_ext_adv *, bool);
27 DECLARE_FAKE_VALUE_FUNC(int, bt_le_adv_set_enable_ext, struct bt_le_ext_adv *, bool,
Dkernel.h18 DECLARE_FAKE_VALUE_FUNC(k_ticks_t, z_timeout_remaining, const struct _timeout *);
19 DECLARE_FAKE_VALUE_FUNC(int, k_work_schedule, struct k_work_delayable *, k_timeout_t);
20 DECLARE_FAKE_VALUE_FUNC(bool, k_work_cancel_delayable_sync, struct k_work_delayable *,
23 DECLARE_FAKE_VALUE_FUNC(int, k_work_submit, struct k_work *);
Dhci_core.h17 DECLARE_FAKE_VALUE_FUNC(int, bt_unpair, uint8_t, const bt_addr_le_t *);
18 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t);
19 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **);
Dnet_buf.h18 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add, struct net_buf_simple *, size_t);
19 DECLARE_FAKE_VALUE_FUNC(uint8_t *, net_buf_simple_add_u8, struct net_buf_simple *, uint8_t);
20 DECLARE_FAKE_VALUE_FUNC(void *, net_buf_simple_add_mem, struct net_buf_simple *, const void *,
Dconn.h20 DECLARE_FAKE_VALUE_FUNC(int, bt_le_create_conn_cancel);
21 DECLARE_FAKE_VALUE_FUNC(struct bt_conn *, bt_conn_lookup_state_le, uint8_t, const bt_addr_le_t *,
Dscan.h13 DECLARE_FAKE_VALUE_FUNC(int, bt_le_scan_set_enable, uint8_t);
/Zephyr-Core-3.6.0/tests/bluetooth/host/crypto/mocks/
Dhmac_prng.h18 DECLARE_FAKE_VALUE_FUNC(int, tc_hmac_prng_init, TCHmacPrng_t, const uint8_t *, unsigned int);
19 DECLARE_FAKE_VALUE_FUNC(int, tc_hmac_prng_reseed, TCHmacPrng_t, const uint8_t *, unsigned int,
21 DECLARE_FAKE_VALUE_FUNC(int, tc_hmac_prng_generate, uint8_t *, unsigned int, TCHmacPrng_t);
Daes.h17 DECLARE_FAKE_VALUE_FUNC(int, tc_aes_encrypt, uint8_t *, const uint8_t *, const TCAesKeySched_t);
18 DECLARE_FAKE_VALUE_FUNC(int, tc_aes128_set_encrypt_key, TCAesKeySched_t, const uint8_t *);
Dhci_core.h14 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_le_rand, void *, size_t);
/Zephyr-Core-3.6.0/include/zephyr/drivers/eeprom/
Deeprom_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_read, const struct device *, off_t, void *, size_t);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_write, const struct device *, off_t, const void *, size_t);
21 DECLARE_FAKE_VALUE_FUNC(size_t, fake_eeprom_size, const struct device *);
/Zephyr-Core-3.6.0/tests/net/lib/coap_client/src/
Dstubs.h24 DECLARE_FAKE_VALUE_FUNC(uint32_t, z_impl_sys_rand32_get);
26 DECLARE_FAKE_VALUE_FUNC(ssize_t, z_impl_zsock_recvfrom, int, void *, size_t, int, struct sockaddr *,
28 DECLARE_FAKE_VALUE_FUNC(ssize_t, z_impl_zsock_sendto, int, void*, size_t, int,
/Zephyr-Core-3.6.0/tests/bluetooth/host/keys/mocks/
Dsettings_store.h16 DECLARE_FAKE_VALUE_FUNC(int, bt_settings_store_keys, uint8_t, struct bt_addr_le_t *, const void *,
18 DECLARE_FAKE_VALUE_FUNC(int, bt_settings_delete_keys, uint8_t, struct bt_addr_le_t *);
Dsettings.h19 DECLARE_FAKE_VALUE_FUNC(int, bt_settings_decode_key, const char *, bt_addr_le_t *);
20 DECLARE_FAKE_VALUE_FUNC(int, settings_name_next, const char *, const char **);
/Zephyr-Core-3.6.0/tests/subsys/testsuite/fff_fake_contexts/src/fakes/
Dcalled_API.h22 DECLARE_FAKE_VALUE_FUNC(int, called_API_open, const struct called_API_info **);
23 DECLARE_FAKE_VALUE_FUNC(int, called_API_close, const struct called_API_info *);
/Zephyr-Core-3.6.0/tests/bluetooth/host/ecc/mocks/
Dhci_core.h15 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, bt_hci_cmd_create, uint16_t, uint8_t);
16 DECLARE_FAKE_VALUE_FUNC(int, bt_hci_cmd_send_sync, uint16_t, struct net_buf *, struct net_buf **);
/Zephyr-Core-3.6.0/tests/bluetooth/host/buf/mocks/
Dnet_buf.h16 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, net_buf_alloc_fixed, struct net_buf_pool *, k_timeout_t);
18 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, net_buf_ref, struct net_buf *);

12