25#ifndef DBT_SERVER_TEST_HPP_
26#define DBT_SERVER_TEST_HPP_
42 REQUIRE( current_exp_advertising_state == adapter->isAdvertising() );
43 REQUIRE(
false == adapter->isDiscovering() );
45 REQUIRE( HCIStatusCode::SUCCESS == server->startAdvertising(msg) );
46 REQUIRE(
true == adapter->isAdvertising() );
47 REQUIRE(
false == adapter->isDiscovering() );
48 REQUIRE( BTRole::Slave == adapter->getRole() );
49 REQUIRE( server->getName() == adapter->getName() );
54 REQUIRE(
false == adapter->isDiscovering() );
55 REQUIRE( BTRole::Slave == adapter->getRole() );
59 REQUIRE(
false == adapter->isAdvertising() );
60 REQUIRE(
false == adapter->isDiscovering() );
61 REQUIRE( BTRole::Slave == adapter->getRole() );
virtual BTSecurityLevel getSecurityLevel()=0
virtual HCIStatusCode startAdvertising(const std::string &msg)=0
static void startAdvertising(const DBTServerTestRef &server, const bool current_exp_advertising_state, const std::string &msg)
static void stop(const DBTServerTestRef &server, const std::string &msg)
std::shared_ptr< DBTServerTest > DBTServerTestRef
std::shared_ptr< BTAdapter > BTAdapterRef
BTSecurityLevel
Bluetooth Security Level.
HCIStatusCode
BT Core Spec v5.2: Vol 1, Part F Controller Error Codes: 1.3 List of Error Codes.