[Mockpp-commits] mockpp/mockpp/examples/tutorial chainmock.cpp,1.9,1.10
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-04-06 19:26:08
|
Update of /cvsroot/mockpp/mockpp/mockpp/examples/tutorial In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15110/mockpp/examples/tutorial Modified Files: chainmock.cpp Log Message: patch msvc6 Index: chainmock.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/examples/tutorial/chainmock.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- chainmock.cpp 25 Mar 2005 17:20:34 -0000 1.9 +++ chainmock.cpp 6 Apr 2005 19:25:56 -0000 1.10 @@ -23,10 +23,14 @@ #include <iostream> using namespace mockpp; + + +typedef mockpp::Invocation1<std::string> InvocationString; +typedef mockpp::Invocation1<unsigned> InvocationUInt; -MOCKPP_PTI_DECLARE(mockpp::Invocation0); -MOCKPP_PTI_DECLARE(mockpp::Invocation1<std::string>); -MOCKPP_PTI_DECLARE(mockpp::Invocation1<unsigned>); +MOCKPP_PTI_IMPLEMENT(mockpp::Invocation0); +MOCKPP_PTI_IMPLEMENT(InvocationString); +MOCKPP_PTI_IMPLEMENT(InvocationUInt); class ChainMock : public Interface @@ -132,8 +136,5 @@ return 0; } -MOCKPP_PTI_IMPLEMENT(mockpp::Invocation0); -MOCKPP_PTI_IMPLEMENT(mockpp::Invocation1<std::string>); -MOCKPP_PTI_IMPLEMENT(mockpp::Invocation1<unsigned>); |