Update of /cvsroot/cppunit/cppunit2/src/cpput
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv31858/src/cpput
Modified Files:
extendeddata.cpp
Log Message:
- added support to declare test case association to a given group in test fixture.
Index: extendeddata.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpput/extendeddata.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** extendeddata.cpp 6 Aug 2005 22:24:53 -0000 1.1
--- extendeddata.cpp 3 Sep 2006 07:15:49 -0000 1.2
***************
*** 4,7 ****
--- 4,10 ----
namespace CppUT {
+ // class TestExtendedDataHelper
+ // //////////////////////////////////////////////////////////////////
+
TestExtendedDataHelper::TestExtendedDataHelper( Test &test )
: test_( test )
***************
*** 23,26 ****
--- 26,31 ----
+ // class TestExtendedData
+ // //////////////////////////////////////////////////////////////////
TestExtendedData::~TestExtendedData()
{
***************
*** 35,38 ****
--- 40,46 ----
+ // class TestExtendedDataList
+ // //////////////////////////////////////////////////////////////////
+
TestExtendedDataList::TestExtendedDataList( const TestExtendedData &left,
const TestExtendedData &right )
***************
*** 50,53 ****
--- 58,64 ----
+ // class DescriptionData
+ // //////////////////////////////////////////////////////////////////
+
DescriptionData::DescriptionData( const std::string &description )
: description_( description )
***************
*** 63,66 ****
--- 74,80 ----
+ // class TimeOutData
+ // //////////////////////////////////////////////////////////////////
+
TimeOutData::TimeOutData( double timeOutInSeconds )
: timeOutInSeconds_( timeOutInSeconds )
***************
*** 75,78 ****
--- 89,95 ----
+ // class DependenciesData
+ // //////////////////////////////////////////////////////////////////
+
DependenciesData::DependenciesData( const std::string &dependencies )
: dependencies_( dependencies )
***************
*** 87,90 ****
--- 104,125 ----
+ // class GroupData
+ // //////////////////////////////////////////////////////////////////
+
+ GroupData::GroupData( const std::string &groupName )
+ : groupName_( groupName )
+ {
+ }
+
+ void
+ GroupData::apply( Test &test ) const
+ {
+ test.addToGroup( groupName_ );
+ }
+
+
+ // class TestExtendedDataFactory
+ // //////////////////////////////////////////////////////////////////
+
TestExtendedDataFactory::~TestExtendedDataFactory()
{
***************
*** 111,114 ****
--- 146,155 ----
}
+ GroupData
+ TestExtendedDataFactory::group( const std::string &groupName )
+ {
+ return GroupData( groupName );
+ }
+
} // namespace CppUT
|