45 lines
1.3 KiB
C++
Executable File
45 lines
1.3 KiB
C++
Executable File
/**
|
|
* AES Function Topic Client test executable
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "aes_test_base.h"
|
|
|
|
namespace AreaEffectSimulation
|
|
{
|
|
class TestNContamination final : public TestBase
|
|
, protected AreaEffectSimulation::Interface::Ftc::NContaminationModifyReplyHandler
|
|
, protected AreaEffectSimulation::Interface::Ftc::NContaminationRemoveReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TestNContamination(QObject *parent = nullptr);
|
|
|
|
bool init(int domainId, int exerciseId, int testId) override;
|
|
public Q_SLOTS:
|
|
void startTest() override { tryCreateNContamination(); }
|
|
private Q_SLOTS:
|
|
void tryCreateNContamination();
|
|
void tryModifyNContamination();
|
|
void waitExpireNContamination();
|
|
void tryRemoveNContamination();
|
|
protected Q_SLOTS:
|
|
void nContaminationChanged(const AreaEffectSimulation::NContamination &data, DataModification modType);
|
|
protected:
|
|
void onNContaminationModifyReply(const Core::FunctionReplyObject &replyObject) override;
|
|
void onNContaminationRemoveReply(const Core::FunctionReplyObject &replyObject) override;
|
|
|
|
private:
|
|
bool checkBaseData(const AreaEffectSimulation::NContamination &a,
|
|
const AreaEffectSimulation::NContamination &b) const;
|
|
|
|
private:
|
|
AreaEffectSimulation::NContamination m_ncData;
|
|
};
|
|
|
|
} // namespace AreaEffectSimulation
|