Skip to content

Commit 4bfe8b3

Browse files
Refs #21745. Add unittests
Signed-off-by: Juan Lopez Fernandez <[email protected]>
1 parent ae7b5a9 commit 4bfe8b3

File tree

8 files changed

+536
-12
lines changed

8 files changed

+536
-12
lines changed

test/mock/dds/DomainParticipantImpl/fastdds/domain/DomainParticipantImpl.hpp

+59
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,14 @@ class DomainParticipantImpl
479479
return RETCODE_OK;
480480
}
481481

482+
ReturnCode_t get_publisher_qos_from_xml(
483+
const std::string& /*xml*/,
484+
PublisherQos& /*qos*/,
485+
const std::string& /*profile_name*/) const
486+
{
487+
return RETCODE_OK;
488+
}
489+
482490
ReturnCode_t set_default_subscriber_qos(
483491
const SubscriberQos& /*qos*/)
484492
{
@@ -497,6 +505,14 @@ class DomainParticipantImpl
497505
return RETCODE_OK;
498506
}
499507

508+
ReturnCode_t get_subscriber_qos_from_xml(
509+
const std::string& /*xml*/,
510+
SubscriberQos& /*qos*/,
511+
const std::string& /*profile_name*/) const
512+
{
513+
return RETCODE_OK;
514+
}
515+
500516
ReturnCode_t set_default_topic_qos(
501517
const TopicQos& /*qos*/)
502518
{
@@ -515,20 +531,63 @@ class DomainParticipantImpl
515531
return RETCODE_OK;
516532
}
517533

534+
ReturnCode_t get_topic_qos_from_profile(
535+
const std::string& /*profile_name*/,
536+
TopicQos& /*qos*/,
537+
std::string& /*topic_name*/,
538+
std::string& /*topic_data_type*/) const
539+
{
540+
return RETCODE_OK;
541+
}
542+
543+
ReturnCode_t get_topic_qos_from_xml(
544+
const std::string& /*xml*/,
545+
TopicQos& /*qos*/,
546+
const std::string& /*profile_name*/) const
547+
{
548+
return RETCODE_OK;
549+
}
550+
551+
ReturnCode_t get_topic_qos_from_xml(
552+
const std::string& /*xml*/,
553+
TopicQos& /*qos*/,
554+
std::string& /*topic_name*/,
555+
std::string& /*topic_data_type*/,
556+
const std::string& /*profile_name*/) const
557+
{
558+
return RETCODE_OK;
559+
}
560+
518561
ReturnCode_t get_replier_qos_from_profile(
519562
const std::string& /*profile_name*/,
520563
ReplierQos& /*qos*/) const
521564
{
522565
return RETCODE_OK;
523566
}
524567

568+
ReturnCode_t get_replier_qos_from_xml(
569+
const std::string& /*xml*/,
570+
ReplierQos& /*qos*/,
571+
const std::string& /*profile_name*/) const
572+
{
573+
return RETCODE_OK;
574+
}
575+
525576
ReturnCode_t get_requester_qos_from_profile(
526577
const std::string& /*profile_name*/,
527578
RequesterQos& /*qos*/) const
528579
{
529580
return RETCODE_OK;
530581
}
531582

583+
ReturnCode_t get_requester_qos_from_xml(
584+
const std::string& /*xml*/,
585+
RequesterQos& /*qos*/,
586+
const std::string& /*profile_name*/) const
587+
{
588+
return RETCODE_OK;
589+
}
590+
532591
bool contains_entity(
533592
const InstanceHandle_t& /*handle*/,
534593
bool /*recursive*/) const

test/unittest/dds/participant/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ target_compile_definitions(ParticipantTests PRIVATE
4141
target_include_directories(ParticipantTests PRIVATE
4242
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
4343
${PROJECT_SOURCE_DIR}/src/cpp
44+
${PROJECT_SOURCE_DIR}/test/utils
4445
)
4546
target_link_libraries(ParticipantTests fastdds fastcdr foonathan_memory
4647
GTest::gmock

0 commit comments

Comments
 (0)