Skip to content

Commit

Permalink
Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: Juan López Fernández <[email protected]>
  • Loading branch information
juanlofer-eprosima committed Jul 5, 2023
1 parent 61dd20d commit fbdbd2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cpp/rtps/transport/test_UDPv4Transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test_UDPv4TransportDescriptor::DestinationLocatorFilter test_UDPv4Transport::loc
{
return false;
});
std::map<uint32_t,uint32_t> test_UDPv4Transport::messages_sent{};
std::map<uint32_t, uint32_t> test_UDPv4Transport::messages_sent{};

test_UDPv4Transport::test_UDPv4Transport(
const test_UDPv4TransportDescriptor& descriptor)
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/transport/test_UDPv4Transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class test_UDPv4Transport : public UDPv4Transport
RTPS_DllAPI static test_UDPv4TransportDescriptor::DestinationLocatorFilter locator_filter;

// Record the number of packages sent to the different ports (key)
RTPS_DllAPI static std::map<uint32_t,uint32_t> messages_sent;
RTPS_DllAPI static std::map<uint32_t, uint32_t> messages_sent;

protected:

Expand Down
17 changes: 10 additions & 7 deletions test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ class SHMUDP : public testing::TestWithParam<communication_type>

TEST_P(SHMUDP, Transport_SHM_UDP_test)
{
static struct test_conditions{
static struct test_conditions
{
uint32_t sub_unicast_port = 7527;
} conditions;
}
conditions;

// Set up
PubSubReader<HelloWorldPubSubType> reader(TEST_TOPIC_NAME);
Expand All @@ -104,10 +106,10 @@ TEST_P(SHMUDP, Transport_SHM_UDP_test)
.reliability(BEST_EFFORT_RELIABILITY_QOS)
.durability_kind(VOLATILE_DURABILITY_QOS)
.history_kind(KEEP_ALL_HISTORY_QOS)
// .add_to_default_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port)
// .add_to_default_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port, true) // SHM (extend method)
// .add_to_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port)
// .add_to_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port, true) // SHM (extend method)
// .add_to_default_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port)
// .add_to_default_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port, true) // SHM (extend method)
// .add_to_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port)
// .add_to_unicast_locator_list("127.0.0.1", conditions.sub_unicast_port, true) // SHM (extend method)
.init();
ASSERT_TRUE(reader.isInitialized());

Expand Down Expand Up @@ -148,7 +150,8 @@ TEST_P(SHMUDP, Transport_SHM_UDP_test)
// even and user ones odd.
// uint32_t n_packages_sent = test_UDPv4Transport::messages_sent[conditions.sub_unicast_port];
uint32_t n_packages_sent = 0;
for (std::map<uint32_t,uint32_t>::iterator it = test_UDPv4Transport::messages_sent.begin(); it != test_UDPv4Transport::messages_sent.end(); ++it)
for (std::map<uint32_t, uint32_t>::iterator it = test_UDPv4Transport::messages_sent.begin();
it != test_UDPv4Transport::messages_sent.end(); ++it)
{
if (it->first % 2)
{
Expand Down

0 comments on commit fbdbd2c

Please sign in to comment.