1//
2// NTPClientTest.h
3//
4// Definition of the NTPClientTest class.
5//
6// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef NTPClientTest_INCLUDED
14#define NTPClientTest_INCLUDED
15
16
17#include "Poco/Net/Net.h"
18#include "Poco/CppUnit/TestCase.h"
19#include "Poco/Net/NTPClient.h"
20#include "Poco/Net/NTPEventArgs.h"
21
22
23class NTPClientTest: public CppUnit::TestCase
24{
25public:
26 NTPClientTest(const std::string& name);
27 ~NTPClientTest();
28
29 void testTimeSync();
30
31 void setUp();
32 void tearDown();
33
34 static CppUnit::Test* suite();
35
36 void onResponse(const void* pSender, Poco::Net::NTPEventArgs& args);
37private:
38 Poco::Net::NTPClient _ntpClient;
39};
40
41
42#endif // NTPClientTest_INCLUDED
43