Skip to content

Commit

Permalink
Refs #19921. Uncrustify.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Nov 22, 2024
1 parent 489d095 commit f1458ca
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions test/blackbox/common/BlackboxTestsSecurity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3018,7 +3018,7 @@ TEST_P(Security, RemoveParticipantProxyDataonSecurityManagerLeaseExpired_validat
//!Lambda for configuring publisher participant qos and security properties
auto secure_participant_pub_configurator = [this, &governance_file,
&permissions_file](const std::shared_ptr<PubSubWriter<HelloWorldPubSubType>>& part,
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
{
part->lease_duration(3, 1);
part->disable_builtin_transport().add_user_transport_to_pparams(transport_interface);
Expand Down Expand Up @@ -3048,7 +3048,7 @@ TEST_P(Security, RemoveParticipantProxyDataonSecurityManagerLeaseExpired_validat
//!Lambda for configuring subscriber participant qos and security properties
auto secure_participant_sub_configurator = [this, &governance_file,
&permissions_file](const std::shared_ptr<PubSubReader<HelloWorldPubSubType>>& part,
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
{
part->lease_duration(3, 1);
part->disable_builtin_transport().add_user_transport_to_pparams(transport_interface);
Expand Down
68 changes: 34 additions & 34 deletions test/unittest/security/authentication/BuiltinPKIDHTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,40 +425,40 @@ TEST_F(AuthenticationPluginTest, validate_local_identity_kagree_algo)
auto test_fn = [this](
const std::string& alg,
ValidationResult_t expected_result) -> void
{
IdentityHandle* local_identity_handle = nullptr;
GUID_t adjusted_participant_key;
uint32_t domain_id = 0;
RTPSParticipantAttributes participant_attr;
GUID_t candidate_participant_key;
SecurityException exception;
ValidationResult_t result = ValidationResult_t::VALIDATION_FAILED;

fill_candidate_participant_key(candidate_participant_key);
participant_attr.properties = get_valid_policy();
participant_attr.properties.properties().emplace_back(
Property("dds.sec.auth.builtin.PKI-DH.preferred_key_agreement", alg));
result = plugin.validate_local_identity(&local_identity_handle,
adjusted_participant_key,
domain_id,
participant_attr,
candidate_participant_key,
exception);

ASSERT_TRUE(result == expected_result);
if (ValidationResult_t::VALIDATION_OK == result)
{
ASSERT_TRUE(local_identity_handle != nullptr);
check_local_identity_handle(*local_identity_handle);
ASSERT_TRUE(adjusted_participant_key != GUID_t::unknown());
ASSERT_TRUE(plugin.return_identity_handle(local_identity_handle, exception));
}
else
{
ASSERT_TRUE(local_identity_handle == nullptr);
ASSERT_TRUE(adjusted_participant_key == GUID_t::unknown());
}
};
{
IdentityHandle* local_identity_handle = nullptr;
GUID_t adjusted_participant_key;
uint32_t domain_id = 0;
RTPSParticipantAttributes participant_attr;
GUID_t candidate_participant_key;
SecurityException exception;
ValidationResult_t result = ValidationResult_t::VALIDATION_FAILED;

fill_candidate_participant_key(candidate_participant_key);
participant_attr.properties = get_valid_policy();
participant_attr.properties.properties().emplace_back(
Property("dds.sec.auth.builtin.PKI-DH.preferred_key_agreement", alg));
result = plugin.validate_local_identity(&local_identity_handle,
adjusted_participant_key,
domain_id,
participant_attr,
candidate_participant_key,
exception);

ASSERT_TRUE(result == expected_result);
if (ValidationResult_t::VALIDATION_OK == result)
{
ASSERT_TRUE(local_identity_handle != nullptr);
check_local_identity_handle(*local_identity_handle);
ASSERT_TRUE(adjusted_participant_key != GUID_t::unknown());
ASSERT_TRUE(plugin.return_identity_handle(local_identity_handle, exception));
}
else
{
ASSERT_TRUE(local_identity_handle == nullptr);
ASSERT_TRUE(adjusted_participant_key == GUID_t::unknown());
}
};

for (const std::string& value : correct_values)
{
Expand Down

0 comments on commit f1458ca

Please sign in to comment.