[Cppunit-cvs] cppunit2/include/opentest config.h,1.1,1.2 forwards.h,1.5,1.6 remoteinterfaces.h,1.2,1
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-07-01 08:19:46
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6409/include/opentest Modified Files: config.h forwards.h remoteinterfaces.h serializer.h Log Message: * started adding unit tests for opentest * added serializer unit test squeleton * fixed some bug in serializer * added opentesttest project to VS solution. Index: config.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/config.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** config.h 15 Nov 2004 08:33:30 -0000 1.1 --- config.h 1 Jul 2005 08:19:37 -0000 1.2 *************** *** 7,10 **** --- 7,13 ---- # define OPENTEST_API + # if !defined(WIN32) && !defined(_WIN32) + # define OPENTEST_NO_SHAREDMEMORYTRANSPORT 1 + # endif #endif // OPENTEST_CONFIG_H_INCLUDED Index: serializer.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/serializer.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** serializer.h 30 Jun 2005 21:49:25 -0000 1.4 --- serializer.h 1 Jul 2005 08:19:37 -0000 1.5 *************** *** 33,37 **** // Returns the length actual written at dest unsigned int send( void *dest, Pos availableLength ); ! void endMessage(); bool hasPendingMessage() const; Pos getFirstMessageLength(); --- 33,38 ---- // Returns the length actual written at dest unsigned int send( void *dest, Pos availableLength ); ! void endSerializeMessage(); ! void endExternalMessage(); bool hasPendingMessage() const; Pos getFirstMessageLength(); *************** *** 43,47 **** bool serializationRead( void *buffer, Pos length ); void serializationWrite( const void *buffer, Pos length ); ! void serializationWrite( unsigned char byte ); private: --- 44,48 ---- bool serializationRead( void *buffer, Pos length ); void serializationWrite( const void *buffer, Pos length ); ! void serializationWrite( Byte byte ); private: *************** *** 56,61 **** , next_( 0 ) { ! next_ = previous_->next_; ! previous_->next_ = this; } --- 57,65 ---- , next_( 0 ) { ! if ( previous ) ! { ! next_ = previous_->next_; ! previous_->next_ = this; ! } } Index: forwards.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/forwards.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** forwards.h 24 Jun 2005 19:48:23 -0000 1.5 --- forwards.h 1 Jul 2005 08:19:37 -0000 1.6 *************** *** 20,23 **** --- 20,25 ---- class ValueBadCast; + class RemoteMessage; + class RemoteMessageServer; class ResultAssertion; class ResultInputOutput; *************** *** 33,36 **** --- 35,39 ---- typedef CppTL::ConstString String; + typedef CppTL::SharedPtr<RemoteMessage> RemoteMessagePtr; typedef CppTL::SharedPtr<TestPlanEntry> TestPlanEntryPtr; typedef CppTL::AnyEnumerator<TestPlanEntryPtr> TestPlanEntryPtrEnum; Index: remoteinterfaces.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/remoteinterfaces.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** remoteinterfaces.h 25 Jun 2005 11:08:05 -0000 1.2 --- remoteinterfaces.h 1 Jul 2005 08:19:37 -0000 1.3 *************** *** 44,49 **** - typedef CppTL::SharedPtr<RemoteMessage> RemoteMessagePtr; - Stream & OPENTEST_API operator <<( Stream &stream, const RemoteMessagePtr &message ); --- 44,47 ---- |