X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Ftesting%2FTestStep.hpp;h=ebded3252b28a8d920b1418a87c70072e5e916e8;hb=5bf5055ab79aaf464e2491cfbab173ba37ba3419;hp=4f7e6e887939f8b9bb11359de1fb325d13d04261;hpb=687b0fa0b7c8440f71837334b0b29c28dfae2dca;p=anna.git diff --git a/example/diameter/launcher/testing/TestStep.hpp b/example/diameter/launcher/testing/TestStep.hpp index 4f7e6e8..ebded32 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 { @@ -121,7 +121,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 +132,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; } @@ -231,8 +231,10 @@ class TestStepCmd : public TestStep { std::string a_errorMsg; //std::string a_output; // for POPEN + pid_t a_childPid; + public: - TestStepCmd(TestCase *testCase) : TestStep(testCase), a_threadRunning(false), a_threadDeprecated(false), a_resultCode(-2)/*, a_output("")*/, a_errorMsg("") { a_type = Type::Cmd; } + TestStepCmd(TestCase *testCase) : TestStep(testCase), a_threadRunning(false), a_threadDeprecated(false), a_resultCode(-2)/*, a_output("")*/, a_errorMsg(""), a_childPid(-1) { a_type = Type::Cmd; } // setter & getters void setThreadRunning(bool running) throw() { a_threadRunning = running; } @@ -243,6 +245,8 @@ class TestStepCmd : public TestStep { const std::string &getErrorMsg() const throw() { return a_errorMsg; } //void appendOutput(const std::string &output) throw() { a_output += output; } //const std::string &getOutput() const throw() { return a_output; } + void setChildPid(pid_t pid) throw() { a_childPid = pid; } + const pid_t &getChildPid() const throw() { return a_childPid; } void setScript(const std::string &script) throw() { a_script = script; } const std::string &getScript() const throw() { return a_script; }