]>
git.saurik.com Git - wxWidgets.git/blob - tests/streams/bstream.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: tests/streams/bstream.cpp
3 // Purpose: House the base stream test suite.
4 // Author: Hans Van Leemputten
6 // Copyright: (c) 2004 Hans Van Leemputten
7 // Licence: wxWidgets licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #if defined(__GNUG__) && !defined(__APPLE__)
11 #pragma implementation
15 // For compilers that support precompilation, includes "wx/wx.h".
16 #include "wx/wxprec.h"
22 // for all others, include the necessary headers
27 #include "wx/cppunit.h"
30 using namespace CppUnit
;
32 ///////////////////////////////////////////////////////////////////////////////
33 // Streams main test suite, it houses all stream test suites.
36 class StreamCase
: public TestSuite
40 :TestSuite(STREAM_TEST_NAME
)
41 { /* Nothing extra */ }
45 Test
*StreamCase::suite()
47 TestSuite
*suite
= new StreamCase
;
50 * Register all sub stream test suites.
53 STREAM_REGISTER_SUB_SUITE(memStream
);
54 STREAM_REGISTER_SUB_SUITE(strStream
);
55 STREAM_REGISTER_SUB_SUITE(fileStream
);
56 STREAM_REGISTER_SUB_SUITE(ffileStream
);
57 STREAM_REGISTER_SUB_SUITE(zlibStream
);
60 ** Add more stream subtests here
66 // register in the unnamed registry so that these tests are run by default
67 CPPUNIT_TEST_SUITE_REGISTRATION(StreamCase
);
68 // also include in it's own registry so that these tests can be run alone
69 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(StreamCase
, STREAM_TEST_NAME
);