MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / TEST

Function TEST

tests/unit-tests/dds/DCPS/InternalTopic.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20typedef InternalDataReader<Sample> ReaderType;
21
22TEST(dds_DCPS_InternalTopic, connect_writer)
23{
24 RcHandle<TopicType> topic = make_rch<TopicType>();
25 RcHandle<ReaderType> reader = make_rch<ReaderType>(DataReaderQosBuilder().reliability_reliable());
26 TimeSource time_source;
27 RcHandle<WriterType> writer = make_rch<WriterType>(DataWriterQosBuilder(), time_source);
28
29 topic->connect(reader);
30 topic->connect(writer);
31
32 EXPECT_TRUE(writer->has_reader(reader));
33}
34
35TEST(dds_DCPS_InternalTopic, connect_reader)
36{

Callers

nothing calls this directly

Calls 3

connectMethod · 0.45
has_readerMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected