| 1 | // | 
|---|---|
| 2 | // BinaryReaderWriterTest.h | 
| 3 | // | 
| 4 | // Definition of the BinaryReaderWriterTest class. | 
| 5 | // | 
| 6 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. | 
| 7 | // and Contributors. | 
| 8 | // | 
| 9 | // SPDX-License-Identifier: BSL-1.0 | 
| 10 | // | 
| 11 | |
| 12 | |
| 13 | #ifndef BinaryReaderWriterTest_INCLUDED | 
| 14 | #define BinaryReaderWriterTest_INCLUDED | 
| 15 | |
| 16 | |
| 17 | #include "Poco/Foundation.h" | 
| 18 | #include "Poco/CppUnit/TestCase.h" | 
| 19 | #include "Poco/BinaryReader.h" | 
| 20 | #include "Poco/BinaryWriter.h" | 
| 21 | |
| 22 | |
| 23 | class BinaryReaderWriterTest: public CppUnit::TestCase | 
| 24 | { | 
| 25 | public: | 
| 26 | BinaryReaderWriterTest(const std::string& name); | 
| 27 | ~BinaryReaderWriterTest(); | 
| 28 | |
| 29 | void testNative(); | 
| 30 | void testBigEndian(); | 
| 31 | void testLittleEndian(); | 
| 32 | void testWrappers(); | 
| 33 | void write(Poco::BinaryWriter& writer); | 
| 34 | void read(Poco::BinaryReader& reader); | 
| 35 | |
| 36 | void setUp(); | 
| 37 | void tearDown(); | 
| 38 | |
| 39 | static CppUnit::Test* suite(); | 
| 40 | |
| 41 | private: | 
| 42 | }; | 
| 43 | |
| 44 | |
| 45 | #endif // BinaryReaderWriterTest_INCLUDED | 
| 46 | 
