Skip to content

Commit

Permalink
Refs #21841: Update unittests
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 Oct 21, 2024
1 parent 4516d38 commit 8585eb6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <set>

#include <fastdds/config.hpp>
#include <fastdds/rtps/common/Guid.hpp>
#include <fastdds/rtps/common/Locator.hpp>

#include <statistics/types/types.hpp>

Expand All @@ -35,25 +37,25 @@ namespace statistics {
#ifdef FASTDDS_STATISTICS

// auxiliary conversion functions
detail::Locator_s to_statistics_type(
inline detail::Locator_s to_statistics_type(
fastdds::rtps::Locator_t locator)
{
return *reinterpret_cast<detail::Locator_s*>(&locator);
}

fastdds::rtps::Locator_t to_fastdds_type(
inline fastdds::rtps::Locator_t to_fastdds_type(
detail::Locator_s locator)
{
return *reinterpret_cast<fastdds::rtps::Locator_t*>(&locator);
}

detail::GUID_s to_statistics_type(
inline detail::GUID_s to_statistics_type(
fastdds::rtps::GUID_t guid)
{
return *reinterpret_cast<detail::GUID_s*>(&guid);
}

fastdds::rtps::GUID_t to_fastdds_type(
inline fastdds::rtps::GUID_t to_fastdds_type(
detail::GUID_s guid)
{
return *reinterpret_cast<fastdds::rtps::GUID_t*>(&guid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class MonitorService
{
static constexpr int MIN_TIME_BETWEEN_PUBS_MS = 500;

friend class MonitorServiceListener;

public:

using endpoint_creator_t = std::function<bool (fastdds::rtps::RTPSWriter**,
Expand Down Expand Up @@ -261,6 +263,11 @@ class MonitorService
endpoint_registrator_t endpoint_registrator_;

MonitorServiceStatusDataPubSubType type_;

std::map<fastdds::rtps::GUID_t, ExtendedIncompatibleQoSStatusSeq_s>
extended_incompatible_qos_collection_;

std::mutex extended_incompatible_qos_mtx_;
};

#endif // FASTDDS_STATISTICS
Expand Down

0 comments on commit 8585eb6

Please sign in to comment.