[Mockpp-commits] mockpp/mockpp CxxTestSupport.h,NONE,1.1 Makefile.am,1.97,1.98
Brought to you by:
ewald-arnold
|
From: Ewald A. <ewa...@us...> - 2005-12-09 21:16:58
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10544/mockpp Modified Files: Makefile.am Added Files: CxxTestSupport.h Log Message: support cxxtest Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Makefile.am,v retrieving revision 1.97 retrieving revision 1.98 diff -u -d -r1.97 -r1.98 --- Makefile.am 30 Nov 2005 21:47:31 -0000 1.97 +++ Makefile.am 9 Dec 2005 21:16:49 -0000 1.98 @@ -24,28 +24,16 @@ VisitableMockMethod.cpp pkginclude_HEADERS = mockpp_config.h ReturnObjectList.h Expectation.h \ - AbstractExpectation.h ExpectationValue.h ExpectationSegment.h ExpectationList.h \ - ExpectationSet.h ExpectationMap.h ExpectationBoundary.h AbstractExpectationCollection.h \ - VisitableMockObject_macro.h VisitableMockObject_template.h ExpectationConglomeration.h \ - ExpectationCounter.h mockpp.h Throwable.h ThrowableList.h MockObject.h VisitableMockObject.h \ - VerifiableList.h Verifiable.h VerifyingTestCase.h SelfDescribing.h ChainableMockObject.h \ - VerifyingTestCaller.h TrackingCounter.h MixedMockObject.h mockpp_dbc.h MockTimeServer.h \ - VisitableMockMethod.h \ - VisitableMockMethod0.h \ - VisitableMockMethod1.h \ - VisitableMockMethod2.h \ - VisitableMockMethod3.h \ - VisitableMockMethod4.h \ - VisitableMockMethod5.h \ - VisitableMockMethod6.h \ - CountParameters.h \ - CountedVisitableMethod.h \ - ResponseVector1.h \ - ResponseVector2.h \ - ResponseVector3.h \ - ResponseVector4.h \ - ResponseVector5.h \ - ResponseVector6.h + AbstractExpectation.h ExpectationValue.h ExpectationSegment.h ExpectationList.h \ + ExpectationSet.h ExpectationMap.h ExpectationBoundary.h AbstractExpectationCollection.h \ + VisitableMockObject_macro.h VisitableMockObject_template.h ExpectationConglomeration.h \ + ExpectationCounter.h mockpp.h Throwable.h ThrowableList.h MockObject.h VisitableMockObject.h \ + VerifiableList.h Verifiable.h VerifyingTestCase.h SelfDescribing.h ChainableMockObject.h \ + VerifyingTestCaller.h TrackingCounter.h MixedMockObject.h mockpp_dbc.h MockTimeServer.h \ + VisitableMockMethod.h VisitableMockMethod0.h VisitableMockMethod1.h VisitableMockMethod2.h \ + VisitableMockMethod3.h VisitableMockMethod4.h VisitableMockMethod5.h VisitableMockMethod6.h \ + CountParameters.h CountedVisitableMethod.h ResponseVector1.h ResponseVector2.h \ + ResponseVector3.h ResponseVector4.h ResponseVector5.h ResponseVector6.h CxxTestSupport.h EXTRA_DIST = \ mockpp_config-bcb5.h \ --- NEW FILE: CxxTestSupport.h --- /** @file @brief Support for CxxTest similar to CppUnit $Id: CxxTestSupport.h,v 1.1 2005/12/09 21:16:49 ewald-arnold Exp $ **************************************************************************/ /************************************************************************** begin : Fri Dec 9 2005 copyright : (C) 2002-2005 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ #ifndef MOCKPP_CXXTEST_SUPPORT_H #define MOCKPP_CXXTEST_SUPPORT_H #define MOCKPP_CXXTEST_SUITE(class) \ static ## class suite_## class; \ \ static CxxTest::List Tests_## class = { 0, 0 }; \ CxxTest::StaticSuiteDescription suiteDescription_## class( __FILE__, __LINE__, #class, suite_## class, Tests_## class ); \ #define MOCKPP_CXXTEST(class, meth) \ static class TestDescription_ ## class ## _ ## meth : public CxxTest::RealTestDescription { \ public: \ TestDescription_## class ## meth() : CxxTest::RealTestDescription( Tests_ ## class, suiteDescription_ ##class, __LINE__, #meth ) {} \ void runTest() { suite_ ## class. ##meth(); } \ } testDescription_## class ##meth; #define MOCKPP_CXXTEST_SUITE_END #endif // MOCKPP_CXXTEST_SUPPORT_H |