1 | // |
---|---|
2 | // UnicodeConverterTest.cpp |
3 | // |
4 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
5 | // and Contributors. |
6 | // |
7 | // SPDX-License-Identifier: BSL-1.0 |
8 | // |
9 | |
10 | |
11 | #ifndef POCO_NO_WSTRING |
12 | |
13 | |
14 | #include "Poco/UnicodeConverter.h" |
15 | #include "UnicodeConverterTest.h" |
16 | #include "Poco/CppUnit/TestCaller.h" |
17 | #include "Poco/CppUnit/TestSuite.h" |
18 | #include "Poco/UTFString.h" |
19 | |
20 | |
21 | UnicodeConverterTest::UnicodeConverterTest(const std::string& rName): CppUnit::TestCase(rName) |
22 | { |
23 | } |
24 | |
25 | |
26 | UnicodeConverterTest::~UnicodeConverterTest() |
27 | { |
28 | } |
29 | |
30 | |
31 | void UnicodeConverterTest::testUTF16() |
32 | { |
33 | runTests<Poco::UTF16String>(); |
34 | } |
35 | |
36 | |
37 | void UnicodeConverterTest::testUTF32() |
38 | { |
39 | runTests<Poco::UTF32String>(); |
40 | } |
41 | |
42 | |
43 | void UnicodeConverterTest::setUp() |
44 | { |
45 | } |
46 | |
47 | |
48 | void UnicodeConverterTest::tearDown() |
49 | { |
50 | } |
51 | |
52 | |
53 | CppUnit::Test* UnicodeConverterTest::suite() |
54 | { |
55 | CppUnit::TestSuite* pSuite = new CppUnit::TestSuite("UnicodeConverterTest"); |
56 | |
57 | CppUnit_addTest(pSuite, UnicodeConverterTest, testUTF16); |
58 | CppUnit_addTest(pSuite, UnicodeConverterTest, testUTF32); |
59 | |
60 | return pSuite; |
61 | } |
62 | |
63 | |
64 | #endif |
65 | |
66 |