LCOV - code coverage report
Current view: top level - libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/bridgetest/normal/test/testtools/bridgetest - TestSimple.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_TESTSIMPLE_HPP
       2             : #define INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTSIMPLE_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "test/testtools/bridgetest/TestSimple.hdl"
       7             : 
       8             : #include "test/testtools/bridgetest/TestEnum.hpp"
       9             : #include "com/sun/star/uno/Type.hxx"
      10             : #include "cppu/unotype.hxx"
      11             : #include "sal/types.h"
      12             : #include "typelib/typeclass.h"
      13             : #include "typelib/typedescription.h"
      14             : 
      15             : namespace test { namespace testtools { namespace bridgetest {
      16             : 
      17          14 : inline TestSimple::TestSimple() SAL_THROW(())
      18             :     : Bool(false)
      19             :     , Char(0)
      20             :     , Byte(0)
      21             :     , Short(0)
      22             :     , UShort(0)
      23             :     , Long(0)
      24             :     , ULong(0)
      25             :     , Hyper(0)
      26             :     , UHyper(0)
      27             :     , Float(0)
      28             :     , Double(0)
      29          14 :     , Enum(::test::testtools::bridgetest::TestEnum_TEST)
      30             : {
      31          14 : }
      32             : 
      33             : inline TestSimple::TestSimple(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_) SAL_THROW(())
      34             :     : Bool(Bool_)
      35             :     , Char(Char_)
      36             :     , Byte(Byte_)
      37             :     , Short(Short_)
      38             :     , UShort(UShort_)
      39             :     , Long(Long_)
      40             :     , ULong(ULong_)
      41             :     , Hyper(Hyper_)
      42             :     , UHyper(UHyper_)
      43             :     , Float(Float_)
      44             :     , Double(Double_)
      45             :     , Enum(Enum_)
      46             : {
      47             : }
      48             : 
      49             : } } }
      50             : 
      51             : namespace test { namespace testtools { namespace bridgetest {
      52             : 
      53             : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::TestSimple const *) {
      54             :     //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
      55             :     static ::typelib_TypeDescriptionReference * the_type = 0;
      56             :     if (the_type == 0) {
      57             :         ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "test.testtools.bridgetest.TestSimple");
      58             :     }
      59             :     return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
      60             : }
      61             : 
      62             : } } }
      63             : 
      64             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::TestSimple const *) SAL_THROW(()) {
      65             :     return ::cppu::UnoType< ::test::testtools::bridgetest::TestSimple >::get();
      66             : }
      67             : 
      68             : #endif // INCLUDED_TEST_TESTTOOLS_BRIDGETEST_TESTSIMPLE_HPP

Generated by: LCOV version 1.10