From fbdbd2ca8e4df0b0d3cc345e8768b55a54ba7932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20L=C3=B3pez=20Fern=C3=A1ndez?= Date: Wed, 5 Jul 2023 15:39:42 +0200 Subject: [PATCH] Uncrustify MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan López Fernández --- src/cpp/rtps/transport/test_UDPv4Transport.cpp | 2 +- src/cpp/rtps/transport/test_UDPv4Transport.h | 2 +- .../common/DDSBlackboxTestsTransportSHMUDP.cpp | 17 ++++++++++------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/cpp/rtps/transport/test_UDPv4Transport.cpp b/src/cpp/rtps/transport/test_UDPv4Transport.cpp index aac8ae87fa8..efaaf07b06f 100644 --- a/src/cpp/rtps/transport/test_UDPv4Transport.cpp +++ b/src/cpp/rtps/transport/test_UDPv4Transport.cpp @@ -41,7 +41,7 @@ test_UDPv4TransportDescriptor::DestinationLocatorFilter test_UDPv4Transport::loc { return false; }); -std::map test_UDPv4Transport::messages_sent{}; +std::map test_UDPv4Transport::messages_sent{}; test_UDPv4Transport::test_UDPv4Transport( const test_UDPv4TransportDescriptor& descriptor) diff --git a/src/cpp/rtps/transport/test_UDPv4Transport.h b/src/cpp/rtps/transport/test_UDPv4Transport.h index fbb4b498080..c9145ddbe86 100644 --- a/src/cpp/rtps/transport/test_UDPv4Transport.h +++ b/src/cpp/rtps/transport/test_UDPv4Transport.h @@ -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 messages_sent; + RTPS_DllAPI static std::map messages_sent; protected: diff --git a/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp b/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp index 92e454f8038..c59f72f2fbb 100644 --- a/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp +++ b/test/blackbox/common/DDSBlackboxTestsTransportSHMUDP.cpp @@ -85,9 +85,11 @@ class SHMUDP : public testing::TestWithParam 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 reader(TEST_TOPIC_NAME); @@ -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()); @@ -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::iterator it = test_UDPv4Transport::messages_sent.begin(); it != test_UDPv4Transport::messages_sent.end(); ++it) + for (std::map::iterator it = test_UDPv4Transport::messages_sent.begin(); + it != test_UDPv4Transport::messages_sent.end(); ++it) { if (it->first % 2) {