| 1 | // | 
|---|---|
| 2 | // CoreTest.h | 
| 3 | // | 
| 4 | // Definition of the CoreTest 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 CoreTest_INCLUDED | 
| 14 | #define CoreTest_INCLUDED | 
| 15 | |
| 16 | |
| 17 | #include "Poco/Foundation.h" | 
| 18 | #include "Poco/CppUnit/TestCase.h" | 
| 19 | |
| 20 | |
| 21 | class CoreTest: public CppUnit::TestCase | 
| 22 | { | 
| 23 | public: | 
| 24 | CoreTest(const std::string& name); | 
| 25 | ~CoreTest(); | 
| 26 | |
| 27 | void testPlatform(); | 
| 28 | void testFixedLength(); | 
| 29 | void testBugcheck(); | 
| 30 | void testFPE(); | 
| 31 | void testEnvironment(); | 
| 32 | void testBuffer(); | 
| 33 | void testAtomicCounter(); | 
| 34 | void testAtomicFlag(); | 
| 35 | void testNullable(); | 
| 36 | void testAscii(); | 
| 37 | void testChecksum64(); | 
| 38 | void testMakeUnique(); | 
| 39 | |
| 40 | void setUp(); | 
| 41 | void tearDown(); | 
| 42 | |
| 43 | static CppUnit::Test* suite(); | 
| 44 | |
| 45 | protected: | 
| 46 | int _readableToNot; | 
| 47 | int _writableToNot; | 
| 48 | int _notToReadable; | 
| 49 | int _notToWritable; | 
| 50 | }; | 
| 51 | |
| 52 | |
| 53 | #endif // CoreTest_INCLUDED | 
| 54 | 
