49 const bool serverSC =
true;
50 const std::string suffix =
"i470_a";
51 const int protocolSessionCount = 10;
52 const int max_connections_per_session = 200;
53 const bool expSuccess =
false;
54 const bool server_client_order =
true;
59 const bool client_do_disconnect_random =
true;
60 const bool server_do_disconnect_random =
false;
62 std::shared_ptr<DBTServerTest> server = std::make_shared<DBTServer01>(
"S-"+suffix, EUI48::ALL_DEVICE, BTMode::DUAL, serverSC, secLevelServer, server_do_disconnect_random);
63 std::shared_ptr<DBTClientTest> client = std::make_shared<DBTClient01>(
"C-"+suffix, EUI48::ALL_DEVICE, BTMode::DUAL, client_do_disconnect_random);
65 server->setProtocolSessionsLeft( protocolSessionCount );
67 client->setProtocolSessionsLeft( protocolSessionCount );
68 client->setDisconnectDevice(
true );
69 client->setRemoveDevice(
false );
70 client->setDiscoveryPolicy( DiscoveryPolicy::PAUSE_CONNECTED_UNTIL_DISCONNECTED );
73 max_connections_per_session, expSuccess,
75 server, secLevelServer, serverExpPairing,
76 client, secLevelClient, clientExpPairing);
84 const bool serverSC =
true;
85 const std::string suffix =
"i470_b";
86 const int protocolSessionCount = 10;
87 const int max_connections_per_session = 200;
88 const bool expSuccess =
false;
89 const bool server_client_order =
true;
94 const bool client_do_disconnect_random =
false;
95 const bool server_do_disconnect_random =
true;
97 std::shared_ptr<DBTServerTest> server = std::make_shared<DBTServer01>(
"S-"+suffix, EUI48::ALL_DEVICE, BTMode::DUAL, serverSC, secLevelServer, server_do_disconnect_random);
98 std::shared_ptr<DBTClientTest> client = std::make_shared<DBTClient01>(
"C-"+suffix, EUI48::ALL_DEVICE, BTMode::DUAL, client_do_disconnect_random);
100 server->setProtocolSessionsLeft( protocolSessionCount );
102 client->setProtocolSessionsLeft( protocolSessionCount );
103 client->setDisconnectDevice(
true );
104 client->setRemoveDevice(
false );
105 client->setDiscoveryPolicy( DiscoveryPolicy::PAUSE_CONNECTED_UNTIL_DISCONNECTED );
108 max_connections_per_session, expSuccess,
110 server, secLevelServer, serverExpPairing,
111 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 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)
Testing w/o client filtering processing device and hence not blocking deviceFound.
static BaseDBTClientServer & base_test_framework
BTSecurityLevel
Bluetooth Security Level.
METHOD_AS_TEST_CASE(TestDBTClientServer_i470::test_i470_a, "ClientServer i470 Trial a", "[trial][i470]")