diff options
Diffstat (limited to 'bridges/test')
43 files changed, 169 insertions, 169 deletions
diff --git a/bridges/test/com/sun/star/lib/TestBed.java b/bridges/test/com/sun/star/lib/TestBed.java index 2e96a724ebc3..971fbe5cfc6a 100644 --- a/bridges/test/com/sun/star/lib/TestBed.java +++ b/bridges/test/com/sun/star/lib/TestBed.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug107753_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug107753_Test.java index badc38df256e..052f6927b744 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug107753_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug107753_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug108825_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug108825_Test.java index 9c7b84a960b3..1b6cf60802fc 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug108825_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug108825_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug110892_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug110892_Test.java index 322f8051ed60..3e1e21285983 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug110892_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug110892_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug111153_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug111153_Test.java index 351481cb4680..ff94985ccbad 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug111153_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug111153_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug114133_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug114133_Test.java index 0049b966be1c..40dac06164da 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug114133_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug114133_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug51323_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug51323_Test.java index bb13c55ee1ad..fe0bfafa3b19 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug51323_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug51323_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug92174_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug92174_Test.java index 9c425a61fb2b..a4eecdb28b33 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug92174_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug92174_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java index 34d98532688b..559fecdeffce 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.idl b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.idl index 491f82cc0a83..fb46db0ed542 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.idl +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.idl @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java index 82804cf22e67..810b7ce88500 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/MethodIdTest.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/MethodIdTest.java index 39c8a0639b8f..c8ff424cbad1 100755 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/MethodIdTest.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/MethodIdTest.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.idl b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.idl index 68330567d405..fdc080d093ee 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.idl +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.idl @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.java index ebf1ed57bc2c..4f37abb8e271 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.java @@ -1,7 +1,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 diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/StopMessageDispatcherTest.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/StopMessageDispatcherTest.java index 2456d681563d..487d3e4877f7 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/StopMessageDispatcherTest.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/StopMessageDispatcherTest.java @@ -1,7 +1,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 diff --git a/bridges/test/inter_libs_exc/inter.cxx b/bridges/test/inter_libs_exc/inter.cxx index 56966388f09e..b3f94e844305 100644 --- a/bridges/test/inter_libs_exc/inter.cxx +++ b/bridges/test/inter_libs_exc/inter.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 @@ -57,12 +57,12 @@ extern "C" int main( int argc, char const * argv [] ) typedef t_throws_exc (SAL_CALL * t_get_thrower)(); t_get_thrower get_thrower = (t_get_thrower)mod_thrower.getSymbol( OUSTR("get_thrower") ); t_throws_exc thrower = (*get_thrower)(); - + typedef void (SAL_CALL * t_starter)( t_throws_exc ); t_starter start = (t_starter)mod_starter.getSymbol( OUSTR("start") ); - + (*start)( thrower ); - + return 0; } diff --git a/bridges/test/inter_libs_exc/starter.cxx b/bridges/test/inter_libs_exc/starter.cxx index e19e83990979..23b8d066b2be 100644 --- a/bridges/test/inter_libs_exc/starter.cxx +++ b/bridges/test/inter_libs_exc/starter.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 diff --git a/bridges/test/inter_libs_exc/thrower.cxx b/bridges/test/inter_libs_exc/thrower.cxx index d490e5d7b084..5289e59d7363 100644 --- a/bridges/test/inter_libs_exc/thrower.cxx +++ b/bridges/test/inter_libs_exc/thrower.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 diff --git a/bridges/test/java_uno/acquire/TestAcquire.java b/bridges/test/java_uno/acquire/TestAcquire.java index 0314e6bfcf9d..b1b90c825cd4 100644 --- a/bridges/test/java_uno/acquire/TestAcquire.java +++ b/bridges/test/java_uno/acquire/TestAcquire.java @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/acquire/testacquire.cxx b/bridges/test/java_uno/acquire/testacquire.cxx index 95a4a0241d20..9c4ab2b07bdf 100644 --- a/bridges/test/java_uno/acquire/testacquire.cxx +++ b/bridges/test/java_uno/acquire/testacquire.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 diff --git a/bridges/test/java_uno/acquire/types.idl b/bridges/test/java_uno/acquire/types.idl index 6dd2964777bd..d8edcf737e78 100644 --- a/bridges/test/java_uno/acquire/types.idl +++ b/bridges/test/java_uno/acquire/types.idl @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/any/TestAny.java b/bridges/test/java_uno/any/TestAny.java index 43e8bf542479..3e21fb15a663 100644 --- a/bridges/test/java_uno/any/TestAny.java +++ b/bridges/test/java_uno/any/TestAny.java @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/any/TestJni.java b/bridges/test/java_uno/any/TestJni.java index 1242c38e86b0..5628263ad8bf 100644 --- a/bridges/test/java_uno/any/TestJni.java +++ b/bridges/test/java_uno/any/TestJni.java @@ -1,7 +1,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 @@ -31,7 +31,7 @@ public class TestJni { static { System.loadLibrary( "test_javauno_any" ); } private static native XTransport create_jni_transport(ClassLoader loader); - + public static void main( String args [] ) { if (TestAny.test( diff --git a/bridges/test/java_uno/any/TestRemote.java b/bridges/test/java_uno/any/TestRemote.java index 4d038559660f..b1508b97a08e 100644 --- a/bridges/test/java_uno/any/TestRemote.java +++ b/bridges/test/java_uno/any/TestRemote.java @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/any/transport.cxx b/bridges/test/java_uno/any/transport.cxx index 4211a96f8149..f093c9c09d9b 100644 --- a/bridges/test/java_uno/any/transport.cxx +++ b/bridges/test/java_uno/any/transport.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 @@ -70,9 +70,9 @@ extern "C" JNIEXPORT jobject JNICALL Java_test_java_1uno_anytest_TestJni_create_ // publish some idl types ::getCppuType( (Reference< XTransport > const *)0 ); ::getCppuType( (Reference< ::test::java_uno::anytest::DerivedInterface > const *)0 ); - + Reference< XTransport > xRet( new Transport() ); - + // get java vm JavaVM * java_vm; OSL_VERIFY( 0 == jni_env->GetJavaVM( &java_vm ) ); @@ -95,13 +95,13 @@ extern "C" JNIEXPORT jobject JNICALL Java_test_java_1uno_anytest_TestJni_create_ OSL_ASSERT( java_env.is() ); uno_getEnvironment( (uno_Environment **)&cpp_env, cpp_name.pData, 0 ); OSL_ASSERT( cpp_env.is() ); - + // map interface Mapping mapping( cpp_env.get(), java_env.get() ); OSL_ASSERT( mapping.is() ); jobject jo_global = (jobject)mapping.mapInterface( xRet.get(), ::getCppuType( &xRet ) ); OSL_ASSERT( 0 != jo_global ); - + // return jobject jo_ret = jni_env->NewLocalRef( jo_global ); jni_env->DeleteGlobalRef( jo_global ); diff --git a/bridges/test/java_uno/any/types.idl b/bridges/test/java_uno/any/types.idl index a7d7df5487e6..cc71ad85fd08 100644 --- a/bridges/test/java_uno/any/types.idl +++ b/bridges/test/java_uno/any/types.idl @@ -1,7 +1,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 @@ -35,8 +35,8 @@ interface XTransport : com::sun::star::uno::XInterface any mapAny([in] any a); }; -interface BaseInterface : com::sun::star::uno::XInterface {}; - -interface DerivedInterface : BaseInterface {}; +interface BaseInterface : com::sun::star::uno::XInterface {}; +interface DerivedInterface : BaseInterface {}; + }; }; }; diff --git a/bridges/test/java_uno/equals/TestEquals.java b/bridges/test/java_uno/equals/TestEquals.java index 5f3ee34a1c1d..b2d134914abd 100644 --- a/bridges/test/java_uno/equals/TestEquals.java +++ b/bridges/test/java_uno/equals/TestEquals.java @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/equals/testequals.cxx b/bridges/test/java_uno/equals/testequals.cxx index ff38371bc6ca..6f8197c3665f 100644 --- a/bridges/test/java_uno/equals/testequals.cxx +++ b/bridges/test/java_uno/equals/testequals.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 diff --git a/bridges/test/java_uno/equals/types.idl b/bridges/test/java_uno/equals/types.idl index c8ddc2f072fe..afe2dddb5117 100644 --- a/bridges/test/java_uno/equals/types.idl +++ b/bridges/test/java_uno/equals/types.idl @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/nativethreadpool/Relay.java b/bridges/test/java_uno/nativethreadpool/Relay.java index 50e198a2d819..5f4307b36efe 100644 --- a/bridges/test/java_uno/nativethreadpool/Relay.java +++ b/bridges/test/java_uno/nativethreadpool/Relay.java @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx b/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx index 425b93a271e4..fa2277e2a8ad 100644 --- a/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx +++ b/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.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 diff --git a/bridges/test/java_uno/nativethreadpool/testnativethreadpoolserver.cxx b/bridges/test/java_uno/nativethreadpool/testnativethreadpoolserver.cxx index c055faa1aa29..1aa1caa2df00 100644 --- a/bridges/test/java_uno/nativethreadpool/testnativethreadpoolserver.cxx +++ b/bridges/test/java_uno/nativethreadpool/testnativethreadpoolserver.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 diff --git a/bridges/test/java_uno/nativethreadpool/types.idl b/bridges/test/java_uno/nativethreadpool/types.idl index 36ca44af37e0..ce9f31263f68 100644 --- a/bridges/test/java_uno/nativethreadpool/types.idl +++ b/bridges/test/java_uno/nativethreadpool/types.idl @@ -1,7 +1,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 diff --git a/bridges/test/java_uno/nativethreadpool/version.map b/bridges/test/java_uno/nativethreadpool/version.map index b560ad15b99f..39c961bdfb95 100644 --- a/bridges/test/java_uno/nativethreadpool/version.map +++ b/bridges/test/java_uno/nativethreadpool/version.map @@ -1,7 +1,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 diff --git a/bridges/test/performance/testperformance.cxx b/bridges/test/performance/testperformance.cxx index d692144a3f37..66e1adf0f4ee 100644 --- a/bridges/test/performance/testperformance.cxx +++ b/bridges/test/performance/testperformance.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 @@ -60,20 +60,20 @@ static inline sal_uInt32 getSystemTicks() #ifdef SAL_W32 return (sal_uInt32)GetTickCount(); #else // only UNX supported for now - static sal_uInt32 nImplTicksPerSecond = 0; - static double dImplTicksPerSecond; - static double dImplTicksULONGMAX; - - struct tms aTms; + static sal_uInt32 nImplTicksPerSecond = 0; + static double dImplTicksPerSecond; + static double dImplTicksULONGMAX; + + struct tms aTms; sal_uInt32 nTicks = (sal_uInt32)times( &aTms ); if ( !nImplTicksPerSecond ) { nImplTicksPerSecond = CLK_TCK; dImplTicksPerSecond = nImplTicksPerSecond; - dImplTicksULONGMAX = (double)(sal_uInt32)ULONG_MAX; + dImplTicksULONGMAX = (double)(sal_uInt32)ULONG_MAX; } - + double fTicks = nTicks; fTicks *= 1000; fTicks /= dImplTicksPerSecond; @@ -187,7 +187,7 @@ void main() OUString textEnc( RTL_CONSTASCII_USTRINGPARAM( "this is a test string" ) ); } } - + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/bridges/test/test_bridge.idl b/bridges/test/test_bridge.idl index ce38594ecd88..ed6f6e12e2a9 100644 --- a/bridges/test/test_bridge.idl +++ b/bridges/test/test_bridge.idl @@ -1,7 +1,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 @@ -32,21 +32,21 @@ module test struct TestTypes { - boolean Bool; - char Char; - byte Byte; - short Short; - unsigned short UShort; - long Long; - unsigned long ULong; - hyper Hyper; - unsigned hyper UHyper; - float Float; - double Double; -// test::TestEnum Enum; - string String; + boolean Bool; + char Char; + byte Byte; + short Short; + unsigned short UShort; + long Long; + unsigned long ULong; + hyper Hyper; + unsigned hyper UHyper; + float Float; + double Double; +// test::TestEnum Enum; + string String; com::sun::star::uno::XInterface Interface; - any Any; + any Any; }; exception TestBridgeException : com::sun::star::uno::Exception diff --git a/bridges/test/testclient.cxx b/bridges/test/testclient.cxx index be5223fb5873..b56537fd6722 100644 --- a/bridges/test/testclient.cxx +++ b/bridges/test/testclient.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 @@ -74,25 +74,25 @@ using namespace ::com::sun::star::test::performance; void doPerformanceTest( const Reference < XPerformanceTest > & /* xBench */) { printf( "not implemented\n" ); -// sal_Int32 i,nLoop = 2000; -// sal_Int32 tStart, tEnd , tEnd2; -// //------------------------------------ -// // oneway calls -// i = nLoop; -// tStart = GetTickCount(); -// while (i--) -// xBench->async(); -// tEnd = GetTickCount(); -// xBench->sync(); -// tEnd2 = GetTickCount(); -// printf( "%d %d %d\n" , nLoop, tEnd - tStart , tEnd2 -tStart ); -// // synchron calls -// i = nLoop; -// tStart = GetTickCount(); -// while (i--) -// xBench->sync(); -// tEnd = GetTickCount(); -// printf( "%d %d \n" , nLoop, tEnd - tStart ); +// sal_Int32 i,nLoop = 2000; +// sal_Int32 tStart, tEnd , tEnd2; +// //------------------------------------ +// // oneway calls +// i = nLoop; +// tStart = GetTickCount(); +// while (i--) +// xBench->async(); +// tEnd = GetTickCount(); +// xBench->sync(); +// tEnd2 = GetTickCount(); +// printf( "%d %d %d\n" , nLoop, tEnd - tStart , tEnd2 -tStart ); +// // synchron calls +// i = nLoop; +// tStart = GetTickCount(); +// while (i--) +// xBench->sync(); +// tEnd = GetTickCount(); +// printf( "%d %d \n" , nLoop, tEnd - tStart ); } @@ -193,7 +193,7 @@ int main( int argc, char *argv[] ) } - Reference < XInterface > rInitialObject = rBridge->getInstance( + Reference < XInterface > rInitialObject = rBridge->getInstance( OUString( RTL_CONSTASCII_USTRINGPARAM("bridges-testobject")) ); if( rInitialObject.is() ) @@ -201,19 +201,19 @@ int main( int argc, char *argv[] ) printf( "got the remote object\n" ); if( ! bReverse ) { - // Reference < XComponent > rPerfTest( rInitialObject , UNO_QUERY ); -// if( rPerfTest.is() ) -// { -// // doPerformanceTest( rPerfTest ); -// } -// else -// { + // Reference < XComponent > rPerfTest( rInitialObject , UNO_QUERY ); +// if( rPerfTest.is() ) +// { +// // doPerformanceTest( rPerfTest ); +// } +// else +// { testRemote( rInitialObject ); -// } +// } } } -// Reference < XComponent > rComp( rBridge , UNO_QUERY ); -// rComp->dispose(); +// Reference < XComponent > rComp( rBridge , UNO_QUERY ); +// rComp->dispose(); rInitialObject = Reference < XInterface > (); printf( "Waiting...\n" ); @@ -223,7 +223,7 @@ int main( int argc, char *argv[] ) } Reference < XBridge > rBridge = rFactory->getBridge( OUString( RTL_CONSTASCII_USTRINGPARAM("bla blub")) ); -// OSL_ASSERT( ! rBridge.is() ); +// OSL_ASSERT( ! rBridge.is() ); } } diff --git a/bridges/test/testclient.java b/bridges/test/testclient.java index f2963f685b9f..94da61555b30 100644 --- a/bridges/test/testclient.java +++ b/bridges/test/testclient.java @@ -1,7 +1,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 @@ -53,7 +53,7 @@ class MyTestFactory implements XTestFactory { return new MyCallMe(); } - + public test.XInterfaceTest createInterfaceTest( ) throws com.sun.star.uno.RuntimeException { return null; @@ -78,7 +78,7 @@ class MyCallMe implements XCallMe public void callOneway( /*IN*/String s, /*IN*/int nToDo ) throws com.sun.star.uno.RuntimeException { System.out.println( "entering callOneway" ); -// this.wait( 5 ); +// this.wait( 5 ); try { Thread.currentThread().sleep( 4000 ); } @@ -96,7 +96,7 @@ class MyCallMe implements XCallMe { return new test.TestTypes(); } - + } public class testclient @@ -104,11 +104,11 @@ public class testclient static void main( String[] args ) { try { - + com.sun.star.comp.servicemanager.ServiceManager smgr = new com.sun.star.comp.servicemanager.ServiceManager(); smgr.addFactories( new String[] { "com.sun.star.comp.connections.Connector" }); - + Object x = smgr.createInstance("com.sun.star.connection.Connector"); if( x == null ) { @@ -116,12 +116,12 @@ public class testclient return; } - + XConnector xConnector = UnoRuntime.queryInterface( XConnector.class , x ); - + XConnection xConnection = xConnector.connect(args[0]); - + if( null != xConnection ) { System.out.println( "after connect" ); @@ -132,13 +132,13 @@ public class testclient "remote", null, new Object[]{"iiop", xConnection, new MyInstanceProvider()}); - + System.out.println( "after building bridge" ); -// Object rInitialObject = m_bridge.mapInterfaceFrom(rootOid, XInterface.class); -// XTestFactory rFactory = -// UnoRuntime.queryInterface(XTestFactory.class,rInitialObject ); - -// XCallMe callMerFactory-> +// Object rInitialObject = m_bridge.mapInterfaceFrom(rootOid, XInterface.class); +// XTestFactory rFactory = +// UnoRuntime.queryInterface(XTestFactory.class,rInitialObject ); + +// XCallMe callMerFactory-> Thread.currentThread().sleep( 100000 ); } } @@ -152,5 +152,5 @@ public class testclient } System.out.println( "exiting" ); - } + } } diff --git a/bridges/test/testcomp.cxx b/bridges/test/testcomp.cxx index 8ec0fc251491..2e90b2c8df72 100644 --- a/bridges/test/testcomp.cxx +++ b/bridges/test/testcomp.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 @@ -466,23 +466,23 @@ Reference< ::test::XInterfaceTest > SAL_CALL OTestFactory::createInterfaceTest( // class OInstanceProvider : -// public ::cppu::OWeakObject, -// public XInstanceProvider +// public ::cppu::OWeakObject, +// public XInstanceProvider // { // public: -// OInstanceProvider( ){} -// ~OInstanceProvider(){ printf( "instance provider dies\n" );} +// OInstanceProvider( ){} +// ~OInstanceProvider(){ printf( "instance provider dies\n" );} // public: -// // XInterface -// Any SAL_CALL queryInterface( const Type & aType); -// void SAL_CALL acquire() { OWeakObject::acquire(); } -// void SAL_CALL release() { OWeakObject::release(); } +// // XInterface +// Any SAL_CALL queryInterface( const Type & aType); +// void SAL_CALL acquire() { OWeakObject::acquire(); } +// void SAL_CALL release() { OWeakObject::release(); } // public: // virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL -// getInstance( const ::rtl::OUString& sObjectName ) -// throw( ::com::sun::star::container::NoSuchElementException, -// ::com::sun::star::uno::RuntimeException); +// getInstance( const ::rtl::OUString& sObjectName ) +// throw( ::com::sun::star::container::NoSuchElementException, +// ::com::sun::star::uno::RuntimeException); // }; @@ -517,7 +517,7 @@ double getCallsPerSecOneway( const Reference < XCallMe > &rCall , osl_getSystemTime( &aStartTime ); for( sal_Int32 i = 0; i < nLoops; i ++ ) { -// rCall->callOneway( OUString( RTL_CONSTASCII_USTRINGPARAM("Performance test string" )), 0 ); +// rCall->callOneway( OUString( RTL_CONSTASCII_USTRINGPARAM("Performance test string" )), 0 ); rCall->drawLine( 0 , 0 , 500 , 123 ); } osl_getSystemTime( &aEndTime ); @@ -779,7 +779,7 @@ Reference <XInterface > createComponent( const ::rtl::OUString &sService , OSL_ASSERT( rReg.is() ); OUString aDllName = sDllName; - + try { rReg->registerImplementation( diff --git a/bridges/test/testcomp.h b/bridges/test/testcomp.h index ad96c7262433..c21cc395cd71 100644 --- a/bridges/test/testcomp.h +++ b/bridges/test/testcomp.h @@ -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 @@ -50,13 +50,13 @@ public: OInterfaceTest() {} ~OInterfaceTest() {} -public: +public: // XInterface - Any SAL_CALL queryInterface( const com::sun::star::uno::Type & aType) throw ( ::com::sun::star::uno::RuntimeException ); - void SAL_CALL acquire() throw() { OWeakObject::acquire(); } - void SAL_CALL release() throw() { OWeakObject::release(); } + Any SAL_CALL queryInterface( const com::sun::star::uno::Type & aType) throw ( ::com::sun::star::uno::RuntimeException ); + void SAL_CALL acquire() throw() { OWeakObject::acquire(); } + void SAL_CALL release() throw() { OWeakObject::release(); } -public: +public: virtual void SAL_CALL setIn( const ::com::sun::star::uno::Reference< ::test::XCallMe >& callback ) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setInOut( ::com::sun::star::uno::Reference< ::test::XCallMe >& callback ) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL getOut( ::com::sun::star::uno::Reference< ::test::XCallMe >& callback ) throw(::com::sun::star::uno::RuntimeException); @@ -77,11 +77,11 @@ public: OCallMe() : m_nLastToDos(-1) {} ~OCallMe() {} -public: +public: // XInterface - Any SAL_CALL queryInterface( const com::sun::star::uno::Type & aType) throw ( ::com::sun::star::uno::RuntimeException ); - void SAL_CALL acquire()throw() { OWeakObject::acquire(); } - void SAL_CALL release()throw() { OWeakObject::release(); } + Any SAL_CALL queryInterface( const com::sun::star::uno::Type & aType) throw ( ::com::sun::star::uno::RuntimeException ); + void SAL_CALL acquire()throw() { OWeakObject::acquire(); } + void SAL_CALL release()throw() { OWeakObject::release(); } public: // XCallMe virtual void SAL_CALL call( const ::rtl::OUString& s, sal_Int32 nToDo ) @@ -113,11 +113,11 @@ public: OTestFactory() {} ~OTestFactory() {} -public: +public: // XInterface - Any SAL_CALL queryInterface( const com::sun::star::uno::Type & aType ) throw ( ::com::sun::star::uno::RuntimeException ); - void SAL_CALL acquire() throw() { OWeakObject::acquire(); } - void SAL_CALL release() throw() { OWeakObject::release(); } + Any SAL_CALL queryInterface( const com::sun::star::uno::Type & aType ) throw ( ::com::sun::star::uno::RuntimeException ); + void SAL_CALL acquire() throw() { OWeakObject::acquire(); } + void SAL_CALL release() throw() { OWeakObject::release(); } public: virtual ::com::sun::star::uno::Reference< ::test::XCallMe > SAL_CALL createCallMe( ) throw(::com::sun::star::uno::RuntimeException); @@ -137,12 +137,12 @@ public: m_rSMgr( r ) {} ~OInstanceProvider(){ printf( "instance provider dies\n" );} -public: +public: // XInterface - Any SAL_CALL queryInterface( const Type & aType)throw ( ::com::sun::star::uno::RuntimeException ); - void SAL_CALL acquire()throw() { OWeakObject::acquire(); } - void SAL_CALL release() throw() { OWeakObject::release(); } - + Any SAL_CALL queryInterface( const Type & aType)throw ( ::com::sun::star::uno::RuntimeException ); + void SAL_CALL acquire()throw() { OWeakObject::acquire(); } + void SAL_CALL release() throw() { OWeakObject::release(); } + public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getInstance( const ::rtl::OUString& sObjectName ) diff --git a/bridges/test/testoffice.cxx b/bridges/test/testoffice.cxx index 0d87089b6921..d073cc2dfcfe 100644 --- a/bridges/test/testoffice.cxx +++ b/bridges/test/testoffice.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 @@ -109,7 +109,7 @@ void testPipe( const Reference < XMultiServiceFactory > & rSmgr ) if( ! ( 42 == seq.getArray()[0] ) ) printf( "wrong element in sequence\n" ); -// OSL_ASSERT( 0 ); +// OSL_ASSERT( 0 ); } } #include<stdio.h> diff --git a/bridges/test/testsameprocess.cxx b/bridges/test/testsameprocess.cxx index 35003986e386..e2e725fe6f35 100644 --- a/bridges/test/testsameprocess.cxx +++ b/bridges/test/testsameprocess.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 @@ -145,10 +145,10 @@ int main( int argc, char *argv[] ) UNO_QUERY ); // just ensure that it is registered -// createComponent( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.Bridge.iiop")), -// OUString( RTL_CONSTASCII_USTRINGPARAM("iiopbrdg" SAL_DLLEXTENSION)), -// rSMgr ); - +// createComponent( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.Bridge.iiop")), +// OUString( RTL_CONSTASCII_USTRINGPARAM("iiopbrdg" SAL_DLLEXTENSION)), +// rSMgr ); + Reference < XBridgeFactory > rFactory( createComponent( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.BridgeFactory")), OUString( RTL_CONSTASCII_USTRINGPARAM("bridgefac.uno" SAL_DLLEXTENSION)), diff --git a/bridges/test/testserver.cxx b/bridges/test/testserver.cxx index 1e9b70cf13d3..d5fbb770de63 100644 --- a/bridges/test/testserver.cxx +++ b/bridges/test/testserver.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 @@ -183,8 +183,8 @@ void MyThread::run() int main( int argc, char *argv[] ) { -// testserver(); - +// testserver(); + if( argc < 2 ) { printf( "usage : testserver [-r] connectionstring\n" @@ -196,9 +196,9 @@ int main( int argc, char *argv[] ) OUString sProtocol; sal_Bool bReverse = sal_False; sal_Bool bLatency = sal_False; - + parseCommandLine( argv , &sConnectionString , &sProtocol , &bLatency , &bReverse ); - + { Reference< XMultiServiceFactory > rSMgr = createRegistryServiceFactory( OUString( RTL_CONSTASCII_USTRINGPARAM( "server.rdb" ) ) ); @@ -208,12 +208,12 @@ int main( int argc, char *argv[] ) OUString( RTL_CONSTASCII_USTRINGPARAM("bridgefac.uno" SAL_DLLEXTENSION )), rSMgr ), UNO_QUERY ); - - + + createComponent( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.Bridge.iiop")), OUString( RTL_CONSTASCII_USTRINGPARAM("remotebridge.uno" SAL_DLLEXTENSION)), rSMgr ); - + Reference < XAcceptor > rAcceptor( createComponent( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.connection.Acceptor")), @@ -230,7 +230,7 @@ int main( int argc, char *argv[] ) bLatency); thread.create(); -#ifdef SAL_W32 +#ifdef SAL_W32 _getch(); #elif SOLARIS getchar(); @@ -239,11 +239,11 @@ int main( int argc, char *argv[] ) osl_waitThread( &value ); #endif printf( "Closing...\n" ); - + rAcceptor->stopAccepting(); thread.join(); - - printf( "Closed\n" ); + + printf( "Closed\n" ); Reference < XComponent > rComp2( rBridgeFactory , UNO_QUERY ); rComp2->dispose(); |