LCOV - code coverage report
Current view: top level - libreoffice/testtools/source/bridgetest - multi.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 36 36 100.0 %
Date: 2012-12-27 Functions: 20 20 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_testtools_source_bridgetest_multi_hxx
      21             : #define INCLUDED_testtools_source_bridgetest_multi_hxx
      22             : 
      23             : #include "sal/config.h"
      24             : 
      25             : #include "com/sun/star/uno/Reference.hxx"
      26             : #include "com/sun/star/uno/RuntimeException.hpp"
      27             : #include "cppuhelper/implbase1.hxx"
      28             : #include "rtl/ustring.hxx"
      29             : #include "sal/types.h"
      30             : #include "test/testtools/bridgetest/XMulti.hpp"
      31             : 
      32             : namespace testtools { namespace bridgetest {
      33             : 
      34           4 : class Multi: public cppu::WeakImplHelper1< test::testtools::bridgetest::XMulti >
      35             : {
      36             : public:
      37           2 :     Multi(): m_attribute1(0.0), m_attribute3(0.0) {}
      38             : 
      39          20 :     virtual double SAL_CALL getatt1()
      40             :         throw (com::sun::star::uno::RuntimeException)
      41          20 :     { return m_attribute1; }
      42             : 
      43           2 :     virtual void SAL_CALL setatt1(double value)
      44             :         throw (com::sun::star::uno::RuntimeException)
      45           2 :     { m_attribute1 = value; }
      46             : 
      47          10 :     virtual sal_Int32 SAL_CALL fn11(sal_Int32 arg)
      48             :         throw (com::sun::star::uno::RuntimeException)
      49          10 :     { return 11 * arg; }
      50             : 
      51          10 :     virtual rtl::OUString SAL_CALL fn12(rtl::OUString const & arg)
      52             :         throw (com::sun::star::uno::RuntimeException)
      53          10 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("12")) + arg; }
      54             : 
      55           2 :     virtual sal_Int32 SAL_CALL fn21(sal_Int32 arg)
      56             :         throw (com::sun::star::uno::RuntimeException)
      57           2 :     { return 21 * arg; }
      58             : 
      59           2 :     virtual rtl::OUString SAL_CALL fn22(rtl::OUString const & arg)
      60             :         throw (com::sun::star::uno::RuntimeException)
      61           2 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("22")) + arg; }
      62             : 
      63          12 :     virtual double SAL_CALL getatt3()
      64             :         throw (com::sun::star::uno::RuntimeException)
      65          12 :     { return m_attribute3; }
      66             : 
      67           2 :     virtual void SAL_CALL setatt3(double value)
      68             :         throw (com::sun::star::uno::RuntimeException)
      69           2 :     { m_attribute3 = value; }
      70             : 
      71           6 :     virtual sal_Int32 SAL_CALL fn31(sal_Int32 arg)
      72             :         throw (com::sun::star::uno::RuntimeException)
      73           6 :     { return 31 * arg; }
      74             : 
      75           6 :     virtual rtl::OUString SAL_CALL fn32(rtl::OUString const & arg)
      76             :         throw (com::sun::star::uno::RuntimeException)
      77           6 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("32")) + arg; }
      78             : 
      79           6 :     virtual sal_Int32 SAL_CALL fn33()
      80             :         throw (com::sun::star::uno::RuntimeException)
      81           6 :     { return 33; }
      82             : 
      83           2 :     virtual sal_Int32 SAL_CALL fn41(sal_Int32 arg)
      84             :         throw (com::sun::star::uno::RuntimeException)
      85           2 :     { return 41 * arg; }
      86             : 
      87           2 :     virtual sal_Int32 SAL_CALL fn61(sal_Int32 arg)
      88             :         throw (com::sun::star::uno::RuntimeException)
      89           2 :     { return 61 * arg; }
      90             : 
      91           2 :     virtual rtl::OUString SAL_CALL fn62(rtl::OUString const & arg)
      92             :         throw (com::sun::star::uno::RuntimeException)
      93           2 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("62")) + arg; }
      94             : 
      95           2 :     virtual sal_Int32 SAL_CALL fn71(sal_Int32 arg)
      96             :         throw (com::sun::star::uno::RuntimeException)
      97           2 :     { return 71 * arg; }
      98             : 
      99           2 :     virtual rtl::OUString SAL_CALL fn72(rtl::OUString const & arg)
     100             :         throw (com::sun::star::uno::RuntimeException)
     101           2 :     { return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("72")) + arg; }
     102             : 
     103           2 :     virtual sal_Int32 SAL_CALL fn73()
     104             :         throw (com::sun::star::uno::RuntimeException)
     105           2 :     { return 73; }
     106             : 
     107             : private:
     108             :     double m_attribute1;
     109             :     double m_attribute3;
     110             : };
     111             : 
     112             : rtl::OUString testMulti(
     113             :     com::sun::star::uno::Reference< test::testtools::bridgetest::XMulti >
     114             :     const & multi);
     115             : 
     116             : } }
     117             : 
     118             : #endif
     119             : 
     120             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10