Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* 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
|
||||
Reference in new issue
Block a user