CppUnit project page FAQ CppUnit home page

MfcTestRunner.h
Go to the documentation of this file.
1#ifndef CPPUNITUI_MFC_MFCTESTRUNNER_H
2#define CPPUNITUI_MFC_MFCTESTRUNNER_H
3
4#if _MSC_VER >= 1000
5#pragma once
6#endif // _MSC_VER >= 1000
7
10
11/* Refer to MSDN documentation to know how to write and use MFC extension DLL:
12 mk:@MSITStore:h:\DevStudio\MSDN\98VSa\1036\vcmfc.chm::/html/_mfcnotes_tn033.htm#_mfcnotes_how_to_write_an_mfc_extension_dll
13
14 This can be found in the index with "mfc extension"
15 The basic:
16 Using:
17 - your application must use MFC DLL
18 - memory allocation is done using the same heap
19 - you must define the symbol _AFX_DLL
20
21 Building:
22 - you must define the symbol _AFX_DLL and _AFX_EXT
23 - export class using AFX_EXT_CLASS
24 */
25
27
28 class Test;
29 class TestSuite;
30
31
52class AFX_EXT_CLASS MfcTestRunner
53{
54public:
56 virtual ~MfcTestRunner();
57
58 void run();
59
60 void addTest( Test *test );
61
62 void addTests( const CppUnitVector<Test *> &tests );
63
64protected:
66
68
71};
72
73
75
76#endif // CPPUNITUI_MFC_MFCTESTRUNNER_H
#define CppUnitVector
Definition CppUnitVector.h:20
#define CPPUNIT_NS_END
Definition Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition Portability.h:119
Tests m_tests
Definition MfcTestRunner.h:70
Test * getRootTest()
CppUnitVector< Test * > Tests
Definition MfcTestRunner.h:69
TestSuite * m_suite
Definition MfcTestRunner.h:67
void addTests(const CppUnitVector< Test * > &tests)
virtual ~MfcTestRunner()
void addTest(Test *test)
Base class for all test objects.
Definition Test.h:26
A Composite of Tests.
Definition TestSuite.h:41

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers