1 | // |
---|---|
2 | // ThreadTest.h |
3 | // |
4 | // Definition of the ThreadTest class. |
5 | // |
6 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | |
13 | #ifndef ThreadTest_INCLUDED |
14 | #define ThreadTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/Foundation.h" |
18 | #include "Poco/CppUnit/TestCase.h" |
19 | |
20 | |
21 | class ThreadTest: public CppUnit::TestCase |
22 | { |
23 | public: |
24 | ThreadTest(const std::string& name); |
25 | ~ThreadTest(); |
26 | |
27 | void testThread(); |
28 | void testNamedThread(); |
29 | void testCurrent(); |
30 | void testThreads(); |
31 | void testJoin(); |
32 | void testNotJoin(); |
33 | void testNotRun(); |
34 | void testNotRunJoin(); |
35 | void testTrySleep(); |
36 | void testThreadTarget(); |
37 | void testThreadFunction(); |
38 | void testThreadFunctor(); |
39 | void testThreadStackSize(); |
40 | void testSleep(); |
41 | void testAffinity(); |
42 | void testJoinNotStarted(); |
43 | |
44 | void setUp(); |
45 | void tearDown(); |
46 | |
47 | static CppUnit::Test* suite(); |
48 | |
49 | private: |
50 | }; |
51 | |
52 | |
53 | #endif // ThreadTest_INCLUDED |
54 |