Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 25 of 56) sorted by relevance

123

/system/bt/test/
DAndroid.bp18 "mock/mock_bta_*.cc",
25 "mock/mock_main_shim*.cc",
32 "mock/mock_common_*.cc",
39 "mock/mock_stack_a2dp_*.cc",
46 "mock/mock_stack_l2cap_*.cc",
53 "mock/mock_stack_*.cc",
60 "mock/mock_hci_*.cc",
67 "mock/mock_frameworks_*.cc",
74 "mock/mock_btcore_*.cc",
81 "mock/mock_system_libfmq_*.cc",
[all …]
/system/core/fastboot/
Dsocket_test.cpp284 SocketMock mock; in TEST() local
286 mock.ExpectSend("foo"); in TEST()
287 EXPECT_TRUE(SendString(&mock, "foo")); in TEST()
289 mock.ExpectSend("abc"); in TEST()
290 mock.ExpectSend("123"); in TEST()
291 EXPECT_TRUE(SendString(&mock, "abc")); in TEST()
292 EXPECT_TRUE(SendString(&mock, "123")); in TEST()
296 SocketMock* mock = new SocketMock; in TEST() local
298 mock->ExpectSendFailure("foo"); in TEST()
299 EXPECT_FALSE(SendString(mock, "foo")); in TEST()
[all …]
Dtcp_test.cpp36 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
37 mock->ExpectSend("FB01"); in TEST()
38 mock->AddReceive("FB01"); in TEST()
41 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()
46 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
47 mock->ExpectSend("FB01"); in TEST()
48 mock->AddReceive("FB99"); in TEST()
51 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST()
56 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local
57 mock->ExpectSendFailure("FB01"); in TEST()
[all …]
/system/bt/test/mock/
Dmock_stack_smp_act.cc49 namespace mock { namespace
138 test::mock::stack_smp_act::smp_send_app_cback(p_cb, p_data); in smp_send_app_cback()
142 test::mock::stack_smp_act::smp_send_pair_fail(p_cb, p_data); in smp_send_pair_fail()
146 test::mock::stack_smp_act::smp_send_pair_req(p_cb, p_data); in smp_send_pair_req()
150 test::mock::stack_smp_act::smp_send_pair_rsp(p_cb, p_data); in smp_send_pair_rsp()
154 test::mock::stack_smp_act::smp_send_confirm(p_cb, p_data); in smp_send_confirm()
158 test::mock::stack_smp_act::smp_send_init(p_cb, p_data); in smp_send_init()
162 test::mock::stack_smp_act::smp_send_rand(p_cb, p_data); in smp_send_rand()
166 test::mock::stack_smp_act::smp_send_pair_public_key(p_cb, p_data); in smp_send_pair_public_key()
170 test::mock::stack_smp_act::smp_send_commitment(p_cb, p_data); in smp_send_commitment()
[all …]
Dmock_stack_l2cap_api.cc58 namespace mock { namespace
103 return test::mock::stack_l2cap_api::l2c_get_transport_from_fixed_cid( in l2c_get_transport_from_fixed_cid()
111 return test::mock::stack_l2cap_api::L2CA_Register2( in L2CA_Register2()
120 return test::mock::stack_l2cap_api::L2CA_Register( in L2CA_Register()
126 test::mock::stack_l2cap_api::L2CA_Deregister(psm); in L2CA_Deregister()
130 return test::mock::stack_l2cap_api::L2CA_AllocateLePSM(); in L2CA_AllocateLePSM()
134 test::mock::stack_l2cap_api::L2CA_FreeLePSM(psm); in L2CA_FreeLePSM()
139 return test::mock::stack_l2cap_api::L2CA_ConnectReq2(psm, p_bd_addr, in L2CA_ConnectReq2()
144 return test::mock::stack_l2cap_api::L2CA_ConnectReq(psm, p_bd_addr); in L2CA_ConnectReq()
149 return test::mock::stack_l2cap_api::L2CA_RegisterLECoc(psm, p_cb_info, in L2CA_RegisterLECoc()
[all …]
Dmock_hci_layer.cc49 namespace mock { namespace
74 test::mock::hci_layer::initialization_complete(); in initialization_complete()
78 test::mock::hci_layer::hci_event_received(from_here, packet); in hci_event_received()
82 test::mock::hci_layer::acl_event_received(packet); in acl_event_received()
86 test::mock::hci_layer::sco_data_received(packet); in sco_data_received()
90 test::mock::hci_layer::iso_data_received(packet); in iso_data_received()
94 test::mock::hci_layer::hal_service_died(); in hal_service_died()
98 test::mock::hci_layer::process_command_credits(credits); in process_command_credits()
102 return test::mock::hci_layer::hci_is_root_inflammation_event_received(); in hci_is_root_inflammation_event_received()
106 test::mock::hci_layer::handle_root_inflammation_event(); in handle_root_inflammation_event()
[all …]
Dmock_main_shim_l2cap_api.cc42 namespace mock { namespace
102 return test::mock::main_shim_l2cap_api::L2CA_ReadRemoteVersion( in L2CA_ReadRemoteVersion()
107 return test::mock::main_shim_l2cap_api::L2CA_ReadRemoteFeatures(addr); in L2CA_ReadRemoteFeatures()
111 test::mock::main_shim_l2cap_api::L2CA_UseLegacySecurityModule(); in L2CA_UseLegacySecurityModule()
118 return test::mock::main_shim_l2cap_api::L2CA_Register( in L2CA_Register()
124 test::mock::main_shim_l2cap_api::L2CA_Deregister(psm); in L2CA_Deregister()
129 return test::mock::main_shim_l2cap_api::L2CA_ConnectReq(psm, raw_address); in L2CA_ConnectReq()
133 return test::mock::main_shim_l2cap_api::L2CA_DisconnectReq(cid); in L2CA_DisconnectReq()
137 return test::mock::main_shim_l2cap_api::L2CA_DataWrite(cid, p_data); in L2CA_DataWrite()
143 return test::mock::main_shim_l2cap_api::L2CA_ReconfigCreditBasedConnsReq( in L2CA_ReconfigCreditBasedConnsReq()
[all …]
Dmock_stack_btm_ble_bgconn.cc44 namespace mock { namespace
69 return test::mock::stack_btm_ble_bgconn::convert_to_address_with_type( in convert_to_address_with_type()
74 test::mock::stack_btm_ble_bgconn::btm_update_scanner_filter_policy( in btm_update_scanner_filter_policy()
79 test::mock::stack_btm_ble_bgconn::btm_ble_bgconn_cancel_if_disconnected( in btm_ble_bgconn_cancel_if_disconnected()
84 return test::mock::stack_btm_ble_bgconn::btm_ble_suspend_bg_conn(); in btm_ble_suspend_bg_conn()
88 return test::mock::stack_btm_ble_bgconn::btm_ble_resume_bg_conn(); in btm_ble_resume_bg_conn()
92 return test::mock::stack_btm_ble_bgconn::BTM_BackgroundConnectAddressKnown( in BTM_BackgroundConnectAddressKnown()
97 return test::mock::stack_btm_ble_bgconn::BTM_SetLeConnectionModeToFast(); in BTM_SetLeConnectionModeToFast()
101 test::mock::stack_btm_ble_bgconn::BTM_SetLeConnectionModeToSlow(); in BTM_SetLeConnectionModeToSlow()
105 return test::mock::stack_btm_ble_bgconn::BTM_AcceptlistAdd(address); in BTM_AcceptlistAdd()
[all …]
Dmock_stack_btm_ble_privacy.cc47 namespace mock { namespace
77 test::mock::stack_btm_ble_privacy::btm_ble_clear_resolving_list_complete( in btm_ble_clear_resolving_list_complete()
82 test::mock::stack_btm_ble_privacy::btm_ble_add_resolving_list_entry_complete( in btm_ble_add_resolving_list_entry_complete()
88 test::mock::stack_btm_ble_privacy:: in btm_ble_remove_resolving_list_entry_complete()
93 test::mock::stack_btm_ble_privacy::btm_ble_read_resolving_list_entry_complete( in btm_ble_read_resolving_list_entry_complete()
98 return test::mock::stack_btm_ble_privacy::btm_ble_remove_resolving_list_entry( in btm_ble_remove_resolving_list_entry()
103 test::mock::stack_btm_ble_privacy::btm_ble_clear_resolving_list(); in btm_ble_clear_resolving_list()
107 return test::mock::stack_btm_ble_privacy::btm_ble_read_resolving_list_entry( in btm_ble_read_resolving_list_entry()
112 return test::mock::stack_btm_ble_privacy::btm_ble_disable_resolving_list( in btm_ble_disable_resolving_list()
117 return test::mock::stack_btm_ble_privacy::btm_ble_resolving_list_load_dev( in btm_ble_resolving_list_load_dev()
[all …]
Dmock_btif_config.cc49 namespace mock { namespace
79 return test::mock::btif_config::btif_get_device_type(bda, p_device_type); in btif_get_device_type()
83 return test::mock::btif_config::btif_get_address_type(bda, p_addr_type); in btif_get_address_type()
87 return test::mock::btif_config::btif_config_exist(section, key); in btif_config_exist()
92 return test::mock::btif_config::btif_config_get_int(section, key, value); in btif_config_get_int()
97 return test::mock::btif_config::btif_config_set_int(section, key, value); in btif_config_set_int()
102 return test::mock::btif_config::btif_config_get_uint64(section, key, value); in btif_config_get_uint64()
107 return test::mock::btif_config::btif_config_set_uint64(section, key, value); in btif_config_set_uint64()
112 return test::mock::btif_config::btif_config_get_str(section, key, value, in btif_config_get_str()
118 return test::mock::btif_config::btif_config_set_str(section, key, value); in btif_config_set_str()
[all …]
Dmock_stack_l2cap_ble.cc47 namespace mock { namespace
86 return test::mock::stack_l2cap_ble::L2CA_UpdateBleConnParams( in L2CA_UpdateBleConnParams()
91 return test::mock::stack_l2cap_ble::L2CA_EnableUpdateBleConnParams(rem_bda, in L2CA_EnableUpdateBleConnParams()
96 return test::mock::stack_l2cap_ble::L2CA_GetBleConnRole(bd_addr); in L2CA_GetBleConnRole()
100 test::mock::stack_l2cap_ble::l2cble_notify_le_connection(bda); in l2cble_notify_le_connection()
106 return test::mock::stack_l2cap_ble::l2cble_conn_comp( in l2cble_conn_comp()
113 return test::mock::stack_l2cap_ble::l2cble_conn_comp_from_address_with_type( in l2cble_conn_comp_from_address_with_type()
121 test::mock::stack_l2cap_ble::l2cble_process_conn_update_evt( in l2cble_process_conn_update_evt()
126 test::mock::stack_l2cap_ble::l2cble_process_sig_cmd(p_lcb, p, pkt_len); in l2cble_process_sig_cmd()
130 return test::mock::stack_l2cap_ble::l2cble_create_conn(p_lcb); in l2cble_create_conn()
[all …]
Dmock_stack_btm_ble_addr.cc47 namespace mock { namespace
72 test::mock::stack_btm_ble_addr::btm_gen_resolve_paddr_low(address); in btm_gen_resolve_paddr_low()
77 test::mock::stack_btm_ble_addr::btm_gen_resolvable_private_addr(cb); in btm_gen_resolvable_private_addr()
81 return test::mock::stack_btm_ble_addr:: in btm_get_next_private_addrress_interval_ms()
87 return test::mock::stack_btm_ble_addr::btm_ble_init_pseudo_addr( in btm_ble_init_pseudo_addr()
93 return test::mock::stack_btm_ble_addr::btm_ble_addr_resolvable(rpa, in btm_ble_addr_resolvable()
98 return test::mock::stack_btm_ble_addr::btm_ble_resolve_random_addr( in btm_ble_resolve_random_addr()
104 return test::mock::stack_btm_ble_addr::btm_identity_addr_to_random_pseudo( in btm_identity_addr_to_random_pseudo()
110 return test::mock::stack_btm_ble_addr:: in btm_identity_addr_to_random_pseudo_from_address_with_type()
117 return test::mock::stack_btm_ble_addr::btm_random_pseudo_to_identity_addr( in btm_random_pseudo_to_identity_addr()
[all …]
Dmock_main_shim_link_policy.cc42 namespace mock { namespace
65 return test::mock::main_shim_link_policy::set_active_mode(p_acl); in set_active_mode()
69 return test::mock::main_shim_link_policy::set_hold_mode(p_acl, max, min); in set_hold_mode()
75 return test::mock::main_shim_link_policy::set_sniff_mode( in set_sniff_mode()
81 return test::mock::main_shim_link_policy:: in controller_supports_link_policy_mode()
86 return test::mock::main_shim_link_policy::RegisterLinkPolicyClient(p_cb); in RegisterLinkPolicyClient()
90 return test::mock::main_shim_link_policy::UnregisterLinkPolicyClient(p_cb); in UnregisterLinkPolicyClient()
95 return test::mock::main_shim_link_policy::BTM_SetPowerMode(handle, new_mode); in BTM_SetPowerMode()
101 test::mock::main_shim_link_policy::btm_pm_on_mode_change(status, handle, in btm_pm_on_mode_change()
108 return test::mock::main_shim_link_policy::BTM_SetSsrParams( in BTM_SetSsrParams()
[all …]
Dmock_stack_crypto_toolbox.cc42 namespace mock { namespace
62 return test::mock::stack_crypto_toolbox::h6(w, keyid); in h6()
66 return test::mock::stack_crypto_toolbox::h7(salt, w); in h7()
70 return test::mock::stack_crypto_toolbox::f4(u, v, x, z); in f4()
75 test::mock::stack_crypto_toolbox::f5(w, n1, n2, a1, a2, mac_key, ltk); in f5()
80 return test::mock::stack_crypto_toolbox::f6(w, n1, n2, r, iocap, a1, a2); in f6()
85 return test::mock::stack_crypto_toolbox::g2(u, v, x, y); in g2()
89 return test::mock::stack_crypto_toolbox::ltk_to_link_key(ltk, use_h7); in ltk_to_link_key()
93 return test::mock::stack_crypto_toolbox::link_key_to_ltk(link_key, use_h7); in link_key_to_ltk()
Dmock_main_shim_metrics_api.cc54 namespace mock { namespace
83 test::mock::main_shim_metrics_api::LogMetricLinkLayerConnectionEvent( in LogMetricLinkLayerConnectionEvent()
91 test::mock::main_shim_metrics_api::LogMetricA2dpAudioUnderrunEvent( in LogMetricA2dpAudioUnderrunEvent()
99 test::mock::main_shim_metrics_api::LogMetricA2dpAudioOverrunEvent( in LogMetricA2dpAudioOverrunEvent()
107 test::mock::main_shim_metrics_api::LogMetricA2dpPlaybackEvent( in LogMetricA2dpPlaybackEvent()
115 test::mock::main_shim_metrics_api::LogMetricReadRssiResult( in LogMetricReadRssiResult()
122 test::mock::main_shim_metrics_api::LogMetricReadFailedContactCounterResult( in LogMetricReadFailedContactCounterResult()
129 test::mock::main_shim_metrics_api::LogMetricReadTxPowerLevelResult( in LogMetricReadTxPowerLevelResult()
136 test::mock::main_shim_metrics_api::LogMetricSmpPairingEvent( in LogMetricSmpPairingEvent()
144 test::mock::main_shim_metrics_api::LogMetricClassicPairingEvent( in LogMetricClassicPairingEvent()
[all …]
Dmock_stack_acl_btm_ble_connection_establishment.cc48 namespace mock { namespace
71 test::mock::stack_acl_btm_ble_connection_establishment:: in btm_send_hci_create_connection()
79 test::mock::stack_acl_btm_ble_connection_establishment:: in btm_ble_create_ll_conn_complete()
84 return test::mock::stack_acl_btm_ble_connection_establishment:: in maybe_resolve_address()
89 test::mock::stack_acl_btm_ble_connection_establishment::btm_ble_conn_complete( in btm_ble_conn_complete()
94 test::mock::stack_acl_btm_ble_connection_establishment:: in btm_ble_create_conn_cancel()
99 test::mock::stack_acl_btm_ble_connection_establishment:: in btm_ble_create_conn_cancel_complete()
Dmock_main_bte.cc42 namespace mock { namespace
57 test::mock::main_bte::post_to_main_message_loop(from_here, p_msg); in post_to_main_message_loop()
61 test::mock::main_bte::bte_main_init(); in bte_main_init()
65 test::mock::main_bte::bte_main_hci_send(p_msg, event); in bte_main_hci_send()
Dmock_stack_btm_ble_scanner_hci_interface.cc48 namespace mock { namespace
66 test::mock::stack_btm_ble_scanner_hci_interface:: in btm_ble_process_periodic_adv_sync_est_evt()
71 test::mock::stack_btm_ble_scanner_hci_interface:: in btm_ble_process_periodic_adv_pkt()
77 test::mock::stack_btm_ble_scanner_hci_interface:: in btm_ble_process_periodic_adv_sync_lost_evt()
Dmock_stack_metrics_logging.cc54 namespace mock { namespace
74 test::mock::stack_metrics_logging::log_classic_pairing_event( in log_classic_pairing_event()
84 test::mock::stack_metrics_logging::log_link_layer_connection_event( in log_link_layer_connection_event()
92 test::mock::stack_metrics_logging::log_smp_pairing_event( in log_smp_pairing_event()
99 test::mock::stack_metrics_logging::log_sdp_attribute( in log_sdp_attribute()
110 test::mock::stack_metrics_logging::log_manufacturer_info( in log_manufacturer_info()
Dmock_stack_btm_ble_advertiser_hci_interface.cc49 namespace mock { namespace
65 test::mock::stack_btm_ble_advertiser_hci_interface:: in btm_le_on_advertising_set_terminated()
71 test::mock::stack_btm_ble_advertiser_hci_interface:: in btm_ble_advertiser_notify_terminated_legacy()
Dmock_hcic_hcicmds.cc39 namespace mock { namespace
51 namespace mock = test::mock::hcic_hcicmds;
72 mock::btsnd_hcic_change_conn_type.handle = handle; in btsnd_hcic_change_conn_type()
73 mock::btsnd_hcic_change_conn_type.packet_types = packet_types; in btsnd_hcic_change_conn_type()
Dmock_hcic_hcicmds.h42 namespace mock {
/system/bt/stack/test/btm/
Dstack_btm_test.cc37 namespace mock = test::mock::hcic_hcicmds;
163 mock::btsnd_hcic_change_conn_type = {}; in TEST_F()
167 ASSERT_EQ(0x123, mock::btsnd_hcic_change_conn_type.handle); in TEST_F()
168 ASSERT_EQ(0x4400, mock::btsnd_hcic_change_conn_type.packet_types); in TEST_F()
170 mock::btsnd_hcic_change_conn_type = {}; in TEST_F()
173 ASSERT_EQ(0x123, mock::btsnd_hcic_change_conn_type.handle); in TEST_F()
174 ASSERT_EQ(0xcc00, mock::btsnd_hcic_change_conn_type.packet_types); in TEST_F()
176 mock::btsnd_hcic_change_conn_type = {}; in TEST_F()
179 ASSERT_EQ(0x0, mock::btsnd_hcic_change_conn_type.handle); in TEST_F()
180 ASSERT_EQ(0x0, mock::btsnd_hcic_change_conn_type.packet_types); in TEST_F()
/system/update_engine/client-headers/
Dlibupdate_engine-client-test.pc.in5 Description: update_engine client interface mock library
/system/bt/stack/test/hci/
Dstack_hci_test.cc29 namespace mock = test::mock::hcic_hcicmds;

123