45 static constexpr const bool serverSC =
true;
51 const std::string suffix =
"40";
52 const int protocolSessionCount = 1;
54 const bool expSuccess =
true;
55 const bool server_client_order =
true;
61 std::shared_ptr<DBTServerTest> server = std::make_shared<DBTServer01>(
"S-"+suffix, EUI48::ALL_DEVICE, BTMode::DUAL, serverSC, secLevelServer);
62 std::shared_ptr<DBTClientTest> client = std::make_shared<DBTClient01>(
"C-"+suffix, EUI48::ALL_DEVICE, BTMode::DUAL);
64 server->setProtocolSessionsLeft( protocolSessionCount );
66 client->setProtocolSessionsLeft( protocolSessionCount );
67 client->setDisconnectDevice(
true );
68 client->setRemoveDevice(
false );
69 client->setDiscoveryPolicy( DiscoveryPolicy::PAUSE_CONNECTED_UNTIL_DISCONNECTED );
74 max_connections_per_session, expSuccess,
76 server, secLevelServer, serverExpPairing,
77 client, secLevelClient, clientExpPairing);
void cleanupTest()
Ensure.
void setupTest(const jau::fraction_i64 timeout=0_s)
Ensure.
Testing a full Bluetooth server and client lifecycle of operations, requiring two BT adapter:
void set_client_reset_at_ready(const bool v) noexcept
void test8x_fullCycle(const std::string &suffix, const int protocolSessionCount, const bool server_client_order, const bool serverSC, const BTSecurityLevel secLevelServer, const ExpectedPairing serverExpPairing, const BTSecurityLevel secLevelClient, const ExpectedPairing clientExpPairing)
static constexpr const int max_connections_per_session
Testing a full Bluetooth server and client lifecycle of operations including adapter reset,...
void test40_ClientReset01()
static BaseDBTClientServer & base_test_framework
BTSecurityLevel
Bluetooth Security Level.
METHOD_AS_TEST_CASE(TestDBTClientServer40_Reset::test40_ClientReset01, "ClientServer 40 Reset Trial", "[trial][serverclient][reset]")