1 | // |
2 | // TimedNotificationQueueTest.h |
3 | // |
4 | // Definition of the TimedNotificationQueueTest class. |
5 | // |
6 | // Copyright (c) 2009, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | |
13 | #ifndef TimedNotificationQueueTest_INCLUDED |
14 | #define TimedNotificationQueueTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/Foundation.h" |
18 | #include "Poco/CppUnit/TestCase.h" |
19 | #include "Poco/TimedNotificationQueue.h" |
20 | #include "Poco/Mutex.h" |
21 | #include <set> |
22 | |
23 | |
24 | class TimedNotificationQueueTest: public CppUnit::TestCase |
25 | { |
26 | public: |
27 | TimedNotificationQueueTest(const std::string& name); |
28 | ~TimedNotificationQueueTest(); |
29 | |
30 | void testDequeue(); |
31 | void testWaitDequeue(); |
32 | void testWaitDequeueTimeout(); |
33 | |
34 | void setUp(); |
35 | void tearDown(); |
36 | |
37 | static CppUnit::Test* suite(); |
38 | |
39 | protected: |
40 | void work(); |
41 | |
42 | private: |
43 | }; |
44 | |
45 | |
46 | #endif // TimedNotificationQueueTest_INCLUDED |
47 | |