Files
haiku-beta6/src/tests/ExampleTest.h
T
Tyler Dauwalder d1f6c38f0d Unit testing update:
- Verbosity is now honored globally
- Added BTestCase::Outputf()
- Migrated BNode, BStatable, BDirectory, and BPath tests
- Added CommonTestLib, TestLib, and R5TestLib rules to Jamrules
- Updated Jamfiles for unit testing stuff
- Probably a few other things I've forgotten


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 10:50:55 +00:00

23 lines
439 B
C++

#ifndef _example_test_h_
#define _example_test_h_
#include <ThreadedTestCase.h>
#include <Locker.h>
class ExampleTest : public BThreadedTestCase {
public:
ExampleTest(std::string name = "");
virtual ~ExampleTest() { delete fLocker; }
static CppUnit::Test* Suite();
void TestFunc1(); // num += 10
void TestFunc2(); // num *= 2
void TestFunc3(); // num -= 5
protected:
BLocker *fLocker;
int fNum;
};
#endif // _example_test_h_