2002-07-11 07:34:41 +04:00
|
|
|
#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; }
|
|
|
|
|
2002-07-17 14:50:55 +04:00
|
|
|
static CppUnit::Test* Suite();
|
2002-07-11 07:34:41 +04:00
|
|
|
|
|
|
|
void TestFunc1(); // num += 10
|
|
|
|
void TestFunc2(); // num *= 2
|
|
|
|
void TestFunc3(); // num -= 5
|
2002-07-19 10:45:28 +04:00
|
|
|
void FailureFunc(); // Fails assertion
|
2002-07-11 07:34:41 +04:00
|
|
|
protected:
|
|
|
|
BLocker *fLocker;
|
|
|
|
int fNum;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _example_test_h_
|