1 #ifndef _beos_test_case_h_
2 #define _beos_test_case_h_
5 #include <cppunit/TestCase.h>
6 #include <StorageDefs.h>
7 #include <SupportDefs.h>
9 //! Base class for single threaded unit tests
10 class CPPUNIT_API BTestCase
: public CppUnit::TestCase
{
12 BTestCase(std::string Name
= "");
14 //! Displays the next sub test progress indicator (i.e. [0][1][2][3]...).
15 virtual void NextSubTest();
17 //! Starts a new sub test block (i.e. prints a newline :-)
18 virtual void NextSubTestBlock();
20 /*! \brief Prints to standard out just like printf, except shell verbosity
23 virtual void Outputf(const char *str
, ...);
25 //! Saves the location of the current working directory.
28 virtual void tearDown();
30 //! Restores the current working directory to last directory saved by a call to SaveCWD().
31 void RestoreCWD(const char *alternate
= NULL
);
34 char fCurrentWorkingDir
[B_PATH_NAME_LENGTH
+1];
38 #endif // _beos_test_case_h_