Skip to content

Commit

Permalink
Refs #22352: Update BB tests with new APIs
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Dec 9, 2024
1 parent d6e0435 commit 31bf211
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/blackbox/common/BlackboxTestsDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox/common/BlackboxTestsSecurity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 31bf211

Please sign in to comment.