X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Ftesting%2FTestStep.hpp;h=e4574c148c82a0fe8a56a67d8bc8bbba0e6e19f0;hb=c7742e2134826a05ee9c6bf89eebaa726dae0d1b;hp=1cb062d4c5521fe78d5f3b2238efdcddf7fd71d5;hpb=cbbe8862e2d4f395e61c1939fbbabf9e7f92fa2b;p=anna.git diff --git a/example/diameter/launcher/testing/TestStep.hpp b/example/diameter/launcher/testing/TestStep.hpp index 1cb062d..e4574c1 100644 --- a/example/diameter/launcher/testing/TestStep.hpp +++ b/example/diameter/launcher/testing/TestStep.hpp @@ -31,6 +31,9 @@ namespace anna { class Node; } namespace diameter { + namespace codec { + class Message; + } namespace comm { class ClientSession; class ServerSession; @@ -118,12 +121,14 @@ class TestStepSendxml : public TestStep { // Message anna::DataBlock a_message; + anna::diameter::codec::Message *a_messageCodec; // used as helper and for traffic logs // Expired ? bool a_expired; // a_endTimestamp will be the expiration reception timestamp public: - TestStepSendxml(TestCase *testCase) : TestStep(testCase), a_message(true), a_expired(false), a_realmNode(NULL), a_waitForRequestStepNumber(-1) {;} + TestStepSendxml(TestCase *testCase) : TestStep(testCase), a_message(true), a_messageCodec(NULL), a_expired(false), a_realmNode(NULL), a_waitForRequestStepNumber(-1) {;} + ~TestStepSendxml(); // setter & getters void setRealmNode(RealmNode *realm) throw() { a_realmNode = realm; } @@ -174,12 +179,13 @@ class TestStepWait : public TestStep { TestCondition a_condition; anna::DataBlock a_message; // message which complies with condition + anna::diameter::codec::Message *a_messageCodec; // used as helper and for traffic logs anna::diameter::comm::ClientSession *a_clientSession; anna::diameter::comm::ServerSession *a_serverSession; public: - TestStepWait(TestCase *testCase) : TestStep(testCase), a_message(true) { a_type = Type::Wait; a_clientSession = NULL; a_serverSession = NULL; } - ~TestStepWait() {;} + TestStepWait(TestCase *testCase) : TestStep(testCase), a_message(true), a_messageCodec(NULL) { a_type = Type::Wait; a_clientSession = NULL; a_serverSession = NULL; } + ~TestStepWait(); // setter & getters void setCondition(bool fromEntity, @@ -189,6 +195,8 @@ class TestStepWait : public TestStep { void setClientSession(anna::diameter::comm::ClientSession *cs) throw() { a_clientSession = cs; } void setServerSession(anna::diameter::comm::ServerSession *ss) throw() { a_serverSession = ss; } + anna::diameter::comm::ClientSession *getClientSession() const throw() { return a_clientSession; } + anna::diameter::comm::ServerSession *getServerSession() const throw() { return a_serverSession; } const TestCondition &getCondition() const throw() { return a_condition; } //void setMsgDataBlock(const anna::DataBlock &db) throw() { a_message = db; }