1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-15 01:07:12 +01:00
SqMod/vendor/POCO/Foundation/testsuite/src/NotificationQueueTest.h

52 lines
972 B
C
Raw Normal View History

//
// NotificationQueueTest.h
//
// Definition of the NotificationQueueTest class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef NotificationQueueTest_INCLUDED
#define NotificationQueueTest_INCLUDED
#include "Poco/Foundation.h"
#include "CppUnit/TestCase.h"
#include "Poco/NotificationQueue.h"
#include "Poco/Mutex.h"
#include <set>
class NotificationQueueTest: public CppUnit::TestCase
{
public:
NotificationQueueTest(const std::string& name);
~NotificationQueueTest();
void testQueueDequeue();
void testQueueDequeueUrgent();
void testWaitDequeue();
void testThreads();
void testDefaultQueue();
void setUp();
void tearDown();
static CppUnit::Test* suite();
protected:
void work();
private:
Poco::NotificationQueue _queue;
std::multiset<std::string> _handled;
Poco::FastMutex _mutex;
};
#endif // NotificationQueueTest_INCLUDED