LCOV - code coverage report
Current view: top level - libreoffice/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-12-27 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          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           3 : inline TestStruct::TestStruct() SAL_THROW(())
      17           3 :     : member(0)
      18             : {
      19           3 : }
      20             : 
      21           2 : inline TestStruct::TestStruct(const ::sal_Int32& member_) SAL_THROW(())
      22           2 :     : member(member_)
      23             : {
      24           2 : }
      25             : 
      26             : } } }
      27             : 
      28             : namespace test { namespace testtools { namespace bridgetest {
      29             : 
      30           6 : 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           6 :     if (the_type == 0) {
      34           2 :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "test.testtools.bridgetest.TestStruct");
      35             :     }
      36           6 :     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