1 | // |
---|---|
2 | // ByteOrderTest.h |
3 | // |
4 | // Definition of the ByteOrderTest 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 ByteOrderTest_INCLUDED |
14 | #define ByteOrderTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/Foundation.h" |
18 | #include "Poco/CppUnit/TestCase.h" |
19 | |
20 | |
21 | class ByteOrderTest: public CppUnit::TestCase |
22 | { |
23 | public: |
24 | ByteOrderTest(const std::string& name); |
25 | ~ByteOrderTest(); |
26 | |
27 | void testByteOrderFlip(); |
28 | void testByteOrderBigEndian(); |
29 | void testByteOrderLittleEndian(); |
30 | void testByteOrderNetwork(); |
31 | |
32 | void setUp(); |
33 | void tearDown(); |
34 | |
35 | static CppUnit::Test* suite(); |
36 | |
37 | private: |
38 | }; |
39 | |
40 | |
41 | #endif // ByteOrderTest_INCLUDED |
42 |