1//
2// FIFOBufferStreamTest.h
3//
4// Definition of the FIFOBufferStreamTest class.
5//
6// Copyright (c) 2009, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef FIFOBufferStreamTest_INCLUDED
14#define FIFOBufferStreamTest_INCLUDED
15
16
17#include "Poco/Foundation.h"
18#include "Poco/CppUnit/TestCase.h"
19
20
21class FIFOBufferStreamTest: public CppUnit::TestCase
22{
23public:
24 FIFOBufferStreamTest(const std::string& name);
25 ~FIFOBufferStreamTest();
26
27 void testInput();
28 void testOutput();
29 void testNotify();
30
31 void setUp();
32 void tearDown();
33
34 static CppUnit::Test* suite();
35
36protected:
37 void onReadable(bool& b);
38 void onWritable(bool& b);
39
40private:
41 int _readableToNot;
42 int _notToReadable;
43 int _writableToNot;
44 int _notToWritable;
45};
46
47
48#endif // FIFOBufferStreamTest_INCLUDED
49