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