Modified DECLARE/DEFINE to expect seperate scope.
[libsex.git] / tests / Exception.hxx
blobb4966ff53ed259d75be1c087b4b0c2803e115607
1 #ifndef TESTS_EXCEPTION_HXX
2 #define TESTS_EXCEPTION_HXX
4 #include <cppunit/extensions/HelperMacros.h>
6 namespace tests
8 class Exception;
11 class tests::Exception : public CppUnit::TestFixture
13 CPPUNIT_TEST_SUITE(Exception);
14 CPPUNIT_TEST(testCopyingOfShortMessage);
15 CPPUNIT_TEST(testWhetherLongMessageDoesNotOverflow);
16 CPPUNIT_TEST(testWhetherPreviousExceptionIsCloned);
17 CPPUNIT_TEST(testWhetherClonedExceptionIsDeleted);
18 CPPUNIT_TEST(testWhetherBadAllocOnCloneIsSwallowed);
19 CPPUNIT_TEST(testWhetherNoticeIsAppendedOnBadAlloc);
20 CPPUNIT_TEST(testWhetherNoticeDoesNotOverflowIfBufferTooSmall);
21 CPPUNIT_TEST(testWritingToStream);
22 CPPUNIT_TEST(testBacktrace);
23 CPPUNIT_TEST_SUITE_END();
25 public:
26 void testCopyingOfShortMessage();
27 void testWhetherLongMessageDoesNotOverflow();
28 void testWhetherPreviousExceptionIsCloned();
29 void testWhetherClonedExceptionIsDeleted();
30 void testWhetherBadAllocOnCloneIsSwallowed();
31 void testWhetherNoticeIsAppendedOnBadAlloc();
32 void testWhetherNoticeDoesNotOverflowIfBufferTooSmall();
33 void testWritingToStream();
34 void testBacktrace();
37 #endif