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