Skip to content

Commit 992f002

Browse files
committed
Refs #23432. Add blackbox tests.
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
1 parent 635c003 commit 992f002

File tree

4 files changed

+374
-0
lines changed

4 files changed

+374
-0
lines changed

test/blackbox/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/discovery_participants_initial_peers_
184184
${CMAKE_CURRENT_BINARY_DIR}/discovery_participants_initial_peers_profile.xml)
185185
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/discovery_participants_client_server_profile.xml
186186
${CMAKE_CURRENT_BINARY_DIR}/discovery_participants_client_server_profile.xml)
187+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/transport_priority_profile.xml
188+
${CMAKE_CURRENT_BINARY_DIR}/transport_priority_profile.xml)
187189
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/datagrams" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
188190

189191
if(FASTDDS_PIM_API_TESTS)

test/blackbox/api/dds-pim/PubSubWriter.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ class PubSubWriter
359359

360360
eprosima::fastdds::dds::DataWriter& get_native_writer() const
361361
{
362+
EXPECT_NE(datawriter_, nullptr);
362363
return *datawriter_;
363364
}
364365

@@ -1677,6 +1678,13 @@ class PubSubWriter
16771678
return *this;
16781679
}
16791680

1681+
PubSubWriter& transport_priority(
1682+
int32_t prio)
1683+
{
1684+
datawriter_qos_.transport_priority().value = prio;
1685+
return *this;
1686+
}
1687+
16801688
const std::string& topic_name() const
16811689
{
16821690
return topic_name_;

0 commit comments

Comments
 (0)