]> git.saurik.com Git - wxWidgets.git/blame - tests/streams/bstream.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / tests / streams / bstream.cpp
CommitLineData
340da6ae
VS
1///////////////////////////////////////////////////////////////////////////////
2// Name: tests/streams/bstream.cpp
3// Purpose: House the base stream test suite.
4// Author: Hans Van Leemputten
340da6ae 5// Copyright: (c) 2004 Hans Van Leemputten
526954c5 6// Licence: wxWindows licence
340da6ae
VS
7///////////////////////////////////////////////////////////////////////////////
8
340da6ae 9// For compilers that support precompilation, includes "wx/wx.h".
8899b155
RN
10// and "wx/cppunit.h"
11#include "testprec.h"
340da6ae
VS
12
13#ifdef __BORLANDC__
14 #pragma hdrstop
15#endif
16
17// for all others, include the necessary headers
18#ifndef WX_PRECOMP
19 #include "wx/wx.h"
20#endif
21
340da6ae
VS
22#include "bstream.h"
23
3e5f6c1c
WS
24using CppUnit::TestSuite;
25using CppUnit::Test;
340da6ae
VS
26
27///////////////////////////////////////////////////////////////////////////////
28// Streams main test suite, it houses all stream test suites.
29//
30
31class StreamCase : public TestSuite
32{
33public:
3e5f6c1c
WS
34 StreamCase()
35 :TestSuite(STREAM_TEST_NAME)
340da6ae
VS
36 { /* Nothing extra */ }
37 static Test *suite();
38};
39
40Test *StreamCase::suite()
41{
42 TestSuite *suite = new StreamCase;
43
44 /*
45 * Register all sub stream test suites.
46 */
3e5f6c1c 47
340da6ae 48 STREAM_REGISTER_SUB_SUITE(memStream);
32d49041 49 STREAM_REGISTER_SUB_SUITE(strStream);
340da6ae
VS
50 STREAM_REGISTER_SUB_SUITE(fileStream);
51 STREAM_REGISTER_SUB_SUITE(ffileStream);
e1265174 52 STREAM_REGISTER_SUB_SUITE(tempStream);
340da6ae 53 STREAM_REGISTER_SUB_SUITE(zlibStream);
3fd73209 54 STREAM_REGISTER_SUB_SUITE(backStream);
c896c761 55 STREAM_REGISTER_SUB_SUITE(socketStream);
340da6ae 56
48714f74
RN
57 extern CppUnit::Test* GetlargeFileSuite();
58 Test *lfs = GetlargeFileSuite();
59 if (lfs)
60 suite->addTest(lfs);
61
3e5f6c1c 62 /*
340da6ae
VS
63 ** Add more stream subtests here
64 */
65
66 return suite;
67}
68
69// register in the unnamed registry so that these tests are run by default
70CPPUNIT_TEST_SUITE_REGISTRATION(StreamCase);
e3778b4d 71// also include in its own registry so that these tests can be run alone
340da6ae
VS
72CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(StreamCase, STREAM_TEST_NAME);
73