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

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTSTRUCT_HPP
       2                 :            : #define INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTSTRUCT_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "test/testtools/bridgetest/TestStruct.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/uno/Type.hxx"
       9                 :            : #include "cppu/unotype.hxx"
      10                 :            : #include "sal/types.h"
      11                 :            : #include "typelib/typeclass.h"
      12                 :            : #include "typelib/typedescription.h"
      13                 :            : 
      14                 :            : namespace test { namespace testtools { namespace bridgetest {
      15                 :            : 
      16                 :          9 : inline TestStruct::TestStruct() SAL_THROW(())
      17                 :          9 :     : member(0)
      18                 :            : {
      19                 :          9 : }
      20                 :            : 
      21                 :          6 : inline TestStruct::TestStruct(const ::sal_Int32& member_) SAL_THROW(())
      22                 :          6 :     : member(member_)
      23                 :            : {
      24                 :          6 : }
      25                 :            : 
      26                 :            : } } }
      27                 :            : 
      28                 :            : namespace test { namespace testtools { namespace bridgetest {
      29                 :            : 
      30                 :         18 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::TestStruct const *) {
      31                 :            :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      32                 :            :     static ::typelib_TypeDescriptionReference * the_type = 0;
      33         [ +  + ]:         18 :     if (the_type == 0) {
      34                 :          6 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "test.testtools.bridgetest.TestStruct");
      35                 :            :     }
      36                 :         18 :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      37                 :            : }
      38                 :            : 
      39                 :            : } } }
      40                 :            : 
      41                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::TestStruct const *) SAL_THROW(()) {
      42                 :            :     return ::cppu::UnoType< ::test::testtools::bridgetest::TestStruct >::get();
      43                 :            : }
      44                 :            : 
      45                 :            : #endif // INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTSTRUCT_HPP

Generated by: LCOV version 1.10