Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+69
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* SRP Data Topic test executable
|
||||
*
|
||||
* ModuleTests to get data from Service SituationReplay
|
||||
* -> getAll()
|
||||
* -> getItem()
|
||||
* ---------------------------------------------------
|
||||
* Client DTC is implemented
|
||||
*
|
||||
* => (!) Preconditon:
|
||||
* - Service sExeMgmt running
|
||||
*
|
||||
* -------------------------------------------------
|
||||
*
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*
|
||||
* Created by Hanna E. Rathje, SLSE, 2015-09-11
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <SituationReplay/srp_dtc.h>
|
||||
#include <SituationReplay/srp_dtc_types.h>
|
||||
#include <SituationReplay/logger.h>
|
||||
|
||||
#include <DDS/DDSConnector/dds_connector.h>
|
||||
#include <DDS/DDSConnector/publisher.h>
|
||||
#include <DDS/DDSConnector/subscriber.h>
|
||||
|
||||
//#include <Common/ProjectConfig/project_defines.h>
|
||||
|
||||
namespace SituationReplay
|
||||
{
|
||||
class SrpDtTests : public QObject
|
||||
{
|
||||
using Publisher = DDSConnector::Publisher;
|
||||
using Subscriber = DDSConnector::Subscriber;
|
||||
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SrpDtTests(QObject *parent = nullptr);
|
||||
~SrpDtTests();
|
||||
|
||||
bool init(int domainId, int exerciseId);
|
||||
bool testsSuccessful() const { return m_bTestsSuccessful; }
|
||||
|
||||
public Q_SLOTS:
|
||||
void startTest();
|
||||
protected Q_SLOTS:
|
||||
void tryGetAllSituationReplays();
|
||||
void tryGetSituationReplay();
|
||||
void onReceiveSituationReplayData(const SitReplay &data);
|
||||
protected:
|
||||
void failExit();
|
||||
|
||||
private:
|
||||
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
||||
std::shared_ptr<SituationReplay::Interface::Dtc> m_dtc;
|
||||
qint32 m_replayPartitionId;
|
||||
qint32 m_situationReplayId;
|
||||
bool m_bTestsSuccessful;
|
||||
LOGGER_T m_logger;
|
||||
|
||||
};
|
||||
|
||||
} // namespace SituationReplay
|
||||
Reference in new issue
Block a user