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