mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01:00
44 lines
758 B
C++
Executable File
44 lines
758 B
C++
Executable File
//
|
|
// ByteOrderTest.h
|
|
//
|
|
// $Id: //poco/1.4/Foundation/testsuite/src/ByteOrderTest.h#1 $
|
|
//
|
|
// Definition of the ByteOrderTest class.
|
|
//
|
|
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef ByteOrderTest_INCLUDED
|
|
#define ByteOrderTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class ByteOrderTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
ByteOrderTest(const std::string& name);
|
|
~ByteOrderTest();
|
|
|
|
void testByteOrderFlip();
|
|
void testByteOrderBigEndian();
|
|
void testByteOrderLittleEndian();
|
|
void testByteOrderNetwork();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // ByteOrderTest_INCLUDED
|