Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* AES Function Topic Client test executable
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "aes_test_base.h"
|
||||
|
||||
namespace AreaEffectSimulation
|
||||
{
|
||||
class TestExplosionArea final : public TestBase
|
||||
, protected AreaEffectSimulation::Interface::Ftc::ExplosionAreaModifyReplyHandler
|
||||
, protected AreaEffectSimulation::Interface::Ftc::ExplosionAreaPauseResumeReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TestExplosionArea(QObject *parent = nullptr);
|
||||
|
||||
bool init(int domainId, int exerciseId, int testId) override;
|
||||
public Q_SLOTS:
|
||||
void startTest() override { tryCreateExplosionArea(); }
|
||||
private Q_SLOTS:
|
||||
void tryCreateExplosionArea();
|
||||
void tryModifyExplosionArea();
|
||||
void tryWaitForActivationExplosionArea();
|
||||
void tryPauseResumeExplosionArea();
|
||||
void checkTriggeredExplosions();
|
||||
void checkTriggeredExplosionsHelper(int bitfield);
|
||||
protected Q_SLOTS:
|
||||
void explosionAreaChanged(const AreaEffectSimulation::ExplosionArea &data, DataModification modType);
|
||||
void triggeredImpactsChanged(const AreaEffectSimulation::TriggeredImpacts &data, DataModification modType);
|
||||
protected:
|
||||
void onExplosionAreaModifyReply(const Core::FunctionReplyObject &replyObject) override;
|
||||
void onExplosionAreaPauseResumeReply(const Core::FunctionReplyObject &replyObject) override;
|
||||
|
||||
private:
|
||||
bool checkBaseData(const AreaEffectSimulation::ExplosionArea &a,
|
||||
const AreaEffectSimulation::ExplosionArea &b) const;
|
||||
|
||||
private:
|
||||
AreaEffectSimulation::ExplosionArea m_eaData;
|
||||
AreaEffectSimulation::TriggeredImpacts m_tiData;
|
||||
};
|
||||
|
||||
} // namespace AreaEffectSimulation
|
||||
Reference in new issue
Block a user