mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 12:40:42 +00:00
test: update return types for some mock functions
This commit is contained in:
parent
9f7e3af12b
commit
2e7076ac00
@ -46,11 +46,11 @@ void mock_simulate_scan_response(void){
|
||||
uint8_t packet[] = {GAP_EVENT_ADVERTISING_REPORT, 0x13, 0xE2, 0x01, 0x34, 0xB1, 0xF7, 0xD1, 0x77, 0x9B, 0xCC, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08};
|
||||
registered_hci_event_handler(HCI_EVENT_PACKET, 0, (uint8_t *)&packet, sizeof(packet));
|
||||
}
|
||||
int gap_authenticated(hci_con_handle_t con_handle){
|
||||
bool gap_authenticated(hci_con_handle_t con_handle){
|
||||
UNUSED(con_handle);
|
||||
return false;
|
||||
}
|
||||
int gap_encryption_key_size(hci_con_handle_t con_handle){
|
||||
uint8_t gap_encryption_key_size(hci_con_handle_t con_handle){
|
||||
UNUSED(con_handle);
|
||||
return 0;
|
||||
}
|
||||
|
@ -232,17 +232,17 @@ void l2cap_run(void){
|
||||
void l2cap_register_packet_handler(void (*handler)(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)){
|
||||
}
|
||||
|
||||
int gap_authenticated(hci_con_handle_t con_handle){
|
||||
return 0;
|
||||
bool gap_authenticated(hci_con_handle_t con_handle){
|
||||
return false;
|
||||
}
|
||||
authorization_state_t gap_authorization_state(hci_con_handle_t con_handle){
|
||||
return AUTHORIZATION_UNKNOWN;
|
||||
}
|
||||
int gap_encryption_key_size(hci_con_handle_t con_handle){
|
||||
uint8_t gap_encryption_key_size(hci_con_handle_t con_handle){
|
||||
return 0;
|
||||
}
|
||||
int gap_secure_connection(hci_con_handle_t con_handle){
|
||||
return 0;
|
||||
bool gap_secure_connection(hci_con_handle_t con_handle){
|
||||
return false;
|
||||
}
|
||||
gap_connection_type_t gap_get_connection_type(hci_con_handle_t connection_handle){
|
||||
return GAP_CONNECTION_INVALID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user