1 #ifndef _example_test_h_ 2 #define _example_test_h_ 3 4 #include <ThreadedTestCase.h> 5 #include <Locker.h> 6 7 class ExampleTest : public BThreadedTestCase { 8 public: 9 ExampleTest(std::string name = ""); 10 virtual ~ExampleTest() { delete fLocker; } 11 12 static CppUnit::Test* Suite(); 13 14 void TestFunc1(); // num += 10 15 void TestFunc2(); // num *= 2 16 void TestFunc3(); // num -= 5 17 void FailureFunc(); // Fails assertion 18 protected: 19 BLocker *fLocker; 20 int fNum; 21 }; 22 23 #endif // _example_test_h_ 24