]>
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
5 // Copyright: (c) 2004 Hans Van Leemputten
6 // Licence: wxWindows licence
7 ///////////////////////////////////////////////////////////////////////////////
9 // For compilers that support precompilation, includes "wx/wx.h".
17 // for all others, include the necessary headers
24 using CppUnit::TestSuite
;
27 ///////////////////////////////////////////////////////////////////////////////
28 // Streams main test suite, it houses all stream test suites.
31 class StreamCase
: public TestSuite
35 :TestSuite(STREAM_TEST_NAME
)
36 { /* Nothing extra */ }
40 Test
*StreamCase::suite()
42 TestSuite
*suite
= new StreamCase
;
45 * Register all sub stream test suites.
48 STREAM_REGISTER_SUB_SUITE(memStream
);
49 STREAM_REGISTER_SUB_SUITE(strStream
);
50 STREAM_REGISTER_SUB_SUITE(fileStream
);
51 STREAM_REGISTER_SUB_SUITE(ffileStream
);
52 STREAM_REGISTER_SUB_SUITE(tempStream
);
53 STREAM_REGISTER_SUB_SUITE(zlibStream
);
54 STREAM_REGISTER_SUB_SUITE(backStream
);
55 STREAM_REGISTER_SUB_SUITE(socketStream
);
57 extern CppUnit::Test
* GetlargeFileSuite();
58 Test
*lfs
= GetlargeFileSuite();
63 ** Add more stream subtests here
69 // register in the unnamed registry so that these tests are run by default
70 CPPUNIT_TEST_SUITE_REGISTRATION(StreamCase
);
71 // also include in its own registry so that these tests can be run alone
72 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(StreamCase
, STREAM_TEST_NAME
);