Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : :
30 : : #include "sal/config.h"
31 : :
32 : : #include "com/sun/star/lang/XInitialization.hpp"
33 : : #include "com/sun/star/lang/XComponent.hpp"
34 : : #include "com/sun/star/uno/Any.hxx"
35 : : #include "com/sun/star/uno/Exception.hpp"
36 : : #include "com/sun/star/uno/Reference.hxx"
37 : : #include "com/sun/star/uno/Sequence.hxx"
38 : : #include "com/sun/star/uno/Type.hxx"
39 : : #include "com/sun/star/uno/XComponentContext.hpp"
40 : : #include "com/sun/star/uno/XInterface.hpp"
41 : : #include "cppu/unotype.hxx"
42 : : #include "cppuhelper/factory.hxx"
43 : : #include "cppuhelper/implbase1.hxx"
44 : : #include "cppuhelper/implbase2.hxx"
45 : : #include "cppuhelper/implementationentry.hxx"
46 : : #include "cppuhelper/weak.hxx"
47 : : #include "rtl/string.h"
48 : : #include "rtl/ustring.h"
49 : : #include "rtl/ustring.hxx"
50 : : #include "sal/types.h"
51 : : #include "test/testtools/bridgetest/BadConstructorArguments.hpp"
52 : : #include "test/testtools/bridgetest/TestEnum.hpp"
53 : : #include "test/testtools/bridgetest/TestStruct.hpp"
54 : : #include "test/testtools/bridgetest/TestPolyStruct.hpp"
55 : : #include "test/testtools/bridgetest/TestPolyStruct2.hpp"
56 : : #include "test/testtools/bridgetest/XMultiBase1.hpp"
57 : : #include "uno/lbnames.h"
58 : :
59 : : namespace {
60 : :
61 : : namespace css = ::com::sun::star;
62 : : namespace ttb = ::test::testtools::bridgetest;
63 : : class Impl: public ::cppu::WeakImplHelper1< css::lang::XInitialization > {
64 : : public:
65 : 6 : Impl() {}
66 : :
67 : : private:
68 : : Impl(Impl &); // not defined
69 : : void operator =(Impl &); // not defined
70 : :
71 [ - + ]: 12 : virtual ~Impl() {}
72 : :
73 : : virtual void SAL_CALL initialize(
74 : : css::uno::Sequence< css::uno::Any > const & arguments)
75 : : throw (css::uno::Exception);
76 : : };
77 : :
78 : 6 : void Impl::initialize(css::uno::Sequence< css::uno::Any > const & arguments)
79 : : throw (css::uno::Exception)
80 : : {
81 : 6 : ::sal_Bool arg0 = sal_Bool();
82 : 6 : ::sal_Int8 arg1 = sal_Int8();
83 : 6 : ::sal_Int16 arg2 = sal_Int16();
84 : 6 : ::sal_uInt16 arg3 = sal_uInt16();
85 : 6 : ::sal_Int32 arg4 = sal_Int32();
86 : 6 : ::sal_uInt32 arg5 = sal_uInt32();
87 : 6 : ::sal_Int64 arg6 = sal_Int64();
88 : 6 : ::sal_uInt64 arg7 = sal_uInt64();
89 : 6 : float arg8 = float();
90 : 6 : double arg9 = double();
91 : 6 : ::rtl::OUString arg11;
92 : 6 : css::uno::Type arg12;
93 : 6 : ::sal_Bool arg13 = sal_Bool();
94 [ + - ]: 6 : css::uno::Sequence< ::sal_Bool > arg14;
95 [ + - ]: 6 : css::uno::Sequence< ::sal_Int8 > arg15;
96 [ + - ]: 6 : css::uno::Sequence< ::sal_Int16 > arg16;
97 [ + - ]: 6 : css::uno::Sequence< ::sal_uInt16 > arg17;
98 [ + - ]: 6 : css::uno::Sequence< ::sal_Int32 > arg18;
99 [ + - ]: 6 : css::uno::Sequence< ::sal_uInt32 > arg19;
100 [ + - ]: 6 : css::uno::Sequence< ::sal_Int64 > arg20;
101 [ + - ]: 6 : css::uno::Sequence< ::sal_uInt64 > arg21;
102 [ + - ]: 6 : css::uno::Sequence< float > arg22;
103 [ + - ]: 6 : css::uno::Sequence< double > arg23;
104 [ + - ]: 6 : css::uno::Sequence< ::rtl::OUString > arg25;
105 [ + - ]: 6 : css::uno::Sequence< css::uno::Type > arg26;
106 [ + - ]: 6 : css::uno::Sequence< css::uno::Any > arg27;
107 : 6 : ::sal_Bool arg27b = sal_Bool();
108 [ + - ]: 6 : css::uno::Sequence< css::uno::Sequence< ::sal_Bool > > arg28;
109 [ + - ]: 6 : css::uno::Sequence< css::uno::Sequence< css::uno::Any > > arg29;
110 : 6 : ::sal_Bool arg29b = sal_Bool();
111 [ + - ]: 6 : css::uno::Sequence< ::test::testtools::bridgetest::TestEnum > arg30;
112 [ + - ]: 6 : css::uno::Sequence< ::test::testtools::bridgetest::TestStruct > arg31;
113 : : css::uno::Sequence<
114 [ + - ]: 6 : ::test::testtools::bridgetest::TestPolyStruct< sal_Bool > > arg32;
115 : : css::uno::Sequence<
116 [ + - ]: 6 : ::test::testtools::bridgetest::TestPolyStruct< css::uno::Any > > arg33;
117 : 6 : ::sal_Bool arg33b = sal_Bool();
118 [ + - ]: 6 : css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > arg34;
119 : : ::test::testtools::bridgetest::TestEnum arg35;
120 : 6 : ::test::testtools::bridgetest::TestStruct arg36;
121 : 6 : ::test::testtools::bridgetest::TestPolyStruct< ::sal_Bool > arg37;
122 : 6 : ::test::testtools::bridgetest::TestPolyStruct< css::uno::Any > arg38;
123 : 6 : ::sal_Bool arg38b = sal_Bool();
124 : 6 : css::uno::Reference< css::uno::XInterface > arg39;
125 [ - + ]: 12 : if (!(arguments.getLength() == 40
126 : 6 : && (arguments[0] >>= arg0) && arg0
127 : 6 : && (arguments[1] >>= arg1) && arg1 == SAL_MIN_INT8
128 : 6 : && (arguments[2] >>= arg2) && arg2 == SAL_MIN_INT16
129 : 6 : && (arguments[3].getValueType()
130 : 12 : == ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get())
131 : 6 : && (arguments[3] >>= arg3) && arg3 == SAL_MAX_UINT16
132 : 6 : && (arguments[4] >>= arg4) && arg4 == SAL_MIN_INT32
133 : 6 : && (arguments[5] >>= arg5) && arg5 == SAL_MAX_UINT32
134 : 6 : && (arguments[6] >>= arg6) && arg6 == SAL_MIN_INT64
135 : 6 : && (arguments[7] >>= arg7) && arg7 == SAL_MAX_UINT64
136 : 6 : && (arguments[8] >>= arg8) && arg8 == 0.123f
137 : 6 : && (arguments[9] >>= arg9) && arg9 == 0.456
138 : 6 : && (arguments[10].getValueType()
139 : 12 : == ::cppu::UnoType< ::cppu::UnoCharType >::get())
140 : 6 : && (*static_cast< ::sal_Unicode const * >(arguments[10].getValue())
141 : : == 'X')
142 : 6 : && (arguments[11] >>= arg11)
143 : 6 : && arg11 == "test"
144 : 6 : && (arguments[12] >>= arg12)
145 : 6 : && arg12 == ::cppu::UnoType< css::uno::Any >::get()
146 : 6 : && (arguments[13] >>= arg13) && arg13
147 [ + - ][ + - ]: 18 : && (arguments[14] >>= arg14) && arg14.getLength() == 1 && arg14[0]
148 [ + - ]: 12 : && (arguments[15] >>= arg15) && arg15.getLength() == 1
149 [ + - ]: 6 : && arg15[0] == SAL_MIN_INT8
150 [ + - ]: 12 : && (arguments[16] >>= arg16) && arg16.getLength() == 1
151 [ + - ]: 6 : && arg16[0] == SAL_MIN_INT16
152 : 6 : && (arguments[17].getValueType()
153 : : == ::cppu::UnoType<
154 : : ::cppu::UnoSequenceType <
155 [ + - ]: 12 : ::cppu::UnoUnsignedShortType > >::get())
156 [ + - ]: 12 : && (arguments[17] >>= arg17) && arg17.getLength() == 1
157 [ + - ]: 6 : && arg17[0] == SAL_MAX_UINT16
158 [ + - ]: 12 : && (arguments[18] >>= arg18) && arg18.getLength() == 1
159 [ + - ]: 6 : && arg18[0] == SAL_MIN_INT32
160 [ + - ]: 12 : && (arguments[19] >>= arg19) && arg19.getLength() == 1
161 [ + - ]: 6 : && arg19[0] == SAL_MAX_UINT32
162 [ + - ]: 12 : && (arguments[20] >>= arg20) && arg20.getLength() == 1
163 [ + - ]: 6 : && arg20[0] == SAL_MIN_INT64
164 [ + - ]: 12 : && (arguments[21] >>= arg21) && arg21.getLength() == 1
165 [ + - ]: 6 : && arg21[0] == SAL_MAX_UINT64
166 [ + - ]: 12 : && (arguments[22] >>= arg22) && arg22.getLength() == 1
167 [ + - ]: 6 : && arg22[0] == 0.123f
168 [ + - ]: 12 : && (arguments[23] >>= arg23) && arg23.getLength() == 1
169 [ + - ]: 6 : && arg23[0] == 0.456
170 : 6 : && (arguments[24].getValueType()
171 : : == ::cppu::UnoType<
172 [ + - ]: 12 : ::cppu::UnoSequenceType< ::cppu::UnoCharType > >::get())
173 : : && (static_cast< css::uno::Sequence< ::sal_Unicode > const * >(
174 : 6 : arguments[24].getValue())->getLength()
175 : : == 1)
176 : : && ((*static_cast< css::uno::Sequence< ::sal_Unicode > const * >(
177 : 6 : arguments[24].getValue()))[0]
178 : : == 'X')
179 [ + - ]: 12 : && (arguments[25] >>= arg25) && arg25.getLength() == 1
180 [ + - ]: 6 : && arg25[0] == "test"
181 [ + - ]: 12 : && (arguments[26] >>= arg26) && arg26.getLength() == 1
182 [ + - ]: 6 : && arg26[0] == ::cppu::UnoType< css::uno::Any >::get()
183 [ + - ]: 12 : && (arguments[27] >>= arg27) && arg27.getLength() == 1
184 [ + - ]: 6 : && (arg27[0] >>= arg27b) && arg27b
185 [ + - ]: 12 : && (arguments[28] >>= arg28) && arg28.getLength() == 1
186 [ + - ][ + - ]: 12 : && arg28[0].getLength() == 1 && arg28[0][0]
[ + - ]
187 [ + - ]: 12 : && (arguments[29] >>= arg29) && arg29.getLength() == 1
188 [ + - ][ + - ]: 12 : && arg29[0].getLength() == 1 && (arg29[0][0] >>= arg29b) && arg29b
[ + - ]
189 [ + - ]: 12 : && (arguments[30] >>= arg30) && arg30.getLength() == 1
190 [ + - ]: 6 : && arg30[0] == ::test::testtools::bridgetest::TestEnum_TWO
191 [ + - ]: 12 : && (arguments[31] >>= arg31) && arg31.getLength() == 1
192 [ + - ]: 6 : && arg31[0].member == 10
193 [ + - ]: 12 : && (arguments[32] >>= arg32) && arg32.getLength() == 1
194 [ + - ]: 6 : && arg32[0].member
195 [ + - ]: 12 : && (arguments[33] >>= arg33) && arg33.getLength() == 1
196 [ + - ]: 6 : && (arg33[0].member >>= arg33b) && arg33b
197 [ + - ]: 12 : && (arguments[34] >>= arg34) && arg34.getLength() == 1
198 [ + - ]: 6 : && !arg34[0].is()
199 [ + - ]: 6 : && (arguments[35] >>= arg35)
200 : : && arg35 == ::test::testtools::bridgetest::TestEnum_TWO
201 [ + - ]: 6 : && (arguments[36] >>= arg36) && arg36.member == 10
202 [ + - ]: 6 : && (arguments[37] >>= arg37) && arg37.member
203 [ + - ]: 12 : && (arguments[38] >>= arg38) && (arg38.member >>= arg38b) && arg38b
204 [ + - + - ]: 540 : && (arguments[39] >>= arg39) && !arg39.is()))
[ + - + - ]
[ + - + -
+ - ]
[ + - + - ]
[ + - + - ]
[ + - + - ]
[ + - + - ]
[ + - + - ]
[ + - + - ]
[ + - + -
+ - + - +
- + - + -
+ - ][ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - + -
+ - + - ]
[ + - + -
+ - ][ + -
+ - + - ]
[ + - + -
+ - ][ + - ]
[ + - + -
+ - ][ + - ]
[ + - + -
+ - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ][ + -
+ - + - ]
[ + - ][ + -
+ - + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - + - ]
[ + - ][ + - ]
[ + - ][ - + ]
[ + - + - ]
205 : : {
206 [ # # ]: 0 : throw ::test::testtools::bridgetest::BadConstructorArguments();
207 [ + - ][ + - ]: 6 : }
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
208 : 6 : }
209 : :
210 : :
211 : : class Impl2: public ::cppu::WeakImplHelper2<
212 : : css::lang::XInitialization, ttb::XMultiBase1 >
213 : : {
214 : : public:
215 : 3 : Impl2(): m_attr1(0.0) {}
216 : :
217 : : private:
218 : : Impl2(Impl &); // not defined
219 : : void operator =(Impl &); // not defined
220 : :
221 [ - + ]: 6 : virtual ~Impl2() {}
222 : :
223 : : virtual void SAL_CALL initialize(
224 : : css::uno::Sequence< css::uno::Any > const & arguments)
225 : : throw (css::uno::Exception);
226 : :
227 : : //XMultiBase1
228 : : virtual double SAL_CALL getatt1()
229 : : throw (::com::sun::star::uno::RuntimeException);
230 : : virtual void SAL_CALL setatt1( double _att1 )
231 : : throw (::com::sun::star::uno::RuntimeException);
232 : : virtual ::sal_Int32 SAL_CALL fn11( ::sal_Int32 arg )
233 : : throw (::com::sun::star::uno::RuntimeException);
234 : : virtual ::rtl::OUString SAL_CALL fn12( const ::rtl::OUString& arg )
235 : : throw (::com::sun::star::uno::RuntimeException);
236 : :
237 : :
238 : : double m_attr1;
239 : : };
240 : :
241 : 3 : void Impl2::initialize(css::uno::Sequence< css::uno::Any > const & arguments)
242 : : throw (css::uno::Exception)
243 : : {
244 : 3 : ttb::TestPolyStruct< css::uno::Type > arg0;
245 : 3 : ttb::TestPolyStruct< css::uno::Any > arg1;
246 [ + - ]: 3 : css::uno::Any arg1b(sal_True);
247 : 3 : ttb::TestPolyStruct< ::sal_Bool > arg2;
248 : 3 : ttb::TestPolyStruct< ::sal_Int8 > arg3;
249 : 3 : ttb::TestPolyStruct< ::sal_Int16 > arg4;
250 : 3 : ttb::TestPolyStruct< ::sal_Int32 > arg5;
251 : 3 : ttb::TestPolyStruct< ::sal_Int64 > arg6;
252 : 3 : ttb::TestPolyStruct< ::sal_Unicode > arg7;
253 : 3 : ttb::TestPolyStruct< ::rtl::OUString > arg8;
254 : 3 : ttb::TestPolyStruct< float > arg9;
255 : 3 : ttb::TestPolyStruct< double > arg10;
256 : 3 : ttb::TestPolyStruct<css::uno::Reference<css::uno::XInterface> > arg11;
257 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Reference< css::lang::XComponent> > arg12;
258 : 3 : ttb::TestPolyStruct<ttb::TestEnum> arg13;
259 : : ttb::TestPolyStruct<
260 [ + - ]: 3 : ttb::TestPolyStruct2<sal_Unicode, css::uno::Any> > arg14;
261 : : ttb::TestPolyStruct< ttb::TestPolyStruct2 <
262 : : ttb::TestPolyStruct2< sal_Unicode, css::uno::Any >,
263 [ + - ]: 3 : ::rtl::OUString > > arg15;
264 : : ttb::TestPolyStruct2< ::rtl::OUString,ttb::TestPolyStruct2 <
265 [ + - ]: 3 : ::sal_Unicode, ttb::TestPolyStruct < css::uno::Any > > > arg16;
266 : : ttb::TestPolyStruct2< ttb::TestPolyStruct2<sal_Unicode, css::uno::Any >,
267 [ + - ]: 3 : ttb::TestPolyStruct<sal_Unicode> > arg17;
268 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence< css::uno::Type > > arg18;
269 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence<css::uno::Any> > arg19;
270 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence< ::sal_Bool > > arg20;
271 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence< ::sal_Int8 > > arg21;
272 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence< ::sal_Int16 > > arg22;
273 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence< ::sal_Int32 > > arg23;
274 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence< ::sal_Int64 > > arg24;
275 : : // ttb::TestPolyStruct<css::uno::Sequence<::sal_Unicode> > arg25;
276 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence< ::rtl::OUString > > arg26;
277 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence<float> > arg27;
278 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence<double> > arg28;
279 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence<css::uno::Reference<css::uno::XInterface> > > arg29;
280 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence<css::uno::Reference<css::lang::XComponent> > > arg30;
281 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence<ttb::TestEnum> > arg31;
282 : : ttb::TestPolyStruct<css::uno::Sequence<ttb::TestPolyStruct2<
283 [ + - ]: 3 : ::sal_Unicode, css::uno::Sequence<css::uno::Any> > > > arg32;
284 : 3 : bool arg32a = false;
285 : : ttb::TestPolyStruct<css::uno::Sequence<ttb::TestPolyStruct2<
286 [ + - ]: 3 : ttb::TestPolyStruct< ::sal_Unicode>, css::uno::Sequence<css::uno::Any> > > > arg33;
287 [ + - ]: 3 : ttb::TestPolyStruct<css::uno::Sequence<css::uno::Sequence< ::sal_Int32> > > arg34;
288 [ + - ]: 3 : css::uno::Sequence<ttb::TestPolyStruct< ::sal_Int32> > arg35;
289 [ + - ]: 3 : css::uno::Sequence<ttb::TestPolyStruct<ttb::TestPolyStruct2< ::sal_Unicode, css::uno::Any> > > arg36;
290 : : css::uno::Sequence<ttb::TestPolyStruct<ttb::TestPolyStruct2<
291 [ + - ]: 3 : ttb::TestPolyStruct2< ::sal_Unicode,css::uno::Any >, ::rtl::OUString> > > arg37;
292 : : css::uno::Sequence<ttb::TestPolyStruct2< ::rtl::OUString, ttb::TestPolyStruct2<
293 [ + - ]: 3 : ::sal_Unicode, ttb::TestPolyStruct<css::uno::Any> > > > arg38;
294 : : css::uno::Sequence<ttb::TestPolyStruct2<ttb::TestPolyStruct2<
295 [ + - ]: 3 : ::sal_Unicode, css::uno::Any>, ttb::TestPolyStruct< ::sal_Unicode> > > arg39;
296 [ + - ]: 3 : css::uno::Sequence<css::uno::Sequence<ttb::TestPolyStruct< ::sal_Unicode> > > arg40;
297 [ + - ]: 3 : css::uno::Sequence<css::uno::Sequence<ttb::TestPolyStruct<ttb::TestPolyStruct2< ::sal_Unicode, css::uno::Any> > > >arg41;
298 : : css::uno::Sequence<css::uno::Sequence<ttb::TestPolyStruct<
299 [ + - ]: 3 : ttb::TestPolyStruct2<ttb::TestPolyStruct2<sal_Unicode, css::uno::Any>, ::rtl::OUString> > > > arg42;
300 : : css::uno::Sequence<css::uno::Sequence<ttb::TestPolyStruct2<
301 [ + - ]: 3 : ::rtl::OUString, ttb::TestPolyStruct2< ::sal_Unicode, ttb::TestPolyStruct<css::uno::Any> > > > > arg43;
302 : : css::uno::Sequence<css::uno::Sequence<ttb::TestPolyStruct2<
303 : : ttb::TestPolyStruct2< ::sal_Unicode, css::uno::Any>, ttb::TestPolyStruct<
304 [ + - ]: 3 : ::sal_Unicode> > > > arg44;
305 : :
306 [ - + ]: 6 : if (!(arguments.getLength() == 45
307 [ + - ]: 6 : && (arguments[0] >>= arg0) && arg0.member == cppu::UnoType<sal_Int32>::get()
308 [ + - ]: 6 : && (arguments[1] >>= arg1) && arg1.member == arg1b
309 [ + - ]: 3 : && (arguments[2] >>= arg2) && arg2.member == sal_True
310 [ + - ]: 3 : && (arguments[3] >>= arg3) && arg3.member == SAL_MIN_INT8
311 [ + - ]: 3 : && (arguments[4] >>= arg4) && arg4.member == SAL_MIN_INT16
312 [ + - ]: 3 : && (arguments[5] >>= arg5) && arg5.member == SAL_MIN_INT32
313 [ + - ]: 3 : && (arguments[6] >>= arg6) && arg6.member == SAL_MIN_INT64
314 [ + - ]: 3 : && (arguments[7] >>= arg7) && arg7.member == 'X'
315 [ + - ]: 6 : && (arguments[8] >>= arg8) && arg8.member == "test"
316 [ + - ]: 3 : && (arguments[9] >>= arg9) && arg9.member == 0.123f
317 [ + - ]: 3 : && (arguments[10] >>= arg10) && arg10.member == 0.456
318 [ + - ]: 3 : && (arguments[11] >>= arg11)
319 [ + - ]: 3 : && (arguments[12] >>= arg12)
320 [ + - ]: 3 : && (arguments[13] >>= arg13) && arg13.member == ttb::TestEnum_TWO
321 [ + - ]: 6 : && (arguments[14] >>= arg14) && arg14.member.member1 == 'X' && arg14.member.member2 == arg1b
322 [ + - ]: 3 : && (arguments[15] >>= arg15) && arg15.member.member1.member1 == 'X'
323 : 3 : && arg15.member.member1.member2 == arg1b
324 : 3 : && arg15.member.member2 == "test"
325 [ + - ]: 6 : && (arguments[16] >>= arg16) && arg16.member1 == "test"
326 : : && arg16.member2.member1 == 'X'
327 : 3 : && arg16.member2.member2.member == arg1b
328 [ + - ]: 3 : && (arguments[17] >>= arg17) && arg17.member1.member1 == 'X'
329 : 3 : && arg17.member1.member2 == arg1b
330 : : && arg17.member2.member == 'X'
331 [ + - ]: 6 : && (arguments[18] >>= arg18) && arg18.member.getLength() == 1
332 [ + - ]: 3 : && arg18.member[0] == ::cppu::UnoType<sal_Int32>::get()
333 [ + - ]: 6 : && (arguments[19] >>= arg19) && arg19.member.getLength() == 1
334 [ + - ]: 3 : && arg19.member[0] == arg1b
335 [ + - ]: 6 : && (arguments[20] >>= arg20) && arg20.member.getLength() == 1
336 [ + - ]: 3 : && arg20.member[0] == sal_True
337 [ + - ]: 6 : && (arguments[21] >>= arg21) && arg21.member.getLength() == 1
338 [ + - ]: 3 : && arg21.member[0] == SAL_MIN_INT8
339 [ + - ]: 6 : && (arguments[22] >>= arg22) && arg22.member.getLength() == 1
340 [ + - ]: 3 : && arg22.member[0] == SAL_MIN_INT16
341 [ + - ]: 6 : && (arguments[23] >>= arg23) && arg23.member.getLength() == 1
342 [ + - ]: 3 : && arg23.member[0] == SAL_MIN_INT32
343 [ + - ]: 6 : && (arguments[24] >>= arg24) && arg24.member.getLength() == 1
344 [ + - ]: 3 : && arg24.member[0] == SAL_MIN_INT64
345 : 3 : && (arguments[25].getValueType()
346 : : == ::cppu::UnoType< ttb::TestPolyStruct< ::cppu::UnoSequenceType<
347 [ + - ]: 6 : ::cppu::UnoCharType> > >::get())
348 : : && (static_cast< ttb::TestPolyStruct<css::uno::Sequence<
349 : 3 : ::sal_Unicode> > const *>(arguments[25].getValue())->member[0]) == 'X'
350 [ + - ]: 6 : && (arguments[26] >>= arg26) && arg26.member.getLength() == 1
351 [ + - ]: 3 : && arg26.member[0] == "test"
352 [ + - ]: 6 : && (arguments[27] >>= arg27) && arg27.member.getLength() == 1
353 [ + - ]: 3 : && arg27.member[0] == 0.123f
354 [ + - ]: 6 : && (arguments[28] >>= arg28) && arg28.member.getLength() == 1
355 [ + - ]: 3 : && arg28.member[0] == 0.456
356 [ + - ]: 6 : && (arguments[29] >>= arg29) && arg29.member.getLength() == 1
357 [ + - ][ + - ]: 3 : && arg29.member[0] != NULL
358 [ + - ]: 6 : && (arguments[30] >>= arg30) && arg30.member.getLength() == 1
359 [ + - ][ + - ]: 3 : && arg30.member[0] != NULL
360 [ + - ]: 6 : && (arguments[31] >>= arg31) && arg31.member.getLength() == 1
361 [ + - ]: 3 : && arg31.member[0] == ttb::TestEnum_TWO
362 [ + - ]: 6 : && (arguments[32] >>= arg32) && arg32.member.getLength() == 1
363 [ + - ]: 3 : && arg32.member[0].member1 == 'X'
364 [ + - ]: 3 : && arg32.member[0].member2.getLength() == 1
365 [ + - ][ + - ]: 3 : && (arg32.member[0].member2[0] >>= arg32a) && arg32a == true
366 [ + - ]: 6 : && (arguments[33] >>= arg33) && arg33.member.getLength() == 1
367 [ + - ]: 3 : && arg33.member[0].member1.member == 'X'
368 [ + - ]: 3 : && arg33.member[0].member2.getLength() == 1
369 [ + - ][ + - ]: 3 : && arg33.member[0].member2[0] == arg1b
370 [ + - ]: 6 : && (arguments[34] >>= arg34) && arg34.member.getLength() == 1
371 [ + - ][ + - ]: 6 : && arg34.member[0].getLength() == 1 && arg34.member[0][0] == SAL_MIN_INT32
[ + - ]
372 [ + - ]: 6 : && (arguments[35] >>= arg35) && arg35.getLength() == 1
373 [ + - ]: 3 : && arg35[0].member == SAL_MIN_INT32
374 [ + - ]: 6 : && (arguments[36] >>= arg36) && arg36.getLength() == 1
375 [ + - ]: 3 : && arg36[0].member.member1 == 'X'
376 [ + - ]: 3 : && arg36[0].member.member2 == arg1b
377 [ + - ]: 6 : && (arguments[37] >>= arg37) && arg37.getLength() == 1
378 [ + - ]: 3 : && arg37[0].member.member1.member1 == 'X'
379 [ + - ]: 3 : && arg37[0].member.member1.member2 == arg1b
380 [ + - ]: 3 : && arg37[0].member.member2 == "test"
381 [ + - ]: 6 : && (arguments[38] >>= arg38) && arg38.getLength() == 1
382 [ + - ]: 3 : && arg38[0].member1 == "test"
383 [ + - ]: 3 : && arg38[0].member2.member1 == 'X'
384 [ + - ]: 3 : && arg38[0].member2.member2.member == arg1b
385 [ + - ]: 6 : && (arguments[39] >>= arg39) && arg39.getLength() == 1
386 [ + - ]: 3 : && arg39[0].member1.member1 == 'X'
387 [ + - ]: 3 : && arg39[0].member1.member2 == arg1b
388 [ + - ]: 3 : && arg39[0].member2.member == 'X'
389 [ + - ]: 6 : && (arguments[40] >>= arg40) && arg40.getLength() == 1
390 [ + - ]: 3 : && arg40[0].getLength() == 1
391 [ + - ][ + - ]: 3 : && arg40[0][0].member == 'X'
392 [ + - ]: 6 : && (arguments[41] >>= arg41) && arg41.getLength() == 1
393 [ + - ]: 3 : && arg41[0].getLength() == 1
394 [ + - ][ + - ]: 3 : && arg41[0][0].member.member1 == 'X'
395 [ + - ][ + - ]: 3 : && arg41[0][0].member.member2 == arg1b
396 [ + - ]: 6 : && (arguments[42] >>= arg42) && arg42.getLength() == 1
397 [ + - ]: 3 : && arg42[0].getLength() == 1
398 [ + - ][ + - ]: 3 : && arg42[0][0].member.member1.member1 == 'X'
399 [ + - ][ + - ]: 3 : && arg42[0][0].member.member1.member2 == arg1b
400 [ + - ][ + - ]: 3 : && arg42[0][0].member.member2 == "test"
401 [ + - ]: 6 : && (arguments[43] >>= arg43) && arg43.getLength() == 1
402 [ + - ]: 3 : && arg43[0].getLength() == 1
403 [ + - ][ + - ]: 3 : && arg43[0][0].member1 == "test"
404 [ + - ][ + - ]: 3 : && arg43[0][0].member2.member1 == 'X'
405 [ + - ][ + - ]: 3 : && arg43[0][0].member2.member2.member == arg1b
406 [ + - ]: 6 : && (arguments[44] >>= arg44) && arg44.getLength() == 1
407 [ + - ]: 3 : && arg44[0].getLength() == 1
408 [ + - ][ + - ]: 3 : && arg44[0][0].member1.member1 == 'X'
409 [ + - ][ + - ]: 3 : && arg44[0][0].member1.member2 == arg1b
410 [ + - ][ + - ]: 3 : && arg44[0][0].member2.member == 'X'
411 [ + - + - ]: 396 : ))
[ + - + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
[ + - + - ]
[ + - ][ + -
+ - + - ]
[ + - + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ][ + -
+ - + - ]
[ + - + -
+ - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - + -
+ - ][ + -
+ - + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - + -
+ - ][ + - ]
[ + - + - ]
[ + - + -
+ - ][ + -
+ - + - ]
[ + - ]
[ + - + - ]
[ + - ]
[ + - + - ]
[ + - + - ]
[ + - + - ]
[ + - + -
+ - ][ + -
+ - + - ]
[ + - + - ]
[ + - + - ]
[ + - + - ]
[ + - ][ + -
+ - + - ]
[ + - ][ + -
+ - + - ]
[ + - + - ]
[ + - + -
+ - ][ + -
+ - + - ]
[ + - + -
+ - + - ]
[ + - + - ]
[ + - + -
+ - ]
[ + - + - ]
[ - + ][ + - ]
412 : : {
413 [ # # ]: 0 : throw ::test::testtools::bridgetest::BadConstructorArguments();
414 : : }
415 : :
416 : : //check if interfaces work
417 [ + - ]: 3 : arg11.member->acquire();
418 [ + - ]: 3 : arg11.member->release();
419 [ + - ]: 3 : arg12.member->acquire();
420 [ + - ]: 3 : arg12.member->release();
421 [ + - ][ + - ]: 3 : arg29.member[0]->acquire();
422 [ + - ][ + - ]: 3 : arg29.member[0]->release();
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
423 : :
424 : 3 : }
425 : :
426 : : //XMultiBase1
427 : 0 : double Impl2::getatt1()
428 : : throw (::com::sun::star::uno::RuntimeException)
429 : : {
430 : 0 : return m_attr1;
431 : : }
432 : :
433 : 0 : void Impl2::setatt1( double _att1 )throw (::com::sun::star::uno::RuntimeException)
434 : : {
435 : 0 : m_attr1 = _att1;
436 : 0 : }
437 : :
438 : 0 : ::sal_Int32 Impl2::fn11( ::sal_Int32 arg )
439 : : throw (::com::sun::star::uno::RuntimeException)
440 : : {
441 : 0 : return 11 * arg;
442 : : }
443 : :
444 : 0 : ::rtl::OUString Impl2::fn12( const ::rtl::OUString& arg )
445 : : throw (::com::sun::star::uno::RuntimeException)
446 : : {
447 : 0 : return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("12")) + arg;
448 : : }
449 : :
450 : 6 : css::uno::Reference< css::uno::XInterface > SAL_CALL create(
451 : : SAL_UNUSED_PARAMETER css::uno::Reference< css::uno::XComponentContext >
452 : : const &)
453 : : SAL_THROW((css::uno::Exception))
454 : : {
455 [ + - ]: 6 : return static_cast< ::cppu::OWeakObject * >(new Impl);
456 : : }
457 : :
458 : 6 : ::rtl::OUString SAL_CALL getImplementationName() {
459 : : return ::rtl::OUString(
460 : : RTL_CONSTASCII_USTRINGPARAM(
461 : 6 : "comp.test.testtools.bridgetest.Constructors"));
462 : : }
463 : :
464 : 3 : css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() {
465 : 3 : css::uno::Sequence< ::rtl::OUString > s(1);
466 [ + - ]: 3 : s[0] = ::rtl::OUString(
467 [ + - ]: 6 : RTL_CONSTASCII_USTRINGPARAM("test.testtools.bridgetest.Constructors"));
468 : 3 : return s;
469 : : }
470 : :
471 : 3 : css::uno::Reference< css::uno::XInterface > SAL_CALL create2(
472 : : SAL_UNUSED_PARAMETER css::uno::Reference< css::uno::XComponentContext >
473 : : const &)
474 : : SAL_THROW((css::uno::Exception))
475 : : {
476 [ + - ]: 3 : return static_cast< ::cppu::OWeakObject * >(new Impl2);
477 : : }
478 : :
479 : 6 : ::rtl::OUString SAL_CALL getImplementationName2() {
480 : : return ::rtl::OUString(
481 : : RTL_CONSTASCII_USTRINGPARAM(
482 : 6 : "comp.test.testtools.bridgetest.Constructors2"));
483 : : }
484 : :
485 : 3 : css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames2() {
486 : 3 : css::uno::Sequence< ::rtl::OUString > s(1);
487 [ + - ]: 3 : s[0] = ::rtl::OUString(
488 [ + - ]: 6 : RTL_CONSTASCII_USTRINGPARAM("test.testtools.bridgetest.Constructors2"));
489 : 3 : return s;
490 : : }
491 : :
492 : : ::cppu::ImplementationEntry entries[] = {
493 : : { &create, &getImplementationName, &getSupportedServiceNames,
494 : : &::cppu::createSingleComponentFactory, 0, 0 },
495 : : { &create2, &getImplementationName2, &getSupportedServiceNames2,
496 : : &::cppu::createSingleComponentFactory, 0, 0 },
497 : : { 0, 0, 0, 0, 0, 0 } };
498 : : }
499 : :
500 : 6 : extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
501 : : char const * implName, void * serviceManager, void * registryKey)
502 : : {
503 : : return ::cppu::component_getFactoryHelper(
504 : 6 : implName, serviceManager, registryKey, entries);
505 : : }
506 : :
507 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|