]> git.saurik.com Git - wxWidgets.git/blob - tests/streams/bstream.cpp
Define __VISUALC__ for ICC under Windows again.
[wxWidgets.git] / 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 ///////////////////////////////////////////////////////////////////////////////
8
9 // For compilers that support precompilation, includes "wx/wx.h".
10 // and "wx/cppunit.h"
11 #include "testprec.h"
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
22 #include "bstream.h"
23
24 using CppUnit::TestSuite;
25 using CppUnit::Test;
26
27 ///////////////////////////////////////////////////////////////////////////////
28 // Streams main test suite, it houses all stream test suites.
29 //
30
31 class StreamCase : public TestSuite
32 {
33 public:
34 StreamCase()
35 :TestSuite(STREAM_TEST_NAME)
36 { /* Nothing extra */ }
37 static Test *suite();
38 };
39
40 Test *StreamCase::suite()
41 {
42 TestSuite *suite = new StreamCase;
43
44 /*
45 * Register all sub stream test suites.
46 */
47
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);
56
57 extern CppUnit::Test* GetlargeFileSuite();
58 Test *lfs = GetlargeFileSuite();
59 if (lfs)
60 suite->addTest(lfs);
61
62 /*
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
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);
73