LCOV - code coverage report
Current view: top level - testtools/source/bridgetest - multi.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 36 36 100.0 %
Date: 2012-08-25 Functions: 20 20 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef INCLUDED_testtools_source_bridgetest_multi_hxx
      30                 :            : #define INCLUDED_testtools_source_bridgetest_multi_hxx
      31                 :            : 
      32                 :            : #include "sal/config.h"
      33                 :            : 
      34                 :            : #include "com/sun/star/uno/Reference.hxx"
      35                 :            : #include "com/sun/star/uno/RuntimeException.hpp"
      36                 :            : #include "cppuhelper/implbase1.hxx"
      37                 :            : #include "rtl/ustring.hxx"
      38                 :            : #include "sal/types.h"
      39                 :            : #include "test/testtools/bridgetest/XMulti.hpp"
      40                 :            : 
      41                 :            : namespace testtools { namespace bridgetest {
      42                 :            : 
      43         [ -  + ]:         12 : class Multi: public cppu::WeakImplHelper1< test::testtools::bridgetest::XMulti >
      44                 :            : {
      45                 :            : public:
      46                 :          6 :     Multi(): m_attribute1(0.0), m_attribute3(0.0) {}
      47                 :            : 
      48                 :         60 :     virtual double SAL_CALL getatt1()
      49                 :            :         throw (com::sun::star::uno::RuntimeException)
      50                 :         60 :     { return m_attribute1; }
      51                 :            : 
      52                 :          6 :     virtual void SAL_CALL setatt1(double value)
      53                 :            :         throw (com::sun::star::uno::RuntimeException)
      54                 :          6 :     { m_attribute1 = value; }
      55                 :            : 
      56                 :         30 :     virtual sal_Int32 SAL_CALL fn11(sal_Int32 arg)
      57                 :            :         throw (com::sun::star::uno::RuntimeException)
      58                 :         30 :     { return 11 * arg; }
      59                 :            : 
      60                 :         30 :     virtual rtl::OUString SAL_CALL fn12(rtl::OUString const & arg)
      61                 :            :         throw (com::sun::star::uno::RuntimeException)
      62                 :         30 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("12")) + arg; }
      63                 :            : 
      64                 :          6 :     virtual sal_Int32 SAL_CALL fn21(sal_Int32 arg)
      65                 :            :         throw (com::sun::star::uno::RuntimeException)
      66                 :          6 :     { return 21 * arg; }
      67                 :            : 
      68                 :          6 :     virtual rtl::OUString SAL_CALL fn22(rtl::OUString const & arg)
      69                 :            :         throw (com::sun::star::uno::RuntimeException)
      70                 :          6 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("22")) + arg; }
      71                 :            : 
      72                 :         36 :     virtual double SAL_CALL getatt3()
      73                 :            :         throw (com::sun::star::uno::RuntimeException)
      74                 :         36 :     { return m_attribute3; }
      75                 :            : 
      76                 :          6 :     virtual void SAL_CALL setatt3(double value)
      77                 :            :         throw (com::sun::star::uno::RuntimeException)
      78                 :          6 :     { m_attribute3 = value; }
      79                 :            : 
      80                 :         18 :     virtual sal_Int32 SAL_CALL fn31(sal_Int32 arg)
      81                 :            :         throw (com::sun::star::uno::RuntimeException)
      82                 :         18 :     { return 31 * arg; }
      83                 :            : 
      84                 :         18 :     virtual rtl::OUString SAL_CALL fn32(rtl::OUString const & arg)
      85                 :            :         throw (com::sun::star::uno::RuntimeException)
      86                 :         18 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("32")) + arg; }
      87                 :            : 
      88                 :         18 :     virtual sal_Int32 SAL_CALL fn33()
      89                 :            :         throw (com::sun::star::uno::RuntimeException)
      90                 :         18 :     { return 33; }
      91                 :            : 
      92                 :          6 :     virtual sal_Int32 SAL_CALL fn41(sal_Int32 arg)
      93                 :            :         throw (com::sun::star::uno::RuntimeException)
      94                 :          6 :     { return 41 * arg; }
      95                 :            : 
      96                 :          6 :     virtual sal_Int32 SAL_CALL fn61(sal_Int32 arg)
      97                 :            :         throw (com::sun::star::uno::RuntimeException)
      98                 :          6 :     { return 61 * arg; }
      99                 :            : 
     100                 :          6 :     virtual rtl::OUString SAL_CALL fn62(rtl::OUString const & arg)
     101                 :            :         throw (com::sun::star::uno::RuntimeException)
     102                 :          6 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("62")) + arg; }
     103                 :            : 
     104                 :          6 :     virtual sal_Int32 SAL_CALL fn71(sal_Int32 arg)
     105                 :            :         throw (com::sun::star::uno::RuntimeException)
     106                 :          6 :     { return 71 * arg; }
     107                 :            : 
     108                 :          6 :     virtual rtl::OUString SAL_CALL fn72(rtl::OUString const & arg)
     109                 :            :         throw (com::sun::star::uno::RuntimeException)
     110                 :          6 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("72")) + arg; }
     111                 :            : 
     112                 :          6 :     virtual sal_Int32 SAL_CALL fn73()
     113                 :            :         throw (com::sun::star::uno::RuntimeException)
     114                 :          6 :     { return 73; }
     115                 :            : 
     116                 :            : private:
     117                 :            :     double m_attribute1;
     118                 :            :     double m_attribute3;
     119                 :            : };
     120                 :            : 
     121                 :            : rtl::OUString testMulti(
     122                 :            :     com::sun::star::uno::Reference< test::testtools::bridgetest::XMulti >
     123                 :            :     const & multi);
     124                 :            : 
     125                 :            : } }
     126                 :            : 
     127                 :            : #endif
     128                 :            : 
     129                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10