LCOV - code coverage report
Current view: top level - libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/bridgetest/normal/test/testtools/bridgetest - BigStruct.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 3 100.0 %
Date: 2012-12-27 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_TEST_TESTTOOLS_BRIDGETEST_BIGSTRUCT_HPP
       2             : #define INCLUDED_TEST_TESTTOOLS_BRIDGETEST_BIGSTRUCT_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "test/testtools/bridgetest/BigStruct.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             : inline BigStruct::BigStruct() SAL_THROW(())
      17             :     : a(0)
      18             :     , b(0)
      19             :     , c(0)
      20             :     , d(0)
      21             :     , e(0)
      22             :     , f(0)
      23             :     , g(0)
      24             :     , h(0)
      25             : {
      26             : }
      27             : 
      28           1 : inline BigStruct::BigStruct(const ::sal_Int64& a_, const ::sal_Int64& b_, const ::sal_Int64& c_, const ::sal_Int64& d_, const ::sal_Int64& e_, const ::sal_Int64& f_, const ::sal_Int64& g_, const ::sal_Int64& h_) SAL_THROW(())
      29             :     : a(a_)
      30             :     , b(b_)
      31             :     , c(c_)
      32             :     , d(d_)
      33             :     , e(e_)
      34             :     , f(f_)
      35             :     , g(g_)
      36           1 :     , h(h_)
      37             : {
      38           1 : }
      39             : 
      40             : } } }
      41             : 
      42             : namespace test { namespace testtools { namespace bridgetest {
      43             : 
      44             : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::BigStruct const *) {
      45             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      46             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      47             :     if (the_type == 0) {
      48             :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "test.testtools.bridgetest.BigStruct");
      49             :     }
      50             :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      51             : }
      52             : 
      53             : } } }
      54             : 
      55             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::BigStruct const *) SAL_THROW(()) {
      56             :     return ::cppu::UnoType< ::test::testtools::bridgetest::BigStruct >::get();
      57             : }
      58             : 
      59             : #endif // INCLUDED_TEST_TESTTOOLS_BRIDGETEST_BIGSTRUCT_HPP

Generated by: LCOV version 1.10