LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/bridgetest/normal/test/testtools/bridgetest - XBridgeTestBase.hdl (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_TEST_TESTTOOLS_BRIDGETEST_XBRIDGETESTBASE_HDL
       2                 :            : #define INCLUDED_TEST_TESTTOOLS_BRIDGETEST_XBRIDGETESTBASE_HDL
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/uno/RuntimeException.hdl"
       7                 :            : namespace test { namespace testtools { namespace bridgetest { class XBridgeTestBase; } } }
       8                 :            : #include "com/sun/star/lang/IllegalArgumentException.hdl"
       9                 :            : #include "test/testtools/bridgetest/TestStruct.hdl"
      10                 :            : namespace test { namespace testtools { namespace bridgetest { class XMulti; } } }
      11                 :            : #include "test/testtools/bridgetest/TestBadEnum.hdl"
      12                 :            : #include "test/testtools/bridgetest/TestElement.hdl"
      13                 :            : #include "test/testtools/bridgetest/MixedFloatAndInteger.hdl"
      14                 :            : #include "test/testtools/bridgetest/TestData.hdl"
      15                 :            : namespace test { namespace testtools { namespace bridgetest { class XRecursiveCall; } } }
      16                 :            : #include "test/testtools/bridgetest/FourFloats.hdl"
      17                 :            : #include "test/testtools/bridgetest/BigStruct.hdl"
      18                 :            : #include "com/sun/star/uno/XInterface.hdl"
      19                 :            : #include "test/testtools/bridgetest/SmallStruct.hdl"
      20                 :            : #include "test/testtools/bridgetest/MediumStruct.hdl"
      21                 :            : #include "test/testtools/bridgetest/ThreeByteStruct.hdl"
      22                 :            : #include "test/testtools/bridgetest/TwoFloats.hdl"
      23                 :            : #include "test/testtools/bridgetest/TestPolyStruct.hdl"
      24                 :            : #include "test/testtools/bridgetest/TestEnum.hdl"
      25                 :            : #include "com/sun/star/uno/Any.h"
      26                 :            : #include "com/sun/star/uno/Reference.h"
      27                 :            : #include "com/sun/star/uno/Sequence.h"
      28                 :            : #include "com/sun/star/uno/Type.h"
      29                 :            : #include "cppu/macros.hxx"
      30                 :            : #include "rtl/ustring.hxx"
      31                 :            : #include "sal/types.h"
      32                 :            : 
      33                 :            : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
      34                 :            : 
      35                 :            : namespace test { namespace testtools { namespace bridgetest {
      36                 :            : 
      37                 :          3 : class SAL_NO_VTABLE XBridgeTestBase : public ::com::sun::star::uno::XInterface
      38                 :            : {
      39                 :            : public:
      40                 :            : 
      41                 :            :     // Attributes
      42                 :            :     virtual ::sal_Bool SAL_CALL getBool() throw (::com::sun::star::uno::RuntimeException) = 0;
      43                 :            :     virtual void SAL_CALL setBool( ::sal_Bool _bool ) throw (::com::sun::star::uno::RuntimeException) = 0;
      44                 :            :     virtual ::sal_Int8 SAL_CALL getByte() throw (::com::sun::star::uno::RuntimeException) = 0;
      45                 :            :     virtual void SAL_CALL setByte( ::sal_Int8 _byte ) throw (::com::sun::star::uno::RuntimeException) = 0;
      46                 :            :     virtual ::sal_Unicode SAL_CALL getChar() throw (::com::sun::star::uno::RuntimeException) = 0;
      47                 :            :     virtual void SAL_CALL setChar( ::sal_Unicode _char ) throw (::com::sun::star::uno::RuntimeException) = 0;
      48                 :            :     virtual ::sal_Int16 SAL_CALL getShort() throw (::com::sun::star::uno::RuntimeException) = 0;
      49                 :            :     virtual void SAL_CALL setShort( ::sal_Int16 _short ) throw (::com::sun::star::uno::RuntimeException) = 0;
      50                 :            :     virtual ::sal_uInt16 SAL_CALL getUShort() throw (::com::sun::star::uno::RuntimeException) = 0;
      51                 :            :     virtual void SAL_CALL setUShort( ::sal_uInt16 _ushort ) throw (::com::sun::star::uno::RuntimeException) = 0;
      52                 :            :     virtual ::sal_Int32 SAL_CALL getLong() throw (::com::sun::star::uno::RuntimeException) = 0;
      53                 :            :     virtual void SAL_CALL setLong( ::sal_Int32 _long ) throw (::com::sun::star::uno::RuntimeException) = 0;
      54                 :            :     virtual ::sal_uInt32 SAL_CALL getULong() throw (::com::sun::star::uno::RuntimeException) = 0;
      55                 :            :     virtual void SAL_CALL setULong( ::sal_uInt32 _ulong ) throw (::com::sun::star::uno::RuntimeException) = 0;
      56                 :            :     virtual ::sal_Int64 SAL_CALL getHyper() throw (::com::sun::star::uno::RuntimeException) = 0;
      57                 :            :     virtual void SAL_CALL setHyper( ::sal_Int64 _hyper ) throw (::com::sun::star::uno::RuntimeException) = 0;
      58                 :            :     virtual ::sal_uInt64 SAL_CALL getUHyper() throw (::com::sun::star::uno::RuntimeException) = 0;
      59                 :            :     virtual void SAL_CALL setUHyper( ::sal_uInt64 _uhyper ) throw (::com::sun::star::uno::RuntimeException) = 0;
      60                 :            :     virtual float SAL_CALL getFloat() throw (::com::sun::star::uno::RuntimeException) = 0;
      61                 :            :     virtual void SAL_CALL setFloat( float _float ) throw (::com::sun::star::uno::RuntimeException) = 0;
      62                 :            :     virtual double SAL_CALL getDouble() throw (::com::sun::star::uno::RuntimeException) = 0;
      63                 :            :     virtual void SAL_CALL setDouble( double _double ) throw (::com::sun::star::uno::RuntimeException) = 0;
      64                 :            :     virtual ::test::testtools::bridgetest::TestEnum SAL_CALL getEnum() throw (::com::sun::star::uno::RuntimeException) = 0;
      65                 :            :     virtual void SAL_CALL setEnum( ::test::testtools::bridgetest::TestEnum _enum ) throw (::com::sun::star::uno::RuntimeException) = 0;
      66                 :            :     virtual ::rtl::OUString SAL_CALL getString() throw (::com::sun::star::uno::RuntimeException) = 0;
      67                 :            :     virtual void SAL_CALL setString( const ::rtl::OUString& _string ) throw (::com::sun::star::uno::RuntimeException) = 0;
      68                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getInterface() throw (::com::sun::star::uno::RuntimeException) = 0;
      69                 :            :     virtual void SAL_CALL setInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _interface ) throw (::com::sun::star::uno::RuntimeException) = 0;
      70                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL getAny() throw (::com::sun::star::uno::RuntimeException) = 0;
      71                 :            :     virtual void SAL_CALL setAny( const ::com::sun::star::uno::Any& _any ) throw (::com::sun::star::uno::RuntimeException) = 0;
      72                 :            :     virtual ::com::sun::star::uno::Sequence< ::test::testtools::bridgetest::TestElement > SAL_CALL getSequence() throw (::com::sun::star::uno::RuntimeException) = 0;
      73                 :            :     virtual void SAL_CALL setSequence( const ::com::sun::star::uno::Sequence< ::test::testtools::bridgetest::TestElement >& _sequence ) throw (::com::sun::star::uno::RuntimeException) = 0;
      74                 :            :     virtual ::test::testtools::bridgetest::TestDataElements SAL_CALL getStruct() throw (::com::sun::star::uno::RuntimeException) = 0;
      75                 :            :     virtual void SAL_CALL setStruct( const ::test::testtools::bridgetest::TestDataElements& _struct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      76                 :            :     virtual ::sal_Int32 SAL_CALL getRaiseAttr1() throw (::com::sun::star::uno::RuntimeException) = 0;
      77                 :            :     virtual void SAL_CALL setRaiseAttr1( ::sal_Int32 _raiseattr1 ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
      78                 :            :     virtual ::sal_Int32 SAL_CALL getRaiseAttr2() throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
      79                 :            : 
      80                 :            :     // Methods
      81                 :            :     virtual void SAL_CALL setValues( ::sal_Bool bBool, ::sal_Unicode cChar, ::sal_Int8 nByte, ::sal_Int16 nShort, ::sal_uInt16 nUShort, ::sal_Int32 nLong, ::sal_uInt32 nULong, ::sal_Int64 nHyper, ::sal_uInt64 nUHyper, float fFloat, double fDouble, ::test::testtools::bridgetest::TestEnum eEnum, const ::rtl::OUString& aString, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xInterface, const ::com::sun::star::uno::Any& aAny, const ::com::sun::star::uno::Sequence< ::test::testtools::bridgetest::TestElement >& aSequence, const ::test::testtools::bridgetest::TestDataElements& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      82                 :            :     virtual ::test::testtools::bridgetest::TestDataElements SAL_CALL setValues2( ::sal_Bool& bBool, ::sal_Unicode& cChar, ::sal_Int8& nByte, ::sal_Int16& nShort, ::sal_uInt16& nUShort, ::sal_Int32& nLong, ::sal_uInt32& nULong, ::sal_Int64& nHyper, ::sal_uInt64& nUHyper, float& fFloat, double& fDouble, ::test::testtools::bridgetest::TestEnum& eEnum, ::rtl::OUString& aString, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xInterface, ::com::sun::star::uno::Any& aAny, ::com::sun::star::uno::Sequence< ::test::testtools::bridgetest::TestElement >& aSequence, ::test::testtools::bridgetest::TestDataElements& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      83                 :            :     virtual ::test::testtools::bridgetest::TestDataElements SAL_CALL getValues( ::sal_Bool& bBool, ::sal_Unicode& cChar, ::sal_Int8& nByte, ::sal_Int16& nShort, ::sal_uInt16& nUShort, ::sal_Int32& nLong, ::sal_uInt32& nULong, ::sal_Int64& nHyper, ::sal_uInt64& nUHyper, float& fFloat, double& fDouble, ::test::testtools::bridgetest::TestEnum& eEnum, ::rtl::OUString& aString, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xInterface, ::com::sun::star::uno::Any& aAny, ::com::sun::star::uno::Sequence< ::test::testtools::bridgetest::TestElement >& aSequence, ::test::testtools::bridgetest::TestDataElements& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      84                 :            :     virtual ::test::testtools::bridgetest::SmallStruct SAL_CALL echoSmallStruct( const ::test::testtools::bridgetest::SmallStruct& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      85                 :            :     virtual ::test::testtools::bridgetest::MediumStruct SAL_CALL echoMediumStruct( const ::test::testtools::bridgetest::MediumStruct& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      86                 :            :     virtual ::test::testtools::bridgetest::BigStruct SAL_CALL echoBigStruct( const ::test::testtools::bridgetest::BigStruct& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      87                 :            :     virtual ::test::testtools::bridgetest::TwoFloats SAL_CALL echoTwoFloats( const ::test::testtools::bridgetest::TwoFloats& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      88                 :            :     virtual ::test::testtools::bridgetest::FourFloats SAL_CALL echoFourFloats( const ::test::testtools::bridgetest::FourFloats& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      89                 :            :     virtual ::test::testtools::bridgetest::MixedFloatAndInteger SAL_CALL echoMixedFloatAndInteger( const ::test::testtools::bridgetest::MixedFloatAndInteger& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      90                 :            :     virtual ::test::testtools::bridgetest::ThreeByteStruct SAL_CALL echoThreeByteStruct( const ::test::testtools::bridgetest::ThreeByteStruct& aStruct ) throw (::com::sun::star::uno::RuntimeException) = 0;
      91                 :            :     virtual ::sal_Int32 SAL_CALL testPPCAlignment( ::sal_Int64 l1, ::sal_Int64 l2, ::sal_Int32 i1, ::sal_Int64 l3, ::sal_Int32 i2 ) throw (::com::sun::star::uno::RuntimeException) = 0;
      92                 :            :     virtual double SAL_CALL testTenDoubles( double d1, double d2, double d3, double d4, double d5, double d6, double d7, double d8, double d9, double d10 ) throw (::com::sun::star::uno::RuntimeException) = 0;
      93                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::sal_Bool > SAL_CALL transportPolyBoolean( const ::test::testtools::bridgetest::TestPolyStruct< ::sal_Bool >& arg ) throw (::com::sun::star::uno::RuntimeException) = 0;
      94                 :            :     virtual void SAL_CALL transportPolyHyper( ::test::testtools::bridgetest::TestPolyStruct< ::sal_Int64 >& arg ) throw (::com::sun::star::uno::RuntimeException) = 0;
      95                 :            :     virtual void SAL_CALL transportPolySequence( const ::test::testtools::bridgetest::TestPolyStruct< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& arg1, ::test::testtools::bridgetest::TestPolyStruct< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& arg2 ) throw (::com::sun::star::uno::RuntimeException) = 0;
      96                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::sal_Int32 > SAL_CALL getNullPolyLong(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
      97                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::rtl::OUString > SAL_CALL getNullPolyString(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
      98                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::com::sun::star::uno::Type > SAL_CALL getNullPolyType(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
      99                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::com::sun::star::uno::Any > SAL_CALL getNullPolyAny(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     100                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::com::sun::star::uno::Sequence< ::sal_Bool > > SAL_CALL getNullPolySequence(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     101                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::test::testtools::bridgetest::TestEnum > SAL_CALL getNullPolyEnum(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     102                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::test::testtools::bridgetest::TestBadEnum > SAL_CALL getNullPolyBadEnum(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     103                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::test::testtools::bridgetest::TestStruct > SAL_CALL getNullPolyStruct(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     104                 :            :     virtual ::test::testtools::bridgetest::TestPolyStruct< ::com::sun::star::uno::Reference< ::test::testtools::bridgetest::XBridgeTestBase > > SAL_CALL getNullPolyInterface(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     105                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL transportAny( const ::com::sun::star::uno::Any& value ) throw (::com::sun::star::uno::RuntimeException) = 0;
     106                 :            :     virtual void SAL_CALL call( ::sal_Int32 nCallId, ::sal_Int32 nWaitMUSEC ) throw (::com::sun::star::uno::RuntimeException) = 0;
     107                 :            :     virtual void SAL_CALL callOneway( ::sal_Int32 nCallId, ::sal_Int32 nWaitMUSEC ) throw (::com::sun::star::uno::RuntimeException) = 0;
     108                 :            :     virtual ::sal_Bool SAL_CALL sequenceOfCallTestPassed(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     109                 :            :     virtual void SAL_CALL startRecursiveCall( const ::com::sun::star::uno::Reference< ::test::testtools::bridgetest::XRecursiveCall >& xCall, ::sal_Int32 nToCall ) throw (::com::sun::star::uno::RuntimeException) = 0;
     110                 :            :     virtual ::com::sun::star::uno::Reference< ::test::testtools::bridgetest::XMulti > SAL_CALL getMulti(  ) throw (::com::sun::star::uno::RuntimeException) = 0;
     111                 :            :     virtual ::rtl::OUString SAL_CALL testMulti( const ::com::sun::star::uno::Reference< ::test::testtools::bridgetest::XMulti >& multi ) throw (::com::sun::star::uno::RuntimeException) = 0;
     112                 :            : 
     113                 :            :     static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
     114                 :            : 
     115                 :            : protected:
     116                 :          3 :     ~XBridgeTestBase() throw () {} // avoid warnings about virtual members and non-virtual dtor
     117                 :            : };
     118                 :            : 
     119                 :            : 
     120                 :            : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::XBridgeTestBase const *);
     121                 :            : } } }
     122                 :            : 
     123                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::test::testtools::bridgetest::XBridgeTestBase > *) SAL_THROW(());
     124                 :            : 
     125                 :            : #endif

Generated by: LCOV version 1.10