summaryrefslogtreecommitdiff
path: root/stoc/test
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 20:42:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-26 07:47:23 -0600
commit35e44118b8e55b2263bd10e8b11d9ac4e043228b (patch)
tree499003287173fc32dae7fda54324bf2fc4414c36 /stoc/test
parent65d6ecfd4e69c2f6b8346e8b655914d5ac5a0286 (diff)
Remove visual noise from stoc
Change-Id: I19edfb2796298c4870124d0d1e9488974a010bb8 Reviewed-on: https://gerrit.libreoffice.org/8316 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'stoc/test')
-rw-r--r--stoc/test/tdmanager/testtdmanager.cxx6
-rw-r--r--stoc/test/testconv.cxx10
-rw-r--r--stoc/test/testcorefl.cxx6
-rw-r--r--stoc/test/testiadapter.cxx24
-rw-r--r--stoc/test/testintrosp.cxx4
-rw-r--r--stoc/test/testintrosp.idl60
-rw-r--r--stoc/test/testproxyfac.cxx4
-rw-r--r--stoc/test/testsmgr_cpnt.cxx24
8 files changed, 69 insertions, 69 deletions
diff --git a/stoc/test/tdmanager/testtdmanager.cxx b/stoc/test/tdmanager/testtdmanager.cxx
index 59fa9c2e4c10..8e5654188cf0 100644
--- a/stoc/test/tdmanager/testtdmanager.cxx
+++ b/stoc/test/tdmanager/testtdmanager.cxx
@@ -126,9 +126,9 @@ sal_Int32 Service::run(css::uno::Sequence< OUString > const & arguments)
"com.sun.star.reflection.theTypeDescriptionManager")),
css::uno::UNO_QUERY_THROW);
- ////////////////////////////////////////
+
// test: add cmd line rdbs to manager
- ////////////////////////////////////////
+
OSL_ASSERT( arguments.getLength() > 0 );
css::uno::Reference<css::container::XSet> xSet(
@@ -166,7 +166,7 @@ sal_Int32 Service::run(css::uno::Sequence< OUString > const & arguments)
}
}
- ///////
+ /
css::uno::Reference< css::reflection::XIndirectTypeDescription > sequence(
manager->getByHierarchicalName(
diff --git a/stoc/test/testconv.cxx b/stoc/test/testconv.cxx
index 79f06ab7efeb..2fbba4a9008d 100644
--- a/stoc/test/testconv.cxx
+++ b/stoc/test/testconv.cxx
@@ -47,7 +47,7 @@ const double MAX_DOUBLE = DBL_MAX;
const double MIN_FLOAT = -FLT_MAX;
const double MAX_FLOAT = FLT_MAX;
-//==================================================================================================
+
static void printValue( const Any & rVal )
{
// print value
@@ -159,7 +159,7 @@ static void printValue( const Any & rVal )
static Reference< XTypeConverter > s_xConverter;
-//==================================================================================================
+
static sal_Bool convertTo( const Type & rDestType, const Any & rVal, sal_Bool bExpectSuccess )
{
sal_Bool bCanConvert = sal_False;
@@ -261,7 +261,7 @@ static sal_Bool convertTo( const Type & rDestType, const Any & rVal, sal_Bool bE
}
-//==================================================================================================
+
typedef struct _ConvBlock
{
Any _value;
@@ -287,7 +287,7 @@ typedef struct _ConvBlock
} ConvBlock;
-//==================================================================================================
+
static sal_Int32 initBlocks( ConvBlock * pTestBlocks )
{
Any aVal;
@@ -601,7 +601,7 @@ static sal_Int32 initBlocks( ConvBlock * pTestBlocks )
return nElems;
}
-//==================================================================================================
+
static void test_Conversion( const Reference< XMultiServiceFactory > & xMgr )
{
printf( "test_Conversion(): start...\n" );
diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx
index bfe792d1e280..23dd0ed1f1e8 100644
--- a/stoc/test/testcorefl.cxx
+++ b/stoc/test/testcorefl.cxx
@@ -56,7 +56,7 @@ using namespace com::sun::star::reflection;
using namespace com::sun::star::container;
-//==================================================================================================
+
class OInterfaceA : public WeakImplHelper1< XInterfaceA >
{
public:
@@ -70,7 +70,7 @@ public:
{ return Sequence< StructB >(); }
};
-//==================================================================================================
+
static inline bool uik_equals( const Uik & rUik1, const Uik & rUik2 )
{
return (rUik1.m_Data1 == rUik2.m_Data1 &&
@@ -79,7 +79,7 @@ static inline bool uik_equals( const Uik & rUik1, const Uik & rUik2 )
rUik1.m_Data4 == rUik2.m_Data4 &&
rUik1.m_Data5 == rUik2.m_Data5);
}
-//==================================================================================================
+
static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl )
{
Reference< XIdlClass > xClass;
diff --git a/stoc/test/testiadapter.cxx b/stoc/test/testiadapter.cxx
index 679d937d6463..3abdfb218f00 100644
--- a/stoc/test/testiadapter.cxx
+++ b/stoc/test/testiadapter.cxx
@@ -50,7 +50,7 @@ using namespace com::sun::star::registry;
-//==================================================================================================
+
sal_Bool equals( const test::TestElement & rData1, const test::TestElement & rData2 )
{
OSL_ENSURE( rData1.Bool == rData2.Bool, "### bool does not match!" );
@@ -85,7 +85,7 @@ sal_Bool equals( const test::TestElement & rData1, const test::TestElement & rDa
rData1.Interface == rData2.Interface &&
rData1.Any == rData2.Any);
}
-//==================================================================================================
+
sal_Bool equals( const test::TestData & rData1, const test::TestData & rData2 )
{
sal_Int32 nLen;
@@ -109,7 +109,7 @@ sal_Bool equals( const test::TestData & rData1, const test::TestData & rData2 )
}
return sal_False;
}
-//==================================================================================================
+
void assign( test::TestElement & rData,
sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
sal_Int16 nShort, sal_uInt16 nUShort,
@@ -136,7 +136,7 @@ void assign( test::TestElement & rData,
rData.Interface = xTest;
rData.Any = rAny;
}
-//==================================================================================================
+
void assign( test::TestData & rData,
sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
sal_Int16 nShort, sal_uInt16 nUShort,
@@ -154,7 +154,7 @@ void assign( test::TestData & rData,
rData.Sequence = rSequence;
}
-//==================================================================================================
+
class Test_Impl : public WeakImplHelper1< XLanguageBindingTest >
{
test::TestData _aData, _aStructData;
@@ -277,7 +277,7 @@ public:
virtual sal_Int32 SAL_CALL getRuntimeException() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setRuntimeException( sal_Int32 _runtimeexception ) throw(::com::sun::star::uno::RuntimeException);
};
-//==================================================================================================
+
class XLB_Invocation : public WeakImplHelper1< XInvocation >
{
Reference< XLanguageBindingTest > _xLBT;
@@ -665,7 +665,7 @@ sal_Bool XLB_Invocation::hasProperty( const OUString & rName )
rName == "RuntimeException" );
}
-//##################################################################################################
+
void Test_Impl::setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
@@ -737,7 +737,7 @@ test::TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_In
return _aStructData;
}
-//==================================================================================================
+
sal_Bool performTest( const Reference<XLanguageBindingTest > & xLBT )
{
OSL_ENSURE( xLBT.is(), "### no test interface!" );
@@ -760,7 +760,7 @@ sal_Bool performTest( const Reference<XLanguageBindingTest > & xLBT )
aData.Sequence = Sequence<test::TestElement >( (const test::TestElement *)&aData, 1 );
// aData complete
- //================================================================================
+
// this is a manually copy of aData for first setting...
test::TestData aSetData;
@@ -876,7 +876,7 @@ void Test_Impl::setRuntimeException( sal_Int32 /*_runtimeexception*/ ) throw(::c
throw aExc;
}
-//==================================================================================================
+
sal_Bool raiseException( const Reference<XLanguageBindingTest > & xLBT )
{
try
@@ -932,7 +932,7 @@ sal_Bool raiseException( const Reference<XLanguageBindingTest > & xLBT )
return sal_False;
}
-//==================================================================================================
+
static sal_Bool test_adapter( const Reference< XMultiServiceFactory > & xMgr )
{
Reference< XInvocationAdapterFactory > xAdapFac(
@@ -977,7 +977,7 @@ static sal_Bool test_adapter( const Reference< XMultiServiceFactory > & xMgr )
return (performTest( xLBT ) && raiseException( xLBT ));
}
-//==================================================================================================
+
static sal_Bool test_invocation( const Reference< XMultiServiceFactory > & xMgr )
{
Reference< XInvocationAdapterFactory > xAdapFac(
diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx
index ef8192faddb7..deb5b13a25a3 100644
--- a/stoc/test/testintrosp.cxx
+++ b/stoc/test/testintrosp.cxx
@@ -256,7 +256,7 @@ sal_Bool ImplPropertySetInfo::hasPropertyByName(const OUString& Name)
return sal_False;
}
-//*****************************************************************
+
class ImplIntroTest : public ImplIntroTestHelper
{
Reference< XMultiServiceFactory > mxMgr;
@@ -844,7 +844,7 @@ static sal_Bool test_introsp( Reference< XMultiServiceFactory > xMgr,
OString aErrorStr;
- //******************************************************
+
// create test object
Any aObjAny = getIntrospectionTestObject( xMgr );
diff --git a/stoc/test/testintrosp.idl b/stoc/test/testintrosp.idl
index 0ff92e10cf8a..0f7e3489a60f 100644
--- a/stoc/test/testintrosp.idl
+++ b/stoc/test/testintrosp.idl
@@ -39,7 +39,7 @@
#endif
-//=============================================================================
+
module ModuleA
{
@@ -48,7 +48,7 @@ module ModuleA
//interface XPropertyChangeListener;
//interface XPropertiesChangeListener;
-//=============================================================================
+
/** This is a test interface for introspection.
<p>IMPORTANT: FOR TEST ONLY!
@@ -61,149 +61,149 @@ module ModuleA
*/
interface XIntroTest: com::sun::star::uno::XInterface
{
- //-------------------------------------------------------------------------
+
/** contains the ID-String of the implementation.
*/
[attribute] string ObjectName;
- //-------------------------------------------------------------------------
+
/** contains the first name of a person.
*/
[readonly, attribute] string FirstName;
- //-------------------------------------------------------------------------
+
/** contains the last name of a person.
*/
[readonly, attribute] string LastName;
- //-------------------------------------------------------------------------
+
/** contains the age of a person.
*/
[readonly, attribute] short Age;
- //-------------------------------------------------------------------------
+
/** contains the number of children person has.
*/
[attribute] short ChildrenCount;
- //-------------------------------------------------------------------------
+
/** contains a struct of type Property.
*/
[attribute] com::sun::star::beans::Property FirstStruct;
- //-------------------------------------------------------------------------
+
/** contains a struct of type PropertyValue.
*/
[attribute] com::sun::star::beans::PropertyValue SecondStruct;
- //-------------------------------------------------------------------------
+
/** Ausgabe-Methode
*/
void writeln( [in] string Text );
- //-------------------------------------------------------------------------
+
/** ...
*/
long getDroenk();
- //-------------------------------------------------------------------------
+
/** Weitere Introspection-Test-Objekt holen
*/
XIntroTest getIntroTest();
//com::sun::star::beans::XIntroTest getIntroTest();
- //-------------------------------------------------------------------------
+
/** !!! No property, because parameter exists
*/
long getUps( [in] long l );
- //-------------------------------------------------------------------------
+
/** ...
*/
void setDroenk( [in] long l );
- //-------------------------------------------------------------------------
+
/** ...
*/
short getBla();
- //-------------------------------------------------------------------------
+
/** !!! Not the set method for property Bla, because param type != return type.
*/
void setBla( [in] long n );
- //-------------------------------------------------------------------------
+
/** ...
*/
short getBlub();
- //-------------------------------------------------------------------------
+
/** ...
*/
void setBlub( [in] short n );
- //-------------------------------------------------------------------------
+
/** ...
*/
short getGulp();
- //-------------------------------------------------------------------------
+
/** !!! Not the set method for property Gulp, because return type != void.
*/
short setGulp( [in] short n );
- //-------------------------------------------------------------------------
+
/** ...
*/
com::sun::star::uno::TypeClass getTypeClass( [in] short n );
- //-------------------------------------------------------------------------
+
/** ...
*/
void setTypeClass( [in] com::sun::star::uno::TypeClass t,
[in] double d1,
[in] double d2 );
- //-------------------------------------------------------------------------
+
/**
*/
sequence<string> getStrings();
- //-------------------------------------------------------------------------
+
/** ...
*/
void setStrings( [in] sequence<string> Strings );
- //-------------------------------------------------------------------------
+
/** ...
*/
void setStringsPerMethod( [in] sequence<string> Strings,
[in] short n );
- //-------------------------------------------------------------------------
+
/**
*/
sequence< sequence< sequence< short > > > getMultiSequence();
- //-------------------------------------------------------------------------
+
/** ...
*/
void setMultiSequence( [in] sequence< sequence< sequence< short > > > Seq );
- //-------------------------------------------------------------------------
+
/**Add a PropertiesChangeListener
*/
void addPropertiesChangeListener( [in] sequence< string > PropertyNames,
[in] com::sun::star::beans::XPropertiesChangeListener Listener );
- //-------------------------------------------------------------------------
+
/**Remove a PropertiesChangeListener
*/
void removePropertiesChangeListener( [in] com::sun::star::beans::XPropertiesChangeListener Listener );
};
-//=============================================================================
+
};
//}; }; }; };
diff --git a/stoc/test/testproxyfac.cxx b/stoc/test/testproxyfac.cxx
index 682afb56a927..77eafd98c723 100644
--- a/stoc/test/testproxyfac.cxx
+++ b/stoc/test/testproxyfac.cxx
@@ -49,7 +49,7 @@ typedef WeakImplHelper3< lang::XServiceInfo,
XCurrentContext,
reflection::XProxyFactory > t_impl;
-//==============================================================================
+
class TargetObject : public t_impl
{
public:
@@ -99,7 +99,7 @@ Any TargetObject::queryInterface( Type const & type )
int TargetObject::s_obj = 0;
-//==============================================================================
+
class TestMaster : public WeakImplHelper1< lang::XServiceInfo >
{
Reference< XAggregation > m_xProxyTarget;
diff --git a/stoc/test/testsmgr_cpnt.cxx b/stoc/test/testsmgr_cpnt.cxx
index f6801406d68c..a1d1d923c025 100644
--- a/stoc/test/testsmgr_cpnt.cxx
+++ b/stoc/test/testsmgr_cpnt.cxx
@@ -115,9 +115,9 @@ Reference< XInterface > SAL_CALL Test_Manager_Impl_CreateInstance_Impl()
}
-//*************************************************************************
+
// Test_Manager_Impl_CreateInstance()
-//
+
Reference < XInterface > SAL_CALL Test_Manager_Impl_CreateInstance(
const Reference< XMultiServiceFactory > & /*rSMgr*/ ) throw (Exception)
{
@@ -127,9 +127,9 @@ Reference < XInterface > SAL_CALL Test_Manager_Impl_CreateInstance(
}
-//*************************************************************************
+
// Test_Manager_Impl::getImplementationName
-//
+
OUString Test_Manager_Impl::getImplementationName() throw()
{
return OUString(IMPLEMENTATION_NAME);
@@ -141,17 +141,17 @@ sal_Bool Test_Manager_Impl::supportsService( const OUString& ServiceName ) throw
return cppu::supportsService(this, ServiceName);
}
-//*************************************************************************
+
// Test_Manager_Impl::getSupportedServiceNames
-//
+
Sequence< OUString > Test_Manager_Impl::getSupportedServiceNames(void) throw ()
{
return getSupportedServiceNames_Static();
}
-//*************************************************************************
+
// Test_Manager_Impl::getSupportedServiceNames_Static
-//
+
Sequence< OUString > Test_Manager_Impl::getSupportedServiceNames_Static(void) throw ()
{
Sequence< OUString > aSNS( 2 );
@@ -218,9 +218,9 @@ extern "C" void SAL_CALL test_ServiceManager()
// try to get an instance for a unknown service
OSL_VERIFY( !xSMgr->createInstance("bla.blup.Q").is() );
- //
+
// First test : register service via the internal function of the component itself
- //
+
{
Reference< XImplementationRegistration >
xInst( xSMgr->createInstance("com.sun.star.registry.ImplementationRegistration"), UNO_QUERY );
@@ -260,7 +260,7 @@ extern "C" void SAL_CALL test_ServiceManager()
extern "C"
{
-//==================================================================================================
+
sal_Bool SAL_CALL component_writeInfo(
void * /*pServiceManager*/, void * pRegistryKey )
{
@@ -287,7 +287,7 @@ sal_Bool SAL_CALL component_writeInfo(
}
return sal_False;
}
-//==================================================================================================
+
SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{