]>
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 // For compilers that support precompilation, includes "wx/wx.h".
18 // for all others, include the necessary headers
25 using CppUnit::TestSuite
;
28 ///////////////////////////////////////////////////////////////////////////////
29 // Streams main test suite, it houses all stream test suites.
32 class StreamCase
: public TestSuite
36 :TestSuite(STREAM_TEST_NAME
)
37 { /* Nothing extra */ }
41 Test
*StreamCase::suite()
43 TestSuite
*suite
= new StreamCase
;
46 * Register all sub stream test suites.
49 STREAM_REGISTER_SUB_SUITE(memStream
);
50 STREAM_REGISTER_SUB_SUITE(strStream
);
51 STREAM_REGISTER_SUB_SUITE(fileStream
);
52 STREAM_REGISTER_SUB_SUITE(ffileStream
);
53 STREAM_REGISTER_SUB_SUITE(zlibStream
);
56 ** Add more stream subtests here
62 // register in the unnamed registry so that these tests are run by default
63 CPPUNIT_TEST_SUITE_REGISTRATION(StreamCase
);
64 // also include in it's own registry so that these tests can be run alone
65 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(StreamCase
, STREAM_TEST_NAME
);