]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cppunit.h
unicode adaption
[wxWidgets.git] / include / wx / cppunit.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cppunit.h
3 // Purpose: wrapper header for CppUnit headers
4 // Author: Vadim Zeitlin
5 // Created: 15.02.04
6 // RCS-ID: $Id$
7 // Copyright: (c) 2004 Vadim Zeitlin
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_CPPUNIT_H_
11 #define _WX_CPPUNIT_H_
12
13 // using CPPUNIT_TEST() macro results in this warning, disable it as there is
14 // no other way to get rid of it and it's not very useful anyhow
15 #ifdef __VISUALC__
16 // typedef-name 'foo' used as synonym for class-name 'bar'
17 #pragma warning(disable:4097)
18
19 // unreachable code: we don't care about warnings in CppUnit headers
20 #pragma warning(disable:4702)
21
22 // 'id': identifier was truncated to 'num' characters in the debug info
23 #pragma warning(disable:4786)
24 #endif // __VISUALC__
25
26 #include "wx/beforestd.h"
27 #include <cppunit/extensions/TestFactoryRegistry.h>
28 #include <cppunit/ui/text/TestRunner.h>
29 #include <cppunit/TestCase.h>
30 #include <cppunit/extensions/HelperMacros.h>
31 #include "wx/afterstd.h"
32
33 #ifdef _MSC_VER
34 #pragma warning(default:4702)
35 #endif // _MSC_VER
36
37 // for VC++ automatically link in cppunit library
38 #ifdef __VISUALC__
39 #ifdef NDEBUG
40 #pragma comment(lib, "cppunit.lib")
41 #else // Debug
42 #pragma comment(lib, "cppunitd.lib")
43 #endif // Release/Debug
44 #endif
45
46 #endif // _WX_CPPUNIT_H_
47