From 185b3475f4a6125ad52a43d89834940d57246e66 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 4 Mar 2016 11:59:52 +0100 Subject: [PATCH] test: push missing files --- test/sdp_client/mock.c | 27 +++++++++++++++++++++++++++ test/sdp_client/mock.h | 13 +++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 test/sdp_client/mock.c create mode 100644 test/sdp_client/mock.h diff --git a/test/sdp_client/mock.c b/test/sdp_client/mock.c new file mode 100644 index 000000000..ebd46e7f5 --- /dev/null +++ b/test/sdp_client/mock.c @@ -0,0 +1,27 @@ +#include +#include + +#include "btstack_defines.h" +#include "btstack_debug.h" +#include "bluetooth.h" + +extern "C" int l2cap_can_send_packet_now(uint16_t cid){ + return 1; +} +extern "C" uint8_t l2cap_create_channel(btstack_packet_handler_t packet_handler, bd_addr_t address, uint16_t psm, uint16_t mtu, uint16_t * out_local_cid){ + return 0x41; +} +extern "C" void l2cap_disconnect(uint16_t local_cid, uint8_t reason){ +} +extern "C" uint8_t *l2cap_get_outgoing_buffer(void){ + return NULL; +} +extern "C" uint16_t l2cap_max_mtu(void){ + return 0; +} +extern "C" int l2cap_reserve_packet_buffer(void){ + return 0; +} +extern "C" int l2cap_send_prepared(uint16_t local_cid, uint16_t len){ + return 0; +} \ No newline at end of file diff --git a/test/sdp_client/mock.h b/test/sdp_client/mock.h new file mode 100644 index 000000000..987404257 --- /dev/null +++ b/test/sdp_client/mock.h @@ -0,0 +1,13 @@ +#include +#include "btstack_defines.h" + +void sdp_parser_init(btstack_packet_handler_t callback); +void sdp_parser_handle_chunk(uint8_t * data, uint16_t size); +void sdp_parser_init_service_attribute_search(void); +void sdp_parser_init_service_search(void); +void sdp_parser_handle_service_search(uint8_t * data, uint16_t total_count, uint16_t record_handle_count); + +void sdp_query_rfcomm_init(void); + +void sdp_client_reset(void); +