- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
72 lines
2.0 KiB
C++
72 lines
2.0 KiB
C++
|
|
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <DDS/FTC/generic_ftc_impl.h>
|
|
#include <DDS/FTS/generic_fts_impl.h>
|
|
#include <DdsUnitTests/ddsut.hpp>
|
|
#include <DdsUnitTests/ddsut_ftc_types.h>
|
|
#include <DdsUnitTests/ddsut_fts_types.h>
|
|
#include <QObject>
|
|
#include <QSignalSpy>
|
|
#include <QThread>
|
|
|
|
namespace NGL
|
|
{
|
|
class INGLLogger;
|
|
}
|
|
|
|
class FunctionTopicTests : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FunctionTopicTests();
|
|
|
|
private Q_SLOTS:
|
|
void initTestCase();
|
|
void initFTSTestCase();
|
|
void initFTCTestCase();
|
|
void requestTestCase1();
|
|
void requestTestCase2();
|
|
void cleanupTestCase();
|
|
|
|
Q_SIGNALS:
|
|
void functionTopicRequestFinished();
|
|
void functionTopicReply();
|
|
protected Q_SLOTS:
|
|
|
|
void slotRequestedData(const DdsUnitTests::FunctionTopicTestReply& reply, int seqNo, bool bFinished);
|
|
void slotRequestedData(const DdsUnitTests::FunctionTopicTestWithStateReply& reply, int seqNo, bool bFinished);
|
|
void slotRequestedDataError(int reason, int seqNo, int requestId);
|
|
|
|
void onFunctionTopicRequest(const rti::core::SampleIdentity& sampleId,
|
|
const DdsUnitTests::FunctionRequest& request);
|
|
void onFunctionTopicRequest(const rti::core::SampleIdentity& sampleId,
|
|
const DdsUnitTests::FunctionRequestWithState& request);
|
|
|
|
private:
|
|
NGL::INGLLogger& m_logger;
|
|
void requestWithState();
|
|
|
|
private:
|
|
NGL::INGLLogger& m_logger;
|
|
std::unique_ptr<FTS::FunctionTopicTest> m_fts;
|
|
std::unique_ptr<FTS::FunctionTopicTestWithState> m_ftsWS;
|
|
|
|
std::unique_ptr<FTC::FunctionTopicTest> m_ftc;
|
|
std::unique_ptr<FTC::FunctionTopicTestWithState> m_ftcWS;
|
|
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnectorClient;
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnectorServer;
|
|
|
|
DdsUnitTests::FunctionRequest m_requestTopic;
|
|
DdsUnitTests::FunctionReply m_replyTopic;
|
|
|
|
DdsUnitTests::FunctionRequestWithState m_requestTopicWithState;
|
|
DdsUnitTests::FunctionReplyWithState m_replyTopicWithState;
|
|
|
|
Qt::HANDLE m_mainThreadId;
|
|
};
|