Files
poco/Net/testsuite/src/ICMPClientTest.h
Roger Meier b0581433a7 LICENSE: add info about SPDX-License-Identifier usage and use it
fix: remove executable flag and change back to 100644 (was 100755)

Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00

49 lines
1022 B
C++

//
// ICMPClientTest.h
//
// $Id: //poco/1.4/Net/testsuite/src/ICMPClientTest.h#1 $
//
// Definition of the ICMPClientTest class.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef ICMPClientTest_INCLUDED
#define ICMPClientTest_INCLUDED
#include "Poco/Net/Net.h"
#include "CppUnit/TestCase.h"
#include "Poco/Net/ICMPClient.h"
#include "Poco/Net/ICMPEventArgs.h"
class ICMPClientTest: public CppUnit::TestCase
{
public:
ICMPClientTest(const std::string& name);
~ICMPClientTest();
void testPing();
void setUp();
void tearDown();
static CppUnit::Test* suite();
void onBegin(const void* pSender, Poco::Net::ICMPEventArgs& args);
void onReply(const void* pSender, Poco::Net::ICMPEventArgs& args);
void onError(const void* pSender, Poco::Net::ICMPEventArgs& args);
void onEnd(const void* pSender, Poco::Net::ICMPEventArgs& args);
private:
Poco::Net::ICMPClient _icmpClient;
};
#endif // ICMPClientTest_INCLUDED