diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-12-02 18:45:54 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-12-02 18:45:54 +0000 |
| commit | e2b784709cde0cd7040b4bfb3401869c6306bcc0 (patch) | |
| tree | 01246b777f7300b5d94be5ac0df0d046874da76d /include/cppunit/extensions/TestSuiteBuilderContext.h | |
| parent | faa78dac0e46eef7b529b7be7262f4610f04d432 (diff) | |
| download | cppunit-e2b784709cde0cd7040b4bfb3401869c6306bcc0.tar.gz | |
Include/cppunit/plugin/DynamicLibraryManagerException.
include/cppunit/plugin/DynamicLibraryManagerException.h: added constructor
to fix compilation issues on recents version of gcc and sun CC (bug #619059)
* include/cppunit/input/XmlInputHelper.h: added.
* include/cppunit/extensions/TestSuiteBuilderContext.h:
* src/cppunit/TestSuiteBuilderContext.cpp: added addProperty() and
getStringProperty(). Added macros CPPUNIT_TEST_SUITE_PROPERTY.
* src/msvc6/testrunner/TestRunnerDlg.cpp: integrated Tim Threlkeld's
bug fix #610162: browse button was disabled if history was empty.
* src/msvc6/testrunner/DynamicWindow/cdxCSizeIconCtrl.cpp: integrated
Tim Threlkeld's bug fix #610191: common control were not initialized.
* include/cppunit/extensions/ExceptionTestCaseDecorator.h: bug #603172,
missing Message construction.
* src/cppunit/DefaultProtector.cpp: bug #603172. Fixed missing ';'.
* src/cppunit/TestCase.cpp: bug #603671. Removed unguarded typeinfo
include.
* examples/cppunittests/*Suite.h: bug #603666. Added missing Portability.h
include.
Diffstat (limited to 'include/cppunit/extensions/TestSuiteBuilderContext.h')
| -rw-r--r-- | include/cppunit/extensions/TestSuiteBuilderContext.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/cppunit/extensions/TestSuiteBuilderContext.h b/include/cppunit/extensions/TestSuiteBuilderContext.h index 4fcc8d3..9d42755 100644 --- a/include/cppunit/extensions/TestSuiteBuilderContext.h +++ b/include/cppunit/extensions/TestSuiteBuilderContext.h @@ -2,8 +2,14 @@ #define CPPUNIT_HELPER_TESTSUITEBUILDERCONTEXT_H #include <cppunit/Portability.h> +#include <cppunit/Portability/CppUnitMap.h> #include <string> +#if CPPUNIT_NEED_DLL_DECL +#pragma warning( push ) +#pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z +#endif + CPPUNIT_NS_BEGIN class TestSuite; @@ -53,12 +59,27 @@ public: */ std::string getTestNameFor( const std::string &testMethodName ) const; + /*! \brief Adds property pair. + * \param key PropertyKey string to add. + * \param value PropertyValue string to add. + */ + void addProperty( const std::string &key, + const std::string &value ); + + /*! \brief Returns property value assigned to param key. + * \param key PropertyKey string. + */ + const std::string getStringProperty( const std::string &key ) const; + protected: TestFixture *makeTestFixture() const; + typedef CppUnitMap<std::string,std::string> Properties; + TestSuite &m_suite; const TestNamer &m_namer; TestFixtureFactory &m_factory; + Properties m_properties; }; @@ -93,5 +114,9 @@ public: CPPUNIT_NS_END +#if CPPUNIT_NEED_DLL_DECL +#pragma warning( pop ) +#endif + #endif // CPPUNIT_HELPER_TESTSUITEBUILDERCONTEXT_H |
