1//
2// TimerTest.h
3//
4// Definition of the TimerTest 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 TimerTest_INCLUDED
14#define TimerTest_INCLUDED
15
16
17#include "Poco/Foundation.h"
18#include "Poco/CppUnit/TestCase.h"
19#include "Poco/Timer.h"
20#include "Poco/Event.h"
21
22
23class TimerTest: public CppUnit::TestCase
24{
25public:
26 TimerTest(const std::string& name);
27 ~TimerTest();
28
29 void testTimer();
30 void testDuplicateStop();
31
32 void setUp();
33 void tearDown();
34
35 static CppUnit::Test* suite();
36
37protected:
38 void onTimer(Poco::Timer& t);
39
40private:
41 Poco::Event _event;
42};
43
44
45#endif // TimerTest_INCLUDED
46