Lines Matching refs:rInput
86 void testSimple( const XOutputStreamRef &r, const XInputStreamRef &rInput );
210 const XInputStreamRef &rInput ) in testSimple() argument
228 rInput->readBytes( seqRead , rInput->available() ); in testSimple()
240 rInput->readBytes( seqRead , seqWrite.getLen() ); in testSimple()
252 ERROR_ASSERT( 0 == rInput->available() , "bytes available though mark is holded" ); in testSimple()
258 …ERROR_ASSERT( nMax*seqWrite.getLen() == rInput->available(),"bytes are not available though mark h… in testSimple()
260 rInput->skipBytes( nMax*seqWrite.getLen() ); in testSimple()
261 ERROR_ASSERT( 0 == rInput->available(), "skip bytes failure" ); in testSimple()
273 ERROR_ASSERT( 0 == rInput->available(), "stream isn't clean" ); in testSimple()
302 ERROR_ASSERT( 256 == rInput->available(), "in between mark failure" ); in testSimple()
303 rInput->readBytes( aByte ,256); in testSimple()
344 ERROR_ASSERT( rInput->available() == 1 , "wrong number of bytes flushed" ); in testSimple()
348 ERROR_ASSERT( rInput->available() == 4 , "wrong number of bytes flushed" ); in testSimple()
350 rInput->readBytes( seqRead , 4 ); in testSimple()
358 rInput->closeInput(); in testSimple()
448 void testSimple( const XOutputStreamRef &r, const XInputStreamRef &rInput );
519 XInputStreamRef rInput( TestObject , USR_QUERY ); in test() local
522 OSL_ASSERT( rInput.is() ); in test()
525 testSimple( rPipeOutput , rInput ); in test()
577 const XInputStreamRef &rInput ) in testSimple() argument
579 XMarkableStreamRef rMarkable( rInput , USR_QUERY ); in testSimple()
590 ERROR_ASSERT( 256 == rInput->available() , "basic read/write failure" ); in testSimple()
592 rInput->readBytes( seqRead , 10 ); in testSimple()
597 rInput->skipBytes( 50 ); in testSimple()
598 ERROR_ASSERT( 256-10-50 == rInput->available() , "marking error" ); in testSimple()
602 ERROR_ASSERT( 256-10 == rInput->available() , "marking error" ); in testSimple()
604 rInput->readBytes( seqRead , 10 ); in testSimple()
613 rInput->readBytes( seqRead , 10 ); in testSimple()
620 rInput->readBytes( seqRead , 10 ); in testSimple()
627 ERROR_ASSERT( 256-10-50 == rInput->available() , "marking error" ); in testSimple()
630 …ERROR_ASSERT( 100 == rInput->readSomeBytes( seqRead , 100 ) , "wrong results using readSomeBytes" … in testSimple()
631 ERROR_ASSERT( 96 == rInput->readSomeBytes( seqRead , 1000) , "wrong results using readSomeBytes" ); in testSimple()
633 rInput->closeInput(); in testSimple()