Home
last modified time | relevance | path

Searched refs:call_count (Results 1 – 25 of 80) sorted by relevance

1234

/Zephyr-latest/tests/drivers/i2c/i2c_emul/src/
Dtest_forwarding_pio.cpp28 zexpect_equal(0, target_read_requested_0_fake.call_count); in ZTEST()
29 zexpect_equal(0, target_read_processed_0_fake.call_count); in ZTEST()
32 zexpect_equal(expected_call_count, target_write_requested_0_fake.call_count, in ZTEST()
34 target_write_requested_0_fake.call_count); in ZTEST()
35 zexpect_equal(expected_call_count, target_write_received_0_fake.call_count, in ZTEST()
37 target_write_received_0_fake.call_count); in ZTEST()
45 zexpect_equal(expected_call_count, target_stop_0_fake.call_count, in ZTEST()
47 target_stop_0_fake.call_count); in ZTEST()
77 zexpect_equal(expected_call_count, target_read_requested_0_fake.call_count, in ZTEST()
79 target_read_requested_0_fake.call_count); in ZTEST()
[all …]
Dtest_forwarding_buf.cpp33 zexpect_equal(0, target_buf_read_requested_0_fake.call_count); in ZTEST()
34 zexpect_equal(1, target_buf_write_received_0_fake.call_count); in ZTEST()
35 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST()
58 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST()
59 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST()
60 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST()
70 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST()
71 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST()
72 zexpect_equal(0, target_stop_0_fake.call_count); in ZTEST()
87 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST()
[all …]
Dtest_fowarding_common.cpp59 zexpect_equal(0, target_read_requested_0_fake.call_count); in ZTEST()
60 zexpect_equal(0, target_read_processed_0_fake.call_count); in ZTEST()
61 zexpect_equal(0, target_write_requested_0_fake.call_count); in ZTEST()
62 zexpect_equal(0, target_write_received_0_fake.call_count); in ZTEST()
63 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST()
64 zexpect_equal(0, target_buf_read_requested_0_fake.call_count); in ZTEST()
65 zexpect_equal(0, target_stop_0_fake.call_count); in ZTEST()
74 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST()
/Zephyr-latest/tests/bluetooth/audio/mocks/include/
Dbap_stream_expects.h22 zexpect_call_count(func_name, 1, mock_bap_stream_configured_cb_fake.call_count); \
24 if (mock_bap_stream_configured_cb_fake.call_count > 0) { \
40 zexpect_call_count(func_name, 0, mock_bap_stream_configured_cb_fake.call_count); in expect_bt_bap_stream_ops_configured_not_called()
47 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()
49 if (mock_bap_stream_qos_set_cb_fake.call_count > 0) { in expect_bt_bap_stream_ops_qos_set_called_once()
59 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()
66 zexpect_call_count(func_name, 1, mock_bap_stream_enabled_cb_fake.call_count); in expect_bt_bap_stream_ops_enabled_called_once()
68 if (mock_bap_stream_enabled_cb_fake.call_count > 0) { in expect_bt_bap_stream_ops_enabled_called_once()
78 zexpect_call_count(func_name, 0, mock_bap_stream_enabled_cb_fake.call_count); in expect_bt_bap_stream_ops_enabled_not_called()
86 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/
Dscan_expects.c12 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()
Daddr_expects.c12 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()
Dhci_core_expects.c17 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()
Dsettings_expects.c16 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()
Dadv_expects.c16 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()
Dnet_buf_expects.c17 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()
Dkeys_expects.c16 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()
Dconn_expects.c17 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()
Dsmp_expects.c16 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/
Dhci_core_expects.c11 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/
Dbap_unicast_server_expects.h20 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_config_fake.call_count); \
46 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_reconfig_fake.call_count); \
67 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_qos_fake.call_count); \
83 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_enable_fake.call_count); \
103 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_metadata_fake.call_count); \
123 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_disable_fake.call_count); \
135 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_release_fake.call_count); \
147 zexpect_call_count(func_name, 2, mock_bap_unicast_server_cb_release_fake.call_count); \
165 zexpect_call_count(func_name, 1, mock_bap_unicast_server_cb_start_fake.call_count); \
177 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/
Dmain.c39 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/
Dmain.c55 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/
Dtest.c179 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/
Dmain.c44 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/
Dsettings_expects.c16 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()
Dsettings_store_expects.c17 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/
Dmain.c64 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/
Dtest_broadcast_reception.c189 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in test_broadcast_reception_start()
204 mock_cap_commander_broadcast_reception_stop_cb_fake.call_count); in test_broadcast_reception_stop()
258 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
269 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
283 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
297 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
313 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
326 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
339 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
352 mock_cap_commander_broadcast_reception_start_cb_fake.call_count); in ZTEST_F()
[all …]
/Zephyr-latest/tests/drivers/rtc/shell/src/
Dmain.c75 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/
Dmain.c135 zassert_equal(psa_export_key_fake.call_count, CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES, in ZTEST()
137 zassert_equal(wifi_credentials_cache_ssid_fake.call_count, in ZTEST()
161 zassert_equal(psa_import_key_fake.call_count, 2, "Import key call count mismatch"); in ZTEST()
162 zassert_equal(psa_set_key_id_fake.call_count, 2, "Set key ID call count mismatch"); in ZTEST()
163 zassert_equal(psa_set_key_usage_flags_fake.call_count, 2, in ZTEST()
165 zassert_equal(psa_set_key_lifetime_fake.call_count, 2, in ZTEST()
167 zassert_equal(psa_set_key_algorithm_fake.call_count, 2, in ZTEST()
169 zassert_equal(psa_set_key_type_fake.call_count, 2, "Set key type call count mismatch"); in ZTEST()
170 zassert_equal(psa_set_key_bits_fake.call_count, 2, "Set key bits call count mismatch"); in ZTEST()
196 zassert_equal(psa_export_key_fake.call_count, 2, "Export key call count mismatch"); in ZTEST()
[all …]

1234