Skip to content

Commit f1458ca

Browse files
committed
Refs #19921. Uncrustify.
Signed-off-by: Miguel Company <[email protected]>
1 parent 489d095 commit f1458ca

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

test/blackbox/common/BlackboxTestsSecurity.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,7 @@ TEST_P(Security, RemoveParticipantProxyDataonSecurityManagerLeaseExpired_validat
30183018
//!Lambda for configuring publisher participant qos and security properties
30193019
auto secure_participant_pub_configurator = [this, &governance_file,
30203020
&permissions_file](const std::shared_ptr<PubSubWriter<HelloWorldPubSubType>>& part,
3021-
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
3021+
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
30223022
{
30233023
part->lease_duration(3, 1);
30243024
part->disable_builtin_transport().add_user_transport_to_pparams(transport_interface);
@@ -3048,7 +3048,7 @@ TEST_P(Security, RemoveParticipantProxyDataonSecurityManagerLeaseExpired_validat
30483048
//!Lambda for configuring subscriber participant qos and security properties
30493049
auto secure_participant_sub_configurator = [this, &governance_file,
30503050
&permissions_file](const std::shared_ptr<PubSubReader<HelloWorldPubSubType>>& part,
3051-
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
3051+
const std::shared_ptr<eprosima::fastdds::rtps::TransportDescriptorInterface>& transport_interface)
30523052
{
30533053
part->lease_duration(3, 1);
30543054
part->disable_builtin_transport().add_user_transport_to_pparams(transport_interface);

test/unittest/security/authentication/BuiltinPKIDHTests.cpp

+34-34
Original file line numberDiff line numberDiff line change
@@ -425,40 +425,40 @@ TEST_F(AuthenticationPluginTest, validate_local_identity_kagree_algo)
425425
auto test_fn = [this](
426426
const std::string& alg,
427427
ValidationResult_t expected_result) -> void
428-
{
429-
IdentityHandle* local_identity_handle = nullptr;
430-
GUID_t adjusted_participant_key;
431-
uint32_t domain_id = 0;
432-
RTPSParticipantAttributes participant_attr;
433-
GUID_t candidate_participant_key;
434-
SecurityException exception;
435-
ValidationResult_t result = ValidationResult_t::VALIDATION_FAILED;
436-
437-
fill_candidate_participant_key(candidate_participant_key);
438-
participant_attr.properties = get_valid_policy();
439-
participant_attr.properties.properties().emplace_back(
440-
Property("dds.sec.auth.builtin.PKI-DH.preferred_key_agreement", alg));
441-
result = plugin.validate_local_identity(&local_identity_handle,
442-
adjusted_participant_key,
443-
domain_id,
444-
participant_attr,
445-
candidate_participant_key,
446-
exception);
447-
448-
ASSERT_TRUE(result == expected_result);
449-
if (ValidationResult_t::VALIDATION_OK == result)
450-
{
451-
ASSERT_TRUE(local_identity_handle != nullptr);
452-
check_local_identity_handle(*local_identity_handle);
453-
ASSERT_TRUE(adjusted_participant_key != GUID_t::unknown());
454-
ASSERT_TRUE(plugin.return_identity_handle(local_identity_handle, exception));
455-
}
456-
else
457-
{
458-
ASSERT_TRUE(local_identity_handle == nullptr);
459-
ASSERT_TRUE(adjusted_participant_key == GUID_t::unknown());
460-
}
461-
};
428+
{
429+
IdentityHandle* local_identity_handle = nullptr;
430+
GUID_t adjusted_participant_key;
431+
uint32_t domain_id = 0;
432+
RTPSParticipantAttributes participant_attr;
433+
GUID_t candidate_participant_key;
434+
SecurityException exception;
435+
ValidationResult_t result = ValidationResult_t::VALIDATION_FAILED;
436+
437+
fill_candidate_participant_key(candidate_participant_key);
438+
participant_attr.properties = get_valid_policy();
439+
participant_attr.properties.properties().emplace_back(
440+
Property("dds.sec.auth.builtin.PKI-DH.preferred_key_agreement", alg));
441+
result = plugin.validate_local_identity(&local_identity_handle,
442+
adjusted_participant_key,
443+
domain_id,
444+
participant_attr,
445+
candidate_participant_key,
446+
exception);
447+
448+
ASSERT_TRUE(result == expected_result);
449+
if (ValidationResult_t::VALIDATION_OK == result)
450+
{
451+
ASSERT_TRUE(local_identity_handle != nullptr);
452+
check_local_identity_handle(*local_identity_handle);
453+
ASSERT_TRUE(adjusted_participant_key != GUID_t::unknown());
454+
ASSERT_TRUE(plugin.return_identity_handle(local_identity_handle, exception));
455+
}
456+
else
457+
{
458+
ASSERT_TRUE(local_identity_handle == nullptr);
459+
ASSERT_TRUE(adjusted_participant_key == GUID_t::unknown());
460+
}
461+
};
462462

463463
for (const std::string& value : correct_values)
464464
{

0 commit comments

Comments
 (0)