mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-04-23 20:57:12 +02:00
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.
47 lines
850 B
C++
47 lines
850 B
C++
//
|
|
// TimedNotificationQueueTest.h
|
|
//
|
|
// Definition of the TimedNotificationQueueTest class.
|
|
//
|
|
// Copyright (c) 2009, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef TimedNotificationQueueTest_INCLUDED
|
|
#define TimedNotificationQueueTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
|
#include "CppUnit/TestCase.h"
|
|
#include "Poco/TimedNotificationQueue.h"
|
|
#include "Poco/Mutex.h"
|
|
#include <set>
|
|
|
|
|
|
class TimedNotificationQueueTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
TimedNotificationQueueTest(const std::string& name);
|
|
~TimedNotificationQueueTest();
|
|
|
|
void testDequeue();
|
|
void testWaitDequeue();
|
|
void testWaitDequeueTimeout();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
protected:
|
|
void work();
|
|
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // TimedNotificationQueueTest_INCLUDED
|