diff options
Diffstat (limited to 'TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h')
-rw-r--r-- | TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h new file mode 100644 index 00000000000..5138ffbf84c --- /dev/null +++ b/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h @@ -0,0 +1,36 @@ +// $Id$ +#ifndef TESTAPPBASE_H +#define TESTAPPBASE_H + +#include "CSD_TP_Test_Export.h" +#include "ace/SString.h" +#include "tao/Environment.h" +#include "ace/CORBA_macros.h" + + +class CSD_TP_Test_Export TestAppBase +{ + public: + + virtual ~TestAppBase(); + + // Returns 0 for success, and -1 for failure. + int run(int argc, char* argv[] ACE_ENV_ARG_DECL); + + const char* name() const; + + + protected: + + TestAppBase(const char* name); + + // Returns -1 for failure, 0 for success + virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL) = 0; + + + private: + + ACE_CString name_; +}; + +#endif |