1 2 3 #pragma once 4 5 #include <cstddef> 6 #include <deque> 7 8 #include "test/headless/interface.h" 9 #include "test/headless/timeout.h" 10 11 namespace bluetooth::test::headless { 12 13 using CheckPoint = size_t; 14 15 void start_messenger(); 16 void stop_messenger(); 17 18 namespace messenger { 19 namespace acl { 20 21 bool await_connected(const Timeout& timeout); 22 bool await_disconnected(const Timeout& timeout); 23 24 } // namespace acl 25 26 namespace sdp { 27 28 CheckPoint get_check_point(); 29 bool await_service_discovery(const Timeout& timeout, 30 const CheckPoint& check_point, const size_t count); 31 std::deque<remote_device_properties_params_t> collect_from( 32 CheckPoint& check_point); 33 34 } // namespace sdp 35 36 namespace inquiry { 37 38 CheckPoint get_check_point(); 39 bool await_inquiry_result(const Timeout& timeout, const CheckPoint& check_point, 40 const size_t count); 41 std::deque<remote_device_properties_params_t> collect_from( 42 CheckPoint& check_point); 43 44 } // namespace inquiry 45 46 } // namespace messenger 47 48 } // namespace bluetooth::test::headless 49