From 31bf2117958677e73310e0ab669b5292fa75ae6a Mon Sep 17 00:00:00 2001 From: Mario Dominguez Date: Thu, 5 Dec 2024 08:39:07 +0100 Subject: [PATCH] Refs #22352: Update BB tests with new APIs Signed-off-by: Mario Dominguez --- test/blackbox/common/BlackboxTestsDiscovery.cpp | 4 ++-- test/blackbox/common/BlackboxTestsSecurity.cpp | 2 +- test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/blackbox/common/BlackboxTestsDiscovery.cpp b/test/blackbox/common/BlackboxTestsDiscovery.cpp index 1123d338a9d..16c1f724e29 100644 --- a/test/blackbox/common/BlackboxTestsDiscovery.cpp +++ b/test/blackbox/common/BlackboxTestsDiscovery.cpp @@ -891,7 +891,7 @@ TEST_P(Discovery, PubSubAsReliableHelloworldParticipantDiscovery) ASSERT_TRUE(writer.isInitialized()); int count = 0; - reader.setOnDiscoveryFunction([&writer, &count](const ParticipantBuiltinTopicData& info, + reader.set_on_discovery_function([&writer, &count](const ParticipantBuiltinTopicData& info, ParticipantDiscoveryStatus status) -> bool { if (info.guid == writer.participant_guid()) @@ -937,7 +937,7 @@ TEST_P(Discovery, PubSubAsReliableHelloworldUserData) ASSERT_TRUE(writer.isInitialized()); - reader.setOnDiscoveryFunction([&writer](const ParticipantBuiltinTopicData& info, + reader.set_on_discovery_function([&writer](const ParticipantBuiltinTopicData& info, ParticipantDiscoveryStatus /*status*/) -> bool { if (info.guid == writer.participant_guid()) diff --git a/test/blackbox/common/BlackboxTestsSecurity.cpp b/test/blackbox/common/BlackboxTestsSecurity.cpp index 7d003cfdf39..7bc8a1b9a0e 100644 --- a/test/blackbox/common/BlackboxTestsSecurity.cpp +++ b/test/blackbox/common/BlackboxTestsSecurity.cpp @@ -2725,7 +2725,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_user_data) sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); - reader.setOnDiscoveryFunction([&writer](const ParticipantBuiltinTopicData& info, + reader.set_on_discovery_function([&writer](const ParticipantBuiltinTopicData& info, ParticipantDiscoveryStatus /*status*/) -> bool { if (info.guid == writer.participant_guid()) diff --git a/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp b/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp index 1f004f0f673..ba009a8a280 100644 --- a/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp +++ b/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp @@ -214,7 +214,7 @@ static void shm_metatraffic_test( check_shm_locators(info, unicast, multicast); return true; }; - reader.setOnDiscoveryFunction(discovery_checker); + reader.set_on_discovery_function(discovery_checker); reader.max_multicast_locators_number(2); reader.init(); ASSERT_TRUE(reader.isInitialized());