diff options
Diffstat (limited to 'testtools/source/bridgetest/bridgetest.cxx')
-rw-r--r-- | testtools/source/bridgetest/bridgetest.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index 3ed8349df2e5..2696217824ef 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -72,8 +72,8 @@ using namespace com::sun::star::registry; using namespace com::sun::star::bridge; using namespace test::testtools::bridgetest; -#define SERVICENAME "com.sun.star.test.bridge.BridgeTest" -#define IMPLNAME "com.sun.star.comp.bridge.BridgeTest" +#define SERVICENAME "com.sun.star.test.bridge.BridgeTest" +#define IMPLNAME "com.sun.star.comp.bridge.BridgeTest" #define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) ) #define STRING_TEST_CONSTANT "\" paco\' chorizo\\\' \"\'" @@ -477,7 +477,7 @@ static sal_Bool performTest( TestElement temp = aRet.Sequence[ 0 ]; aRet.Sequence[ 0 ] = aRet.Sequence[ 1 ]; aRet.Sequence[ 1 ] = temp; - + bRet = check( equals( aData, aSV2ret ) && equals( aData, aRet2 ), "getValues2 test") && bRet; @@ -738,7 +738,7 @@ static sal_Bool performTest( { _arSeqLong[i] = Sequence<sal_Int32>(_arLong, 3); } - + _arSeqLong2[j] = Sequence< Sequence<sal_Int32> > (_arSeqLong, 3); } @@ -798,7 +798,7 @@ static sal_Bool performTest( Sequence<Any> arAnyTemp = cloneSequence(arAny); Sequence<Sequence<sal_Int32> > arLong2Temp(arLong3[0]); Sequence<Sequence<Sequence<sal_Int32> > > arLong3Temp(arLong3); - + xBT2->setSequencesInOut(arBoolTemp, arCharTemp, arByteTemp, arShortTemp, arUShortTemp, arLongTemp,arULongTemp, arHyperTemp, arUHyperTemp, arFloatTemp, arDoubleTemp, @@ -1006,7 +1006,7 @@ static sal_Bool raiseException( const Reference< XBridgeTest > & xLBT ) { #ifdef COMPCHECK //When we check if a new compiler still works then we must not call - //getRuntimeException because it uses cppu::getCaughtException which + //getRuntimeException because it uses cppu::getCaughtException which //does only work if all libs are build with the same runtime. return true; #else @@ -1075,8 +1075,8 @@ uno_Sequence* cloneSequence(const uno_Sequence* val, const Type& type) typelib_TypeDescription* pTdElem = pIndirectTd->pType->pType; sal_Int8* buf = new sal_Int8[pTdElem->nSize * val->nElements]; sal_Int8* pBufCur = buf; - - uno_Sequence* retSeq = NULL; + + uno_Sequence* retSeq = NULL; switch (pTdElem->eTypeClass) { case TypeClass_SEQUENCE: @@ -1099,7 +1099,7 @@ uno_Sequence* cloneSequence(const uno_Sequence* val, const Type& type) break; } delete[] buf; - return retSeq; + return retSeq; } template< class T> @@ -1116,11 +1116,11 @@ inline bool makeSurrogate( rOut.clear(); if (! rOriginal.is()) return false; - + Environment aCppEnv_official; Environment aUnoEnv_ano; Environment aCppEnv_ano; - + OUString aCppEnvTypeName( RTL_CONSTASCII_USTRINGPARAM(CPPU_CURRENT_LANGUAGE_BINDING_NAME) ); OUString aUnoEnvTypeName( @@ -1136,7 +1136,7 @@ inline bool makeSurrogate( uno_createEnvironment( reinterpret_cast< uno_Environment ** >( &aUnoEnv_ano ), aUnoEnvTypeName.pData, 0 ); - + UnoInterfaceReference unoI; Mapping cpp2uno( aCppEnv_official.get(), aUnoEnv_ano.get() ); Mapping uno2cpp( aUnoEnv_ano.get(), aCppEnv_ano.get() ); @@ -1164,7 +1164,7 @@ inline bool makeSurrogate( OUSTR("mapping binary UNO to C++ failed!"), Reference< XInterface >() ); } - + return rOut.is(); } @@ -1225,7 +1225,7 @@ sal_Int32 TestBridgeImpl::run( const Sequence< OUString > & rArgs ) break; } } - + if (! xOriginal.is()) { throw RuntimeException( @@ -1272,7 +1272,7 @@ sal_Int32 TestBridgeImpl::run( const Sequence< OUString > & rArgs ) { printf( "\n> ### test failed!\n" ); } - + return 0; } @@ -1357,7 +1357,7 @@ void * SAL_CALL component_getFactory( bridge_test::TestBridgeImpl_create, OUString( RTL_CONSTASCII_USTRINGPARAM(IMPLNAME) ), bridge_test::getSupportedServiceNames() ) ); - + if (xFactory.is()) { xFactory->acquire(); |