From d110a0125251119d71f466b62b5250eae4be5f88 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 3 Sep 2012 14:20:24 +0200 Subject: Some clean up of previous commit Change-Id: I6507b731665eb3d98a8fbf3d445f6c85e6d49258 --- bridges/test/testoffice.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'bridges/test') diff --git a/bridges/test/testoffice.cxx b/bridges/test/testoffice.cxx index e5b3df5a3632..9b90bbe9ec01 100644 --- a/bridges/test/testoffice.cxx +++ b/bridges/test/testoffice.cxx @@ -38,8 +38,7 @@ #include #include -#include -#include +#include #include @@ -84,23 +83,20 @@ void mygetchar() void testPipe( const Reference < XMultiServiceFactory > & rSmgr ) { - Reference < XOutputStream > rOut( Pipe::create(comphelper::ComponentContext(rSmgr).getUNOContext()), UNO_QUERY_THROW ); - - OSL_ASSERT( rOut.is() ); + Reference < XPipe > rPipe( Pipe::create(comphelper::ComponentContext(rSmgr).getUNOContext()), UNO_QUERY_THROW ); { Sequence < sal_Int8 > seq( 10 ); seq.getArray()[0] = 42; - rOut->writeBytes( seq ); + rPipe->writeBytes( seq ); } { Sequence < sal_Int8 > seq; - Reference < XInputStream > rIn( rOut , UNO_QUERY ); - if( ! ( rIn->available() == 10) ) + if( ! ( rPipe->available() == 10) ) printf( "wrong bytes available\n" ); - if( ! ( rIn->readBytes( seq , 10 ) == 10 ) ) + if( ! ( rPipe->readBytes( seq , 10 ) == 10 ) ) printf( "wrong bytes read\n" ); if( ! ( 42 == seq.getArray()[0] ) ) printf( "wrong element in sequence\n" ); -- cgit