11#ifndef ddsctesthelpers_testHelper_h
12#define ddsctesthelpers_testHelper_h
14#include "rtitest/test_setting.h"
15#include "dds_c/dds_c_typecode.h"
16#include "ndds/ndds_config_c.h"
17#include "ndds/ndds_transport_c.h"
18#include "dds_c/dds_c_publication.h"
19#include "dds_c/dds_c_subscription.h"
20#include "dds_c/dds_c_trust_plugins.h"
21#include "pres/pres_readerQueue.h"
22#include "commend/commend_readerService.h"
23#include "disc/disc_simple_discovery_plugin.h"
24#include "clock/clock_mock.h"
40#define DDSC_TESTER_DEFAULT_LIB "BuiltinQosLib"
41#define DDSC_TESTER_DEFAULT_PROFILE "Baseline"
56 #define DDS_C_TEST_THREAD_STACK_SIZE_DEFAULT (0x100000)
58 #define DDS_C_TEST_THREAD_STACK_SIZE_DEFAULT \
59 RTI_OSAPI_THREAD_STACK_SIZE_DEFAULT
62#define DDS_C_TEST_DSN_MAX_LENGTH 100
63#define DDS_C_TEST_LIBNAME_MAX_LENGTH 255
64#define DDS_C_TEST_MAX_TEST_DATABASES 10
66#define DDS_C_TEST_HELPER_LOGGER_DEVICE_DATA_MAX_SUBSTRINGS 10
74#define DDS_C_TEST_HELPER_MULTICHANNEL_RECEIVE_PORT_BASE 55005
75#define DDS_C_TEST_HELPER_MULTICHANNEL_RECEIVE_PORT_RANGE 2000
76#define DDS_C_TEST_HELPER_MULTICHANNEL_RECEIVE_PORT_RANGE_PER_DOMAIN 10
78#define DDSCTestHelper_calculateReceivePort(domainId__, offset__) \
79 (DDS_C_TEST_HELPER_MULTICHANNEL_RECEIVE_PORT_BASE + (offset__) + \
80 ((DDS_C_TEST_HELPER_MULTICHANNEL_RECEIVE_PORT_RANGE_PER_DOMAIN * (domainId__)) \
81 % DDS_C_TEST_HELPER_MULTICHANNEL_RECEIVE_PORT_RANGE))
83struct DDSCTesterHelperLoggerDeviceData {
84 unsigned int foundMessages;
89 const char *expectedMessage;
96 const char *additionalMessage;
106 const char *expectedSubStrings[DDS_C_TEST_HELPER_LOGGER_DEVICE_DATA_MAX_SUBSTRINGS];
117 struct RTIOsapiSemaphore *semaphore;
124 RTIBool ignoreLicenseRelatedMessages;
127#define DDSCTesterHelperLoggerDeviceData_INITIALIZER(expectedMessage__) { \
129 (expectedMessage__), \
136#define DDSCTesterHelperLoggerDeviceDataPropertyValidation_INITIALIZER \
137 DDSCTesterHelperLoggerDeviceData_INITIALIZER("Unexpected property")
139extern DDSCTESTDllExport
void DDSCTesterHelper_loggerDeviceWrite(
140 struct NDDS_Config_LoggerDevice *device,
141 const struct NDDS_Config_LogMessage *message);
143extern DDSCTESTDllExport
void DDSCTesterHelperLoggerDeviceData_finalize(
144 struct DDSCTesterHelperLoggerDeviceData *deviceData);
146extern DDSCTESTDllExport RTIBool DDSCTesterHelperLoggerDeviceData_initialize(
147 struct DDSCTesterHelperLoggerDeviceData *deviceData);
164extern DDSCTESTDllExport RTIBool
165DDSCTesterHelperLoggerDeviceData_changeExpectedMessage(
166 struct DDSCTesterHelperLoggerDeviceData *deviceData,
167 const char *expectedMessage);
175extern DDSCTESTDllExport RTIBool
176DDSCTesterHelper_cacheLoggingConfiguration(
void);
185extern DDSCTESTDllExport RTIBool
186DDSCTesterHelper_restoreLoggingConfiguration(
void);
192extern DDSCTESTDllExport RTIBool DDSCTesterHelper_getParticipantInstanceHandle(
193 DDS_InstanceHandle_t *instanceHandle,
194 DDS_DomainParticipant *participant);
196struct RTIDDSCTestOdbcDatabaseInfo {
197 char DSN[DDS_C_TEST_DSN_MAX_LENGTH];
198 char odbcDatabaseLib[DDS_C_TEST_LIBNAME_MAX_LENGTH];
206struct RTIDDSCTestSetting {
207 struct RTITestSetting parent;
208 int numOdbcDatabases;
209 int odbcDatabaseIndex;
210 struct RTIDDSCTestOdbcDatabaseInfo
211 testOdbcDatabaseInfo[DDS_C_TEST_MAX_TEST_DATABASES];
212 const char *libraryName;
213 const char *profileName;
222extern DDSCTESTDllExport RTIBool
234extern DDSCTESTDllExport RTIBool
235DDSCTesterHelper_setAndCacheDefaultDomainParticipantQosDiscoveryPlugins(
236 DDS_DiscoveryConfigBuiltinPluginKindMask plugins,
237 DDS_DiscoveryConfigBuiltinPluginKindMask *cachedPlugins);
250Public DDSCTESTDllExport RTIBool
251DDSCTesterHelper_skipInlineQos(
struct RTICdrStream *stream, RTI_UINT8 flags);
264Public DDSCTESTDllExport RTIBool DDSCTesterHelper_isRemoteEndpointMatched(
265 DDS_DomainParticipant *localParticipant,
266 MIGRtpsObjectId localEndpointOid,
267 struct MIGRtpsGuid *remoteEndpointGuid,
268 RTIBool requiresCompatibility);
277Public DDSCTESTDllExport
void
278DDSCDomainParticipantTrustPluginsTester_securityCreate(
279 struct DDS_TrustPluginSuite **security,
280 const struct DDS_PropertyQosPolicy *properties);
282extern DDSCTESTDllExport RTIBool
283DDSCTestHelper_initializeFactoryQosForXMLWithExtraProfileFile(
284 const struct RTITestSetting *setting,
285 struct DDS_DomainParticipantFactoryQos *factoryQos,
286 const char *extraProfileFile);
288extern DDSCTESTDllExport RTIBool DDSCTestHelper_initializeFactoryQosForXML(
289 const struct RTITestSetting *setting,
290 struct DDS_DomainParticipantFactoryQos *factoryQos);
292extern DDSCTESTDllExport
293RTIBool DDSCTestHelper_initializeMultiChannelQosPolicy(
294 struct DDS_MultiChannelQosPolicy *policy,
295 DDS_DomainId_t domainId,
298extern DDSCTESTDllExport RTIBool
299DDSCTestHelper_configureFactoryWithSingleXmlFile(
300 const struct RTITestSetting *setting,
301 const char *profileFile);
303extern DDSCTESTDllExport
void DDSCTestHelper_finalizeFactoryQosForXML(
void);
305extern DDSCTESTDllExport RTIBool
306DDSCTestHelper_DomainParticipantFactoryQosEquals(
307 const struct DDS_DomainParticipantFactoryQos *left,
308 const struct DDS_DomainParticipantFactoryQos *right);
310extern DDSCTESTDllExport RTIBool DDSCTestHelper_DomainParticipantQosEquals(
311 struct DDS_DomainParticipantQos *left,
312 const struct DDS_DomainParticipantQos *right);
314extern DDSCTESTDllExport RTIBool DDSCTestHelper_DataWriterQosEquals(
315 struct DDS_DataWriterQos *left,
316 const struct DDS_DataWriterQos *right);
318extern DDSCTESTDllExport RTIBool DDSCTestHelper_PublisherQosEquals(
319 const struct DDS_PublisherQos *left,
320 const struct DDS_PublisherQos *right);
322extern DDSCTESTDllExport RTIBool DDSCTestHelper_DataReaderQosEquals(
323 struct DDS_DataReaderQos *left,
324 const struct DDS_DataReaderQos *right);
326extern DDSCTESTDllExport RTIBool DDSCTestHelper_SubscriberQosEquals(
327 const struct DDS_SubscriberQos *left,
328 const struct DDS_SubscriberQos *right);
330extern DDSCTESTDllExport DDS_ReturnCode_t DDSCTestHelper_waitForData(
332 DDS_DataReader *reader,
335extern DDSCTESTDllExport DDS_ReturnCode_t DDSCTestHelper_waitForDataAdv(
337 DDS_DataReader *reader,
339 RTIBool timeoutIsExpected);
350extern DDSCTESTDllExport DDS_ReturnCode_t DDSCTestHelper_waitForDispose(
352 DDS_DataReader *reader,
365extern DDSCTESTDllExport DDS_ReturnCode_t DDSCTestHelper_waitForAck(
366 DDS_DataWriter *writer,
367 DDS_DataReader *reader,
370extern DDSCTESTDllExport
struct DDS_TypeCode *
371DDSCTestHelper_getTypeCodeFromXMLFile(
372 const char *typeName,
373 const char *fileName,
374 const char *filePath);
376extern DDSCTESTDllExport
struct DDS_TypeObject *
377DDSCTestHelper_getTypeObjectFromXMLFile(
378 const char *typeName,
379 const char *fileName,
380 const char *filePath);
382extern DDSCTESTDllExport
struct DDS_TypeObjectV2 *
383DDSCTestHelper_getTypeObjectV2FromXMLFile(
384 const char *typeName,
385 const char *fileName,
386 const char *filePath);
388extern DDSCTESTDllExport
void
389DDSCTestHelperParticipantQos_disableTypePropagation(
390 struct DDS_DomainParticipantQos *participantQos);
392extern DDSCTESTDllExport RTIBool
393DDSCTestHelperParticipantQos_typePropagationDisabled(
394 const struct DDS_DomainParticipantQos *participantQos);
396extern DDSCTESTDllExport RTIBool DDSCTestHelperParticipantQos_setEndianness(
397 struct DDS_DomainParticipantQos *participantQos,
398 MIGGeneratorEndian endian);
400extern DDSCTESTDllExport
void DDSCTestHelperEntity_printWithGuid(
402 const char *stringToPrint);
413extern DDSCTESTDllExport
int
414DDSCDomainParticipantTester_getDiscoveredParticipants(
415 DDS_DomainParticipant *participant,
416 struct DDS_InstanceHandleSeq *discPartSeqPtr);
427extern DDSCTESTDllExport
int
428DDSCDomainParticipantTester_getPartiallyDiscoveredParticipants(
429 DDS_DomainParticipant *participant,
430 struct DDS_InstanceHandleSeq *discPartSeqPtr);
432extern DDSCTESTDllExport RTIBool
433DDSCTestHelperUdpv4Property_setOnlyLoopbackAllowed(
434 struct NDDS_Transport_UDPv4_Property_t *udpv4Property);
436extern DDSCTESTDllExport RTIBool
437DDSCTestHelperUdpv4Property_setNoInterfacesAllowed(
438 struct NDDS_Transport_UDPv4_Property_t *udpv4Property);
440extern DDSCTESTDllExport
void DDSCTestHelperUdpv4Property_finalizeInterfaceList(
441 struct NDDS_Transport_UDPv4_Property_t *udpv4Property);
443extern DDSCTESTDllExport RTIBool DDSCTestHelper_setDefaultQosFromProfile(
444 DDS_DomainParticipant *participant,
445 DDS_Publisher *publisher,
446 DDS_Subscriber *subscriber,
447 const char *libraryName,
448 const char *profileName);
450extern DDSCTESTDllExport RTITestReturnCode DDSCTestHelper_runTestWithQoSProfile(
451 const struct RTITestSetting *setting,
452 const char *libraryName,
453 const char *profileName,
454 RTITestFunction testFunction);
456extern DDSCTESTDllExport RTITestReturnCode
457DDSCTestHelper_runTestWithDiscoveryPlugins(
458 const struct RTITestSetting *setting,
459 const char *METHOD_NAME,
460 RTITestFunction testToRun,
461 DDS_DiscoveryConfigBuiltinPluginKindMask plugins);
463#define DDSCTestHelper_runTestWithSpdp2(setting__, METHOD_NAME__, testToRun__) \
464 DDSCTestHelper_runTestWithDiscoveryPlugins( \
468 DDS_DISCOVERYCONFIG_BUILTIN_SDP2)
470extern DDSCTESTDllExport RTIBool DDSCTestHelper_fileExistsInResourceDir(
471 const struct RTITestSetting *setting,
472 const char *fileName);
496extern DDSCTESTDllExport RTIBool
497DDSCTesterHelper_ignoreExternalRemoteDomainParticipant(
498 DDS_DataReader *reader,
499 struct DDS_ParticipantBuiltinTopicData *participantData,
500 struct DDS_SampleInfo *sampleInfo,
501 RTIBool *participantIgnored);
503extern DDSCTESTDllExport RTIBool
504DDSCTesterTypeCodeHelper_initialize_enum_member(
505 struct DDS_EnumMemberSeq *members,
510extern DDSCTESTDllExport RTIBool DDSCTesterTypeCodeHelper_finalize_enum_member(
511 struct DDS_EnumMemberSeq *members,
514extern DDSCTESTDllExport RTIBool
515DDSCTesterTypeCodeHelper_initialize_union_member(
516 struct DDS_UnionMemberSeq *members,
519 struct DDS_LongSeq *labels,
522extern DDSCTESTDllExport RTIBool DDSCTesterTypeCodeHelper_finalize_union_member(
523 struct DDS_UnionMemberSeq *members,
526extern DDSCTESTDllExport RTIBool
527DDSCTesterTypeCodeHelper_initialize_value_member(
528 struct DDS_ValueMemberSeq *members,
532 DDS_Boolean isOptional,
534 DDS_Visibility access);
536extern DDSCTESTDllExport RTIBool DDSCTesterTypeCodeHelper_finalize_value_member(
537 struct DDS_ValueMemberSeq *members,
540extern DDSCTESTDllExport RTIBool DDSCTesterTypeCodeHelper_initialize_st_member(
541 struct DDS_StructMemberSeq *stMembers,
546 DDS_Boolean isOptional,
549extern DDSCTESTDllExport RTIBool DDSCTesterTypeCodeHelper_finalize_st_member(
550 struct DDS_StructMemberSeq *stMembers,
567extern DDSCTESTDllExport RTIBool DDSCTestHelper_blockTransportSend(
568 DDS_DomainParticipant *participant,
569 NDDS_Transport_Send_Fcn *oldSendFunction,
570 const char *transportName);
578extern DDSCTESTDllExport RTIBool DDSCTestHelper_unblockTransportSend(
579 DDS_DomainParticipant *participant,
580 NDDS_Transport_Send_Fcn oldSendFunction,
581 const char *transportName);
592RTIBool DDSCTestHelper_blockReceiveFromParticipant(
593 DDS_DomainParticipant *participant,
594 DDS_DomainParticipant *participantToBlock,
595 DDS_TransportBuiltinKind transportKind);
606RTIBool DDSCTestHelper_unblockReceiveFromParticipant(
607 DDS_DomainParticipant *participant,
608 DDS_TransportBuiltinKind transportKind);
623extern DDSCTESTDllExport
624DDS_Boolean DDSCTestHelper_getDataReaderQueueStatus(
625 DDS_DataReader *reader,
626 const struct DDS_GUID_t *topicQueryGuid,
627 PRESReaderQueueStatus *status);
643DDS_Boolean DDSCTestHelper_dataReaderRemoteWriterQueueExists(
644 DDS_DataReader *reader,
645 const struct DDS_GUID_t *topicQueryGuid,
646 const struct DDS_GUID_t *writerGuid);
662extern DDSCTESTDllExport
663DDS_Boolean DDSCTestHelper_getDataReaderRemoteWriterQueueStatus(
664 DDS_DataReader *reader,
665 const struct DDS_GUID_t *topicQueryGuid,
666 const struct DDS_GUID_t *writerGuid,
667 PRESReaderQueueRemoteWriterQueueStatus *status);
669extern DDSCTESTDllExport RTIBool
670DDSCTestHelper_checkDataReaderInstanceStatistics(
671 const struct DDS_DataReaderCacheStatus *expected,
672 const struct DDS_DataReaderCacheStatus *actual);
674extern DDSCTESTDllExport RTIBool
675DDSCTestHelper_checkDataWriterInstanceStatistics(
676 const struct DDS_DataWriterCacheStatus *expected,
677 const struct DDS_DataWriterCacheStatus *actual);
679extern DDSCTESTDllExport
int DDSCTestHelper_getUDPv4interfacesCount(
680 DDS_DomainParticipant *self,
681 NDDS_Transport_ClassId_t transport);
683extern DDSCTESTDllExport
684RTIBool DDSCTestHelper_setSubmessageLength(
685 struct RTICdrStream *stream,
686 struct REDABuffer *buffers,
687 RTI_UINT16 newLength);
689extern DDSCTESTDllExport RTIBool DDSCTestHelper_positionStreamToBinaryProperty(
690 struct RTICdrStream *stream,
692 RTI_INT32 bufferLength,
693 const char *propertyName);
695extern DDSCTESTDllExport RTIBool
696DDSCTestHelper_positionStreamToNextPid(
struct RTICdrStream *stream);
698extern DDSCTESTDllExport RTIBool DDSCTestHelper_positionStreamToPid(
699 struct RTICdrStream *stream,
700 struct REDABuffer *buffer,
701 MIGRtpsParameterId pidToFind,
702 RTIBool skipEncapsulation);
717extern DDSCTESTDllExport DDS_ReturnCode_t
718DDSCTestHelper_positionBufferToSubmessageId(
719 struct REDABuffer *bufferOut,
721 const struct REDABuffer *bufferIn,
722 MIGRtpsSubmessageId requestedSubmessageId);
724extern DDSCTESTDllExport
void
725DDSCTestHelper_onAfterRemoteParticipantAuthenticatedCheckLiveliness(
726 struct DISCParticipantDiscoveryListener *listener,
727 struct DISCParticipantDiscoveryPlugin *plugin,
728 const struct DISCBuiltinTopicParticipantData *data,
729 const struct DISCPluginCustomOptions *pluginOptions,
730 const struct DISCPluginListenerStorage *listenerStorage,
731 struct REDAWorker *worker);
733struct DDSCTestHelper_onDataAvailableListenerStorage {
734 int nonSecureAliveSamplesReceived;
735 int secureAliveSamplesReceived;
736 int nonSecureDisposeSamplesReceived;
737 int secureDisposeSamplesReceived;
738 struct PRESParticipantChannelReaderListener originalListener;
742#define DDSCTestHelper_onDataAvailableListenerStorage_INITIALIZER \
748 PRESParticipantChannelReaderListener_INITIALIZER \
751extern DDSCTESTDllExport RTIBool
752DDSCTestHelper_setTestOnAfterRemoteParticipantAuthenticated(
753 DDS_DomainParticipant *participant,
755 RTIBool shutdownLivelinessOnAuth,
756 DISCParticipantDiscoveryListenerOnAfterRemoteParticipantAuthenticatedCallback
757 onAfterRemoteParticipantAuthenticated);
759extern DDSCTESTDllExport RTIBool
760DDSCDomainParticipantQos_setTestSPDP2LivelinessQosPolicies(
761 struct DDS_DomainParticipantQos *participantQos,
762 int initialParticipantAnnouncements,
763 const struct DDS_Duration_t *minInitialParticipantAnnouncementPeriod,
764 const struct DDS_Duration_t *maxInitialParticipantAnnouncementPeriod,
765 const struct DDS_Duration_t *participantLivelinessAssertPeriod,
766 const struct DDS_Duration_t *participantAnnouncementPeriod,
767 const struct DDS_Duration_t *participantLivelinessLeaseDuration,
768 const struct DDS_Duration_t *maxLivelinessLossDetectionPeriod,
769 const struct DDS_Duration_t *secureVolatileWriterFastHeartBeatPeriod);
771struct DDSCTestHelperDirectedWriteListenerData {
773 PRESDirectedWriteSerializationKind serializationKind;
776 RTIBool delayPublicationDiscovery;
777 struct PRESProductVersion *productVersion;
778 struct MIGRtpsGuid *guid;
781#define DDSCTestHelperDirectedWriteListenerData_INITIALIZER \
784 PRES_DIRECTED_WRITE_AUTO_SERIALIZATION, \
792extern DDSCTESTDllExport
void
793DDSCTestHelper_onBeforeFlushChangeVendorIdAndProtocolVersion(
795 struct REDABuffer *buffers,
797 const struct MIGRtpsGuid *senderParticipantId);
799extern DDSCTESTDllExport
void
800DDSCTestHelper_onBeforeEndSubmessageChangeVendorId(
802 struct REDABuffer *buffers,
804 MIGRtpsSubmessageId submessageId,
805 const struct MIGRtpsGuid *senderGuid);
807extern DDSCTESTDllExport
void DDSCTestHelper_setupNonRtiTamperingListener(
808 struct MIGGeneratorListener *listener,
809 struct DDSCTestHelperDirectedWriteListenerData *listenerData,
810 RTIBool isUsingSecurity);
812struct DDSCTestHelperVendorBuiltinEndpointsListenerData {
813 DDS_UnsignedLong expectedVendorBuiltinEndpoints;
817#define DDSCTestHelperVendorBuiltinEndpointsListenerData_INITIALIZER \
823extern DDSCTESTDllExport
void
824DDSCTestHelper_checkVendorBuiltinEndpointsOnBeforeEndSubmessage(
826 struct REDABuffer *buffers,
828 MIGRtpsSubmessageId submessageId,
829 const struct MIGRtpsGuid *senderGuid);
831extern DDSCTESTDllExport RTIBool
832DDSCTestHelper_setAndCacheAutoEnableCreatedEntities(
833 DDS_Boolean *cachedValue,
834 DDS_Boolean setValue);
836extern DDSCTESTDllExport RTIBool DDSCTestHelper_setBuiltinReaderListener(
837 DDS_DomainParticipant *participant,
838 const char *builtinTopicName,
839 const struct DDS_DataReaderListener *listener,
840 DDS_StatusMask listenerStatusMask);
842typedef struct DDSCTestHelperLocatorCheckerListenerData {
843 struct DDS_Locator_t expectedLocator;
848 RTIBool locatorFound;
849 RTI_INT32 maxLocatorExpected;
851} DDSCTestHelperLocatorCheckerListenerData;
857#define DDSC_TEST_HELPER_DDS_LOCATOR_INVALID { \
860 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, \
861 DDS_SEQUENCE_INITIALIZER \
864#define DDSCTestHelperLocatorCheckerListenerData_INITIALIZER { \
865 DDSC_TEST_HELPER_DDS_LOCATOR_INVALID, \
871extern DDSCTESTDllExport
void
872DDSCTestHelper_onDataAvailableParticipantLocatorChecker(
874 DDS_DataReader *reader);
876extern DDSCTESTDllExport
void
877DDSCTestHelper_onDataAvailableSubscriptionLocatorChecker(
879 DDS_DataReader *reader);
881extern DDSCTESTDllExport
void
882DDSCTestHelper_onDataAvailablePublicationLocatorChecker(
884 DDS_DataReader *reader);
886extern DDSCTESTDllExport
struct RTIClock *DDSCTestHelper_installMockClock(
887 const struct RTIMockClockProperty *mockClockProperty);
889extern DDSCTESTDllExport DDS_Boolean DDSCTestHelper_uninstallMockClock(
890 struct RTIClock *clock);
892extern DDSCTESTDllExport
893RTIBool DDSCTestHelper_setTestParticipantDiscOnDataAvailable(
894 DDS_DomainParticipant *participant,
895 MIGRtpsObjectId readerObjectId,
896 MIGRtpsObjectId secureReaderObjectId,
897 struct DDSCTestHelper_onDataAvailableListenerStorage *listenerStorage,
898 PRESPsReaderListenerOnDataAvailableCallback onDataAvailable);
900extern DDSCTESTDllExport
901RTIBool DDSCTestHelper_getRemoteParticipantData(
902 DDS_DomainParticipant *participant,
903 struct DDS_ParticipantBuiltinTopicData *participantData,
904 DDS_DomainParticipant *remoteParticipant);
906extern DDSCTESTDllExport
907MIGRtpsObjectId DDSCTestHelper_getWriterObjectIdInFlush(
908 struct REDABuffer *buffers,
909 const int bufferCount);
916 DDS_C_TEST_HELPER_NO_LOG_EXPECTED = 0,
917 DDS_C_TEST_HELPER_EXPECTED_WARNING = 1,
918 DDS_C_TEST_HELPER_EXPECTED_ERROR = 2
919} DDSCTestHelperExpectedLogging;
935extern DDSCTESTDllExport
936DDS_ReturnCode_t DDSCTestHelper_readFuzzInputFile(
937 const struct RTITestSetting *setting,
938 unsigned char **data,
940 const char *fileName);
957extern DDSCTESTDllExport
958DDS_ReturnCode_t DDSCTestHelper_copyStringAndNullTerminate(
960 const RTI_UINT8 *src,
976 DDSC_SPDP2_TESTER_NO_ADD_PEER,
981 DDSC_SPDP2_TESTER_ADD_PEER_BEFORE_REDISCOVERY,
986 DDSC_SPDP2_TESTER_ADD_PEER_AFTER_REDISCOVERY
987} DDSCDomainParticipantDiscoverySpdp2TesterAddPeerTestCase;
997Package
struct DDSCTestHelperTamperingListenerData {
1004 RTIBool corruptData;
1009 RTIBool corruptInfoDst;
1015 RTIBool corruptRelatedEntityGuid;
1017 MIGRtpsObjectId writerToCorrupt;
1028 struct MIGRtpsGuid destGuidToCorrupt;
1033 RTIBool messageCorrupted;
1036#define DDSCTestHelperTamperingListenerData_INITIALIZER \
1042 MIG_RTPS_OBJECT_ID_UNKNOWN, \
1043 MIG_RTPS_GUID_UNKNOWN, \
1058void DDSCTestHelper_onBeforeEndSubmessageTamperData(
1060 struct REDABuffer *buffers,
1062 MIGRtpsSubmessageId submessageId,
1063 const struct MIGRtpsGuid *senderGuid);
1078void DDSCTestHelper_onBeforeFlushTamperInfoDst(
1081 struct REDABuffer *buffers,
1084 const struct MIGRtpsGuid *senderParticipantId);
1086extern DDSCTESTDllExport
1087RTIBool DDSCTestHelper_addPartition(
1088 struct DDS_PartitionQosPolicy *partitionQos,
1089 const char *partitionName);
1153extern DDSCTESTDllExport
1154RTIBool DDSCTestHelper_assertDataReaderLossPercentagePropertyExt(
1155 DDS_PropertyQosPolicy *policy,
1156 COMMENDReaderLossKind dropPolicy,
1184extern DDSCTESTDllExport DDS_DomainParticipantFactory *
1185DDSCTestHelper_disableMonitoringAndGetFactory(
void);
1198extern DDSCTESTDllExport DDS_Boolean
1199DDSCTestHelper_restoreMonitoringDefaults(
void);
1208void DDSCTestHelper_configureParticipantQosTypeObject(
1209 struct DDS_DomainParticipantQos *participantQos,
1210 RTIBool useTypeObjectV2);
RTIBool DDSCTestHelper_detectInterferingParticipants(int domainId)
Creates a participant in an scenario where no participants are expected to detect interferences.