X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Ftesting%2FTestStep.hpp;h=75cbae35990011cd21e87999eb6ac79c5a8ecfa8;hb=61f1340da3cae5159d2e3bc14fc47c6d4bf9453e;hp=d239f974180e290c5202072d33585c44eff2e76b;hpb=603b76b5dc02acdfd87c58c51b6d48ae1858f58d;p=anna.git diff --git a/example/diameter/launcher/testing/TestStep.hpp b/example/diameter/launcher/testing/TestStep.hpp index d239f97..75cbae3 100644 --- a/example/diameter/launcher/testing/TestStep.hpp +++ b/example/diameter/launcher/testing/TestStep.hpp @@ -44,7 +44,7 @@ namespace anna { class TestCase; class TestTimer; -class RealmNode; +class OriginHost; class TestStep { @@ -87,7 +87,8 @@ class TestStep { // Message (not for all step types) anna::DataBlock a_message; anna::diameter::codec::Message *a_messageCodec; // used as helper and for traffic logs - bool decodeMessage() throw(); + bool decodeMessage(bool trust = false) throw(); // If trust=true: decoding the previously encoded message (sendxml sentences). + // The only error would be validation ones, and we are going to ignore them here. virtual bool do_execute() throw() = 0; // returns true if next step must be executed virtual void do_complete() throw() = 0; // end of transaction (delay/timeout expired, wait condition fulfilled, sending done) @@ -121,7 +122,7 @@ class TestStepSendxml : public TestStep { protected: // possible end points: - RealmNode *a_realmNode; + OriginHost *a_originHost; // Step number reference ('wait for request' step) int a_waitForRequestStepNumber; @@ -132,13 +133,13 @@ class TestStepSendxml : public TestStep { public: TestStepSendxml(TestCase *testCase) : TestStep(testCase), a_expired(false), - a_realmNode(NULL), + a_originHost(NULL), a_waitForRequestStepNumber(-1) {;} ~TestStepSendxml() {;} // setter & getters - void setRealmNode(RealmNode *realm) throw() { a_realmNode = realm; } - RealmNode *getRealmNode() const throw() { return a_realmNode; } + void setOriginHost(OriginHost *host) throw() { a_originHost = host; } + OriginHost *getOriginHost() const throw() { return a_originHost; } void setWaitForRequestStepNumber(int stepNumber) throw() { a_waitForRequestStepNumber = stepNumber; } int getWaitForRequestStepNumber() const throw() { return a_waitForRequestStepNumber; } void setMsgDataBlock(const anna::DataBlock &db) throw() { a_message = db; }