[Cppunit-cvs] cppunit2/include/opentest serializer.h,1.13,1.14
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2006-03-10 21:28:42
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1336/include/opentest Modified Files: serializer.h Log Message: * added unit test for Packets::discardFirstMessage() and fixed bug in Packets. Index: serializer.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/serializer.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** serializer.h 6 Mar 2006 21:07:30 -0000 1.13 --- serializer.h 10 Mar 2006 21:28:38 -0000 1.14 *************** *** 124,127 **** --- 124,135 ---- } + Pos availableUntilEnd() const + { + CPPTL_ASSERT_MESSAGE( packet_ != 0, "No packet available" ); + CPPTL_ASSERT_MESSAGE( endInitialized_ == end_, + "availableUntilEnd() can only be called on full packet" ); + return packet_->end_ - currentData_; + } + Pos availableForReading() const { |