2012-04-23 03:14:34 +02:00
|
|
|
//
|
|
|
|
// TimedNotificationQueueTest.h
|
|
|
|
//
|
|
|
|
// $Id: //poco/1.4/Foundation/testsuite/src/TimedNotificationQueueTest.h#1 $
|
|
|
|
//
|
|
|
|
// Definition of the TimedNotificationQueueTest class.
|
|
|
|
//
|
|
|
|
// Copyright (c) 2009, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
2014-05-04 21:02:42 +02:00
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
2012-04-23 03:14:34 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#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
|