Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / CSD_Strategy_Tests / TP_Common / TestAppBase.h
blob40b06e5ca2d433c8f9354490eaca83cd882df0cc
1 #ifndef TESTAPPBASE_H
2 #define TESTAPPBASE_H
4 #include "CSD_TP_Test_Export.h"
5 #include "ace/SString.h"
6 #include "tao/Environment.h"
7 #include "ace/CORBA_macros.h"
9 class CSD_TP_Test_Export TestAppBase
11 public:
12 virtual ~TestAppBase();
14 // Returns 0 for success, and -1 for failure.
15 int run (int argc, ACE_TCHAR *argv[]);
17 const char *name() const;
19 protected:
20 TestAppBase (const char* name);
22 // Returns -1 for failure, 0 for success
23 virtual int run_i (int argc, ACE_TCHAR *argv[]) = 0;
25 private:
26 ACE_CString name_;
29 #endif