LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/bridgetest/normal/test/testtools/bridgetest - TestElement.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 7 100.0 %
Date: 2012-08-25 Functions: 2 2 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                 :            : #ifndef INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTELEMENT_HPP
       2                 :            : #define INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTELEMENT_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "test/testtools/bridgetest/TestElement.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/uno/XInterface.hpp"
       9                 :            : #include "test/testtools/bridgetest/TestSimple.hpp"
      10                 :            : #include "com/sun/star/uno/Any.hxx"
      11                 :            : #include "com/sun/star/uno/Reference.hxx"
      12                 :            : #include "com/sun/star/uno/Type.hxx"
      13                 :            : #include "cppu/unotype.hxx"
      14                 :            : #include "rtl/ustring.hxx"
      15                 :            : #include "sal/types.h"
      16                 :            : #include "typelib/typeclass.h"
      17                 :            : #include "typelib/typedescription.h"
      18                 :            : 
      19                 :            : namespace test { namespace testtools { namespace bridgetest {
      20                 :            : 
      21                 :         42 : inline TestElement::TestElement() SAL_THROW(())
      22                 :            :     : ::test::testtools::bridgetest::TestSimple()
      23                 :            :     , String()
      24                 :            :     , Interface()
      25                 :         42 :     , Any()
      26                 :            : {
      27                 :         42 : }
      28                 :            : 
      29                 :            : inline TestElement::TestElement(const ::sal_Bool& Bool_, const ::sal_Unicode& Char_, const ::sal_Int8& Byte_, const ::sal_Int16& Short_, const ::sal_uInt16& UShort_, const ::sal_Int32& Long_, const ::sal_uInt32& ULong_, const ::sal_Int64& Hyper_, const ::sal_uInt64& UHyper_, const float& Float_, const double& Double_, const ::test::testtools::bridgetest::TestEnum& Enum_, const ::rtl::OUString& String_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Interface_, const ::com::sun::star::uno::Any& Any_) SAL_THROW(())
      30                 :            :     : ::test::testtools::bridgetest::TestSimple(Bool_, Char_, Byte_, Short_, UShort_, Long_, ULong_, Hyper_, UHyper_, Float_, Double_, Enum_)
      31                 :            :     , String(String_)
      32                 :            :     , Interface(Interface_)
      33                 :            :     , Any(Any_)
      34                 :            : {
      35                 :            : }
      36                 :            : 
      37                 :            : } } }
      38                 :            : 
      39                 :            : namespace test { namespace testtools { namespace bridgetest {
      40                 :            : 
      41                 :          6 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::TestElement const *) {
      42                 :            :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      43                 :            :     static ::typelib_TypeDescriptionReference * the_type = 0;
      44         [ +  - ]:          6 :     if (the_type == 0) {
      45                 :          6 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "test.testtools.bridgetest.TestElement");
      46                 :            :     }
      47                 :          6 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      48                 :            : }
      49                 :            : 
      50                 :            : } } }
      51                 :            : 
      52                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::TestElement const *) SAL_THROW(()) {
      53                 :            :     return ::cppu::UnoType< ::test::testtools::bridgetest::TestElement >::get();
      54                 :            : }
      55                 :            : 
      56                 :            : #endif // INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTELEMENT_HPP

Generated by: LCOV version 1.10