[Mockpp-commits] mockpp/mockpp/stub VoidStub.cpp,NONE,1.1 Makefile.am,1.6,1.7 VoidStub.h,1.17,1.18 d
Brought to you by:
ewald-arnold
|
From: Ewald A. <ewa...@us...> - 2005-03-03 16:11:51
|
Update of /cvsroot/mockpp/mockpp/mockpp/stub In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25475/mockpp/stub Modified Files: Makefile.am VoidStub.h Added Files: VoidStub.cpp Removed Files: dummy.cpp Log Message: separated header from source Index: VoidStub.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/stub/VoidStub.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** VoidStub.h 6 Jan 2005 13:09:23 -0000 1.17 --- VoidStub.h 3 Mar 2005 16:11:42 -0000 1.18 *************** *** 55,60 **** * @return return value from mocked invocation */ ! virtual void typelessInvoke( ) ! {} /** Appends the description of this object to the buffer. --- 55,59 ---- * @return return value from mocked invocation */ ! virtual void typelessInvoke( ); /** Appends the description of this object to the buffer. *************** *** 62,70 **** * @return The current content of the buffer data */ ! virtual String describeTo( String &buffer ) const ! { ! buffer += MOCKPP_PCHAR("is void"); ! return buffer; ! } }; --- 61,65 ---- * @return The current content of the buffer data */ ! virtual String describeTo( String &buffer ) const; }; Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/stub/Makefile.am,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile.am 11 Dec 2004 18:24:07 -0000 1.6 --- Makefile.am 3 Mar 2005 16:11:42 -0000 1.7 *************** *** 10,12 **** CLEANFILES = *.~* *.~~* *~ *.old ! libstub_la_SOURCES = dummy.cpp --- 10,13 ---- CLEANFILES = *.~* *.~~* *~ *.old ! ! libstub_la_SOURCES = VoidStub.cpp --- dummy.cpp DELETED --- --- NEW FILE: VoidStub.cpp --- /** @file @brief Stub for void methods $Id: VoidStub.cpp,v 1.1 2005/03/03 16:11:42 ewald-arnold Exp $ ***************************************************************************/ /************************************************************************** begin : Thu Aug 24 2004 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. * * Original Java Sources: Copyright (c) 2000-2004, jMock.org * **/ #include <mockpp/mockpp.h> // always first #include <mockpp/stub/VoidStub.h> namespace mockpp { void MOCKPP_EXPORT VoidStub::typelessInvoke( ) { } String MOCKPP_EXPORT VoidStub::describeTo( String &buffer ) const { buffer += MOCKPP_PCHAR("is void"); return buffer; } } // namespace mockpp |