| 1 | // |
|---|---|
| 2 | // TextConverterTest.h |
| 3 | // |
| 4 | // Definition of the TextConverterTest 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 TextConverterTest_INCLUDED |
| 14 | #define TextConverterTest_INCLUDED |
| 15 | |
| 16 | |
| 17 | #include "Poco/Foundation.h" |
| 18 | #include "Poco/CppUnit/TestCase.h" |
| 19 | |
| 20 | |
| 21 | class TextConverterTest: public CppUnit::TestCase |
| 22 | { |
| 23 | public: |
| 24 | TextConverterTest(const std::string& name); |
| 25 | ~TextConverterTest(); |
| 26 | |
| 27 | void testIdentityASCII(); |
| 28 | void testIdentityUTF8(); |
| 29 | void testUTF8toASCII(); |
| 30 | void testLatin1toUTF8(); |
| 31 | void testLatin2toUTF8(); |
| 32 | void testLatin9toUTF8(); |
| 33 | void testCP1250toUTF8(); |
| 34 | void testCP1251toUTF8(); |
| 35 | void testCP1252toUTF8(); |
| 36 | void testErrors(); |
| 37 | |
| 38 | void setUp(); |
| 39 | void tearDown(); |
| 40 | |
| 41 | static CppUnit::Test* suite(); |
| 42 | |
| 43 | private: |
| 44 | }; |
| 45 | |
| 46 | |
| 47 | #endif // TextConverterTest_INCLUDED |
| 48 |