mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-10 05:47:08 +01:00
Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
This commit is contained in:
1 parent
e0e34b4030
commit
4a6bfc086c
6219 files changed
+1209835
-454916
No files matched your search
+50
@@ -0,0 +1,50 @@
|
||||
//
|
||||
// ICMPClientTest.h
|
||||
//
|
||||
// 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"
|
||||
#include "Poco/Mutex.h"
|
||||
|
||||
|
||||
class ICMPClientTest: public CppUnit::TestCase
|
||||
{
|
||||
public:
|
||||
ICMPClientTest(const std::string& name);
|
||||
~ICMPClientTest();
|
||||
|
||||
void testPing();
|
||||
void testBigPing();
|
||||
|
||||
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:
|
||||
void registerDelegates(const Poco::Net::ICMPClient& icmpClient);
|
||||
void unregisterDelegates(const Poco::Net::ICMPClient& icmpClient);
|
||||
static Poco::FastMutex _mutex;
|
||||
};
|
||||
|
||||
|
||||
#endif // ICMPClientTest_INCLUDED
|
||||
Reference in new issue
Block a user