vfs: check userland buffers before reading them.
[haiku.git] / src / tests / ExampleTest.h
bloba18c56fd2bcfb74acc296ea1d7363510b51ef93c
1 #ifndef _example_test_h_
2 #define _example_test_h_
4 #include <ThreadedTestCase.h>
5 #include <Locker.h>
7 class ExampleTest : public BThreadedTestCase {
8 public:
9 ExampleTest(std::string name = "");
10 virtual ~ExampleTest() { delete fLocker; }
12 static CppUnit::Test* Suite();
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;
23 #endif // _example_test_h_