// ***************************************************************************** // // test rfcomm query tests // // ***************************************************************************** #include #include #include #include #include "CppUTest/TestHarness.h" #include "CppUTest/CommandLineTestRunner.h" #include "CppUTestExt/MockSupport.h" #include "hci_cmd.h" #include "btstack_memory.h" #include "hci.h" #include "ble/gatt_client.h" static uint8_t advertisement_received; static uint8_t connected; static uint8_t advertisement_packet[150]; static btstack_packet_callback_registration_t hci_event_callback_registration; void mock_simulate_hci_state_working(void); void mock_simulate_command_complete(const hci_cmd_t *cmd); void mock_simulate_scan_response(void); void mock_simulate_connected(void); void CHECK_EQUAL_ARRAY(const uint8_t * expected, uint8_t * actual, int size){ for (int i=0; i