Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : : #include <sal/types.h>
21 : :
22 : : #include <cppunit/TestSuite.h>
23 : : #include <cppunit/TestFixture.h>
24 : : #include <cppunit/TestCase.h>
25 : : #include <cppunit/plugin/TestPlugIn.h>
26 : : #include <cppunit/extensions/HelperMacros.h>
27 : :
28 : : #include <typeinfo>
29 : :
30 : : #include "com/sun/star/beans/Optional.hpp"
31 : : #include "com/sun/star/beans/PropertyChangeEvent.hpp"
32 : : #include "com/sun/star/lang/EventObject.hpp"
33 : : #include "com/sun/star/uno/Exception.hpp"
34 : : #include "com/sun/star/uno/Reference.hxx"
35 : : #include "com/sun/star/uno/RuntimeException.hpp"
36 : : #include "com/sun/star/uno/Sequence.hxx"
37 : : #include "com/sun/star/uno/Type.hxx"
38 : : #include "com/sun/star/uno/TypeClass.hpp"
39 : : #include "com/sun/star/uno/XComponentContext.hpp"
40 : : #include "com/sun/star/uno/XInterface.hpp"
41 : : #include "cppu/unotype.hxx"
42 : : #include "rtl/oustringostreaminserter.hxx"
43 : : #include "rtl/ustring.h"
44 : : #include "rtl/ustring.hxx"
45 : : #include "sal/types.h"
46 : :
47 : : namespace com { namespace sun { namespace star { namespace uno {
48 : : class Any;
49 : : } } } }
50 : :
51 : : namespace {
52 : :
53 : : namespace css = com::sun::star;
54 : :
55 : : struct DerivedStruct1: css::lang::EventObject {};
56 : :
57 : : struct DerivedStruct2: css::beans::PropertyChangeEvent {};
58 : :
59 : : struct DerivedException1: css::uno::Exception {};
60 : :
61 : : struct DerivedException2: css::uno::RuntimeException {};
62 : :
63 : : struct DerivedInterface1: css::uno::XInterface {
64 : : private:
65 : : ~DerivedInterface1() {}
66 : : // avoid warnings about virtual members and non-virtual dtor
67 : : };
68 : :
69 : : struct DerivedInterface2: css::uno::XComponentContext {
70 : : private:
71 : : ~DerivedInterface2() {}
72 : : // avoid warnings about virtual members and non-virtual dtor
73 : : };
74 : :
75 [ - + ]: 45 : class Test: public ::CppUnit::TestFixture {
76 : : public:
77 : : void testUnoType();
78 : :
79 : : void testGetTypeFavourUnsigned();
80 : :
81 : : void testGetTypeFavourChar();
82 : :
83 [ + - ][ + - ]: 10 : CPPUNIT_TEST_SUITE(Test);
[ + - ][ + - ]
[ # # ]
84 [ + - ][ + - ]: 5 : CPPUNIT_TEST(testUnoType);
[ + - ][ + - ]
[ + - ][ + - ]
85 [ + - ][ + - ]: 5 : CPPUNIT_TEST(testGetTypeFavourUnsigned);
[ + - ][ + - ]
[ + - ][ + - ]
86 [ + - ][ + - ]: 5 : CPPUNIT_TEST(testGetTypeFavourChar);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
87 [ + - ][ + - ]: 10 : CPPUNIT_TEST_SUITE_END();
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
88 : : };
89 : :
90 : 5 : void Test::testUnoType() {
91 : 5 : css::uno::Type t;
92 : 5 : t = ::cppu::UnoType< ::cppu::UnoVoidType >::get();
93 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_VOID, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
94 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
95 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("void")), t.getTypeName());
96 : 5 : t = ::cppu::UnoType< bool >::get();
97 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_BOOLEAN, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
98 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
99 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("boolean")),
100 [ + - ]: 5 : t.getTypeName());
101 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(::cppu::UnoType< ::sal_Bool >::get() == t);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
102 : 5 : t = ::cppu::UnoType< ::sal_Int8 >::get();
103 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_BYTE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
104 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
105 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("byte")), t.getTypeName());
106 : 5 : t = ::cppu::UnoType< ::sal_Int16 >::get();
107 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_SHORT, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
108 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
109 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("short")), t.getTypeName());
110 : 5 : t = ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
111 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
112 [ + - ]: 5 : +css::uno::TypeClass_UNSIGNED_SHORT, +t.getTypeClass());
113 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
114 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("unsigned short")),
115 [ + - ]: 5 : t.getTypeName());
116 : 5 : t = ::cppu::UnoType< ::sal_Int32 >::get();
117 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_LONG, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
118 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
119 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("long")), t.getTypeName());
120 : 5 : t = ::cppu::UnoType< ::sal_uInt32 >::get();
121 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_UNSIGNED_LONG, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
122 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
123 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("unsigned long")),
124 [ + - ]: 5 : t.getTypeName());
125 : 5 : t = ::cppu::UnoType< ::sal_Int64 >::get();
126 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_HYPER, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
127 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
128 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("hyper")), t.getTypeName());
129 : 5 : t = ::cppu::UnoType< ::sal_uInt64 >::get();
130 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
131 [ + - ]: 5 : +css::uno::TypeClass_UNSIGNED_HYPER, +t.getTypeClass());
132 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
133 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("unsigned hyper")),
134 [ + - ]: 5 : t.getTypeName());
135 : 5 : t = ::cppu::UnoType< float >::get();
136 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_FLOAT, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
137 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
138 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("float")), t.getTypeName());
139 : 5 : t = ::cppu::UnoType< double >::get();
140 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_DOUBLE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
141 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
142 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("double")),
143 [ + - ]: 5 : t.getTypeName());
144 : 5 : t = ::cppu::UnoType< ::cppu::UnoCharType >::get();
145 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_CHAR, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
146 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
147 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("char")), t.getTypeName());
148 : 5 : t = ::cppu::UnoType< ::rtl::OUString >::get();
149 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_STRING, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
150 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
151 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("string")),
152 [ + - ]: 5 : t.getTypeName());
153 : 5 : t = ::cppu::UnoType< css::uno::Type >::get();
154 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_TYPE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
155 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
156 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("type")), t.getTypeName());
157 : 5 : t = ::cppu::UnoType< css::uno::Any >::get();
158 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_ANY, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
159 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
160 [ + - ]: 5 : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("any")), t.getTypeName());
161 [ + - ]: 5 : t = ::cppu::UnoType< ::cppu::UnoSequenceType< ::sal_Int8 > >::get();
162 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_SEQUENCE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
163 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
164 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("[]byte")),
165 [ + - ]: 5 : t.getTypeName());
166 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
167 [ + - ]: 5 : ::cppu::UnoType< css::uno::Sequence< ::sal_Int8 > >::get() == t);
168 : : t = ::cppu::UnoType<
169 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get();
170 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_SEQUENCE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
171 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
172 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("[]unsigned short")),
173 [ + - ]: 5 : t.getTypeName());
174 : : t = ::cppu::UnoType<
175 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoCharType > >::get();
176 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_SEQUENCE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
177 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
178 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("[]char")),
179 [ + - ]: 5 : t.getTypeName());
180 : : t = ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
181 [ + - ]: 5 : ::sal_Int8 > > >::get();
182 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_SEQUENCE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
183 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
184 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("[][]byte")),
185 [ + - ]: 5 : t.getTypeName());
186 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
187 : : ::cppu::UnoType<
188 [ + - ]: 5 : css::uno::Sequence< css::uno::Sequence< ::sal_Int8 > > >::get() == t);
189 : : t = ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
190 [ + - ]: 5 : ::cppu::UnoUnsignedShortType > > >::get();
191 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_SEQUENCE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
192 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
193 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("[][]unsigned short")),
194 [ + - ]: 5 : t.getTypeName());
195 : : t = ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
196 [ + - ]: 5 : ::cppu::UnoCharType > > >::get();
197 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_SEQUENCE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
198 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
199 : : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("[][]char")),
200 [ + - ]: 5 : t.getTypeName());
201 [ + - ]: 5 : t = ::cppu::UnoType< css::uno::TypeClass >::get();
202 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_ENUM, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
203 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
204 : : ::rtl::OUString(
205 : : RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.TypeClass")),
206 [ + - ]: 5 : t.getTypeName());
207 [ + - ]: 5 : t = ::cppu::UnoType< css::lang::EventObject >::get();
208 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_STRUCT, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
209 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
210 : : ::rtl::OUString(
211 : : RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.EventObject")),
212 [ + - ]: 5 : t.getTypeName());
213 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(::cppu::UnoType< DerivedStruct1 >::get() == t);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
214 [ + - ]: 5 : t = ::cppu::UnoType< css::beans::PropertyChangeEvent >::get();
215 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_STRUCT, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
216 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
217 : : ::rtl::OUString(
218 : : RTL_CONSTASCII_USTRINGPARAM(
219 : : "com.sun.star.beans.PropertyChangeEvent")),
220 [ + - ]: 5 : t.getTypeName());
221 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
222 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(::cppu::UnoType< DerivedStruct2 >::get() == t);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
223 : : #endif
224 [ + - ]: 5 : t = ::cppu::UnoType< css::beans::Optional< ::sal_Int8 > >::get();
225 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_STRUCT, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
226 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
227 : : ::rtl::OUString(
228 : : RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.Optional<byte>")),
229 [ + - ]: 5 : t.getTypeName());
230 : 5 : t = ::cppu::UnoType< css::uno::Exception >::get();
231 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_EXCEPTION, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
232 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
233 : : ::rtl::OUString(
234 : : RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.Exception")),
235 [ + - ]: 5 : t.getTypeName());
236 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(::cppu::UnoType< DerivedException1 >::get() == t);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
237 [ + - ]: 5 : t = ::cppu::UnoType< css::uno::RuntimeException >::get();
238 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_EXCEPTION, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
239 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
240 : : ::rtl::OUString(
241 : : RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException")),
242 [ + - ]: 5 : t.getTypeName());
243 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
244 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(::cppu::UnoType< DerivedException2 >::get() == t);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
245 : : #endif
246 : 5 : t = ::cppu::UnoType< css::uno::XInterface >::get();
247 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_INTERFACE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
248 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
249 : : ::rtl::OUString(
250 : : RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.XInterface")),
251 [ + - ]: 5 : t.getTypeName());
252 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
253 : : ::cppu::UnoType< css::uno::Reference< css::uno::XInterface > >::get() ==
254 [ + - ]: 5 : t);
255 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(::cppu::UnoType< DerivedInterface1 >::get() == t);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
256 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
257 : : ::cppu::UnoType< css::uno::Reference< DerivedInterface1 > >::get() ==
258 [ + - ]: 5 : t);
259 [ + - ]: 5 : t = ::cppu::UnoType< css::uno::XComponentContext >::get();
260 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT_EQUAL(+css::uno::TypeClass_INTERFACE, +t.getTypeClass());
[ + - ][ + - ]
[ + - ]
261 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT_EQUAL(
[ + - ][ + - ]
[ + - ]
262 : : ::rtl::OUString(
263 : : RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.XComponentContext")),
264 [ + - ]: 5 : t.getTypeName());
265 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
266 : : ::cppu::UnoType<
267 [ + - ]: 5 : css::uno::Reference< css::uno::XComponentContext > >::get() == t);
268 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
269 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(::cppu::UnoType< DerivedInterface2 >::get() == t);
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
270 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
271 : : ::cppu::UnoType< css::uno::Reference< DerivedInterface2 > >::get() ==
272 [ + - ]: 10 : t);
273 : : #endif
274 : 5 : }
275 : :
276 : 5 : void Test::testGetTypeFavourUnsigned() {
277 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(typeid(::sal_Unicode) == typeid(::sal_uInt16));
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
278 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
279 : : ::getCppuType(static_cast< ::sal_Unicode * >(0)) ==
280 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_uInt16 * >(0)));
281 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
282 : : ::cppu::getTypeFavourUnsigned(
283 : : static_cast< ::cppu::UnoVoidType * >(0)) ==
284 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoVoidType >::get());
285 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
286 : : ::cppu::getTypeFavourUnsigned(static_cast< bool * >(0)) ==
287 [ + - ]: 5 : ::cppu::UnoType< bool >::get());
288 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
289 : : ::cppu::getTypeFavourUnsigned(static_cast< bool * >(0)) ==
290 [ + - ]: 5 : ::getCppuType(static_cast< bool * >(0)));
291 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
292 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Bool * >(0)) ==
293 [ + - ]: 5 : ::cppu::UnoType< bool >::get());
294 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
295 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Bool * >(0)) ==
296 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_Bool * >(0)));
297 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
298 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int8 * >(0)) ==
299 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int8 >::get());
300 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
301 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int8 * >(0)) ==
302 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_Int8 * >(0)));
303 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
304 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int16 * >(0)) ==
305 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int16 >::get());
306 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
307 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int16 * >(0)) ==
308 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_Int16 * >(0)));
309 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
310 : : ::cppu::getTypeFavourUnsigned(
311 : : static_cast< ::cppu::UnoUnsignedShortType * >(0)) ==
312 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
313 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
314 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt16 * >(0)) ==
315 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
316 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
317 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt16 * >(0)) ==
318 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_uInt16 * >(0)));
319 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
320 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int32 * >(0)) ==
321 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int32 >::get());
322 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
323 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int32 * >(0)) ==
324 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_Int32 * >(0)));
325 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
326 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt32 * >(0)) ==
327 [ + - ]: 5 : ::cppu::UnoType< ::sal_uInt32 >::get());
328 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
329 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt32 * >(0)) ==
330 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_uInt32 * >(0)));
331 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
332 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int64 * >(0)) ==
333 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int64 >::get());
334 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
335 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int64 * >(0)) ==
336 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_Int64 * >(0)));
337 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
338 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt64 * >(0)) ==
339 [ + - ]: 5 : ::cppu::UnoType< ::sal_uInt64 >::get());
340 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
341 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt64 * >(0)) ==
342 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_uInt64 * >(0)));
343 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
344 : : ::cppu::getTypeFavourUnsigned(static_cast< float * >(0)) ==
345 [ + - ]: 5 : ::cppu::UnoType< float >::get());
346 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
347 : : ::cppu::getTypeFavourUnsigned(static_cast< float * >(0)) ==
348 [ + - ]: 5 : ::getCppuType(static_cast< float * >(0)));
349 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
350 : : ::cppu::getTypeFavourUnsigned(static_cast< double * >(0)) ==
351 [ + - ]: 5 : ::cppu::UnoType< double >::get());
352 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
353 : : ::cppu::getTypeFavourUnsigned(static_cast< double * >(0)) ==
354 [ + - ]: 5 : ::getCppuType(static_cast< double * >(0)));
355 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
356 : : ::cppu::getTypeFavourUnsigned(
357 : : static_cast< ::cppu::UnoCharType * >(0)) ==
358 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoCharType >::get());
359 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
360 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Unicode * >(0)) ==
361 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
362 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
363 : : ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Unicode * >(0)) ==
364 [ + - ]: 5 : ::getCppuType(static_cast< ::sal_Unicode * >(0)));
365 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
366 : : ::cppu::getTypeFavourUnsigned(static_cast< ::rtl::OUString * >(0)) ==
367 [ + - ]: 5 : ::cppu::UnoType< ::rtl::OUString >::get());
368 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
369 : : ::cppu::getTypeFavourUnsigned(static_cast< ::rtl::OUString * >(0)) ==
370 [ + - ]: 5 : ::getCppuType(static_cast< ::rtl::OUString * >(0)));
371 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
372 : : ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Type * >(0)) ==
373 [ + - ]: 5 : ::cppu::UnoType< css::uno::Type >::get());
374 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
375 : : ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Type * >(0)) ==
376 [ + - ]: 5 : ::getCppuType(static_cast< css::uno::Type * >(0)));
377 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
378 : : ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Any * >(0)) ==
379 [ + - ]: 5 : ::cppu::UnoType< css::uno::Any >::get());
380 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
381 : : ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Any * >(0)) ==
382 [ + - ]: 5 : ::getCppuType(static_cast< css::uno::Any * >(0)));
383 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
384 : : ::cppu::getTypeFavourUnsigned(
385 : : static_cast<
386 : : ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > * >(0)) ==
387 : : ::cppu::UnoType<
388 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
389 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
390 : : ::cppu::getTypeFavourUnsigned(
391 : : static_cast< css::uno::Sequence< ::sal_uInt16 > * >(0)) ==
392 : : ::cppu::UnoType<
393 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
394 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
395 : : ::cppu::getTypeFavourUnsigned(
396 : : static_cast< css::uno::Sequence< ::sal_uInt16 > * >(0)) ==
397 [ + - ]: 5 : ::getCppuType(static_cast< css::uno::Sequence< ::sal_uInt16 > * >(0)));
398 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
399 : : ::cppu::getTypeFavourUnsigned(
400 : : static_cast< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
401 : : ::cppu::UnoUnsignedShortType > > * >(0)) ==
402 : : ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
403 [ + - ]: 5 : ::cppu::UnoUnsignedShortType > > >::get());
404 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
405 : : ::cppu::getTypeFavourUnsigned(
406 : : static_cast< css::uno::Sequence< css::uno::Sequence<
407 : : ::sal_uInt16 > > * >(0)) ==
408 : : ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
409 [ + - ]: 5 : ::cppu::UnoUnsignedShortType > > >::get());
410 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
411 : : ::cppu::getTypeFavourUnsigned(
412 : : static_cast< css::uno::Sequence< css::uno::Sequence<
413 : : ::sal_uInt16 > > * >(0)) ==
414 : : ::getCppuType(
415 : : static_cast< css::uno::Sequence< css::uno::Sequence<
416 [ + - ]: 5 : ::sal_uInt16 > > * >(0)));
417 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
418 : : ::cppu::getTypeFavourUnsigned(
419 : : static_cast< css::uno::Sequence< ::sal_Unicode > * >(0)) ==
420 : : ::cppu::UnoType<
421 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
422 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
423 : : ::cppu::getTypeFavourUnsigned(
424 : : static_cast< css::uno::Sequence< ::sal_Unicode > * >(0)) ==
425 [ + - ]: 5 : ::getCppuType(static_cast< css::uno::Sequence< ::sal_Unicode > * >(0)));
426 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
427 : : ::cppu::getTypeFavourUnsigned(
428 : : static_cast< css::uno::Sequence< css::uno::Sequence<
429 : : ::sal_Unicode > > * >(0)) ==
430 : : ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
431 [ + - ]: 5 : ::cppu::UnoUnsignedShortType > > >::get());
432 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
433 : : ::cppu::getTypeFavourUnsigned(
434 : : static_cast< css::uno::Sequence< css::uno::Sequence<
435 : : ::sal_Unicode > > * >(0)) ==
436 : : ::getCppuType(
437 : : static_cast< css::uno::Sequence< css::uno::Sequence<
438 [ + - ]: 5 : ::sal_Unicode > > * >(0)));
439 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
440 : : ::cppu::getTypeFavourUnsigned(
441 : : static_cast< css::uno::TypeClass * >(0)) ==
442 [ + - ]: 5 : ::cppu::UnoType< css::uno::TypeClass >::get());
443 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
444 : : ::cppu::getTypeFavourUnsigned(
445 : : static_cast< css::uno::TypeClass * >(0)) ==
446 [ + - ]: 5 : ::getCppuType(static_cast< css::uno::TypeClass * >(0)));
447 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
448 : : ::cppu::getTypeFavourUnsigned(
449 : : static_cast< css::lang::EventObject * >(0)) ==
450 [ + - ]: 5 : ::cppu::UnoType< css::lang::EventObject >::get());
451 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
452 : : ::cppu::getTypeFavourUnsigned(
453 : : static_cast< css::lang::EventObject * >(0)) ==
454 [ + - ]: 5 : ::getCppuType(static_cast< css::lang::EventObject * >(0)));
455 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
456 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct1 * >(0)) ==
457 [ + - ]: 5 : ::cppu::UnoType< css::lang::EventObject >::get());
458 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
459 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct1 * >(0)) ==
460 [ + - ]: 5 : ::getCppuType(static_cast< DerivedStruct1 * >(0)));
461 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
462 : : ::cppu::getTypeFavourUnsigned(
463 : : static_cast< css::beans::PropertyChangeEvent * >(0)) ==
464 [ + - ]: 5 : ::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
465 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
466 : : ::cppu::getTypeFavourUnsigned(
467 : : static_cast< css::beans::PropertyChangeEvent * >(0)) ==
468 [ + - ]: 5 : ::getCppuType(static_cast< css::beans::PropertyChangeEvent * >(0)));
469 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
470 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
471 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct2 * >(0)) ==
472 [ + - ]: 5 : ::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
473 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
474 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct2 * >(0)) ==
475 [ + - ]: 5 : ::getCppuType(static_cast< DerivedStruct2 * >(0)));
476 : : #endif
477 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
478 : : ::cppu::getTypeFavourUnsigned(
479 : : static_cast< css::beans::Optional< ::sal_Int8 > * >(0)) ==
480 [ + - ]: 5 : ::cppu::UnoType< css::beans::Optional< ::sal_Int8 > >::get());
481 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
482 : : ::cppu::getTypeFavourUnsigned(
483 : : static_cast< css::beans::Optional< ::sal_Int8 > * >(0)) ==
484 [ + - ]: 5 : ::getCppuType(static_cast< css::beans::Optional< ::sal_Int8 > * >(0)));
485 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
486 : : ::cppu::getTypeFavourUnsigned(
487 : : static_cast< css::uno::Exception * >(0)) ==
488 [ + - ]: 5 : ::cppu::UnoType< css::uno::Exception >::get());
489 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
490 : : ::cppu::getTypeFavourUnsigned(
491 : : static_cast< css::uno::Exception * >(0)) ==
492 [ + - ]: 5 : ::getCppuType(static_cast< css::uno::Exception * >(0)));
493 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
494 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedException1 * >(0)) ==
495 [ + - ]: 5 : ::cppu::UnoType< css::uno::Exception >::get());
496 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
497 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedException1 * >(0)) ==
498 [ + - ]: 5 : ::getCppuType(static_cast< DerivedException1 * >(0)));
499 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
500 : : ::cppu::getTypeFavourUnsigned(
501 : : static_cast< css::uno::RuntimeException * >(0)) ==
502 [ + - ]: 5 : ::cppu::UnoType< css::uno::RuntimeException >::get());
503 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
504 : : ::cppu::getTypeFavourUnsigned(
505 : : static_cast< css::uno::RuntimeException * >(0)) ==
506 [ + - ]: 5 : ::getCppuType(static_cast< css::uno::RuntimeException * >(0)));
507 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
508 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
509 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedException2 * >(0)) ==
510 [ + - ]: 5 : ::cppu::UnoType< css::uno::RuntimeException >::get());
511 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
512 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedException2 * >(0)) ==
513 [ + - ]: 5 : ::getCppuType(static_cast< DerivedException2 * >(0)));
514 : : #endif
515 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
516 : : ::cppu::getTypeFavourUnsigned(
517 : : static_cast< css::uno::XInterface * >(0)) ==
518 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
519 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
520 : : ::cppu::getTypeFavourUnsigned(
521 : : static_cast< css::uno::Reference< css::uno::XInterface > * >(0)) ==
522 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
523 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
524 : : ::cppu::getTypeFavourUnsigned(
525 : : static_cast< css::uno::Reference< css::uno::XInterface > * >(0)) ==
526 : : ::getCppuType(
527 [ + - ]: 5 : static_cast< css::uno::Reference< css::uno::XInterface > * >(0)));
528 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
529 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedInterface1 * >(0)) ==
530 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
531 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
532 : : ::cppu::getTypeFavourUnsigned(
533 : : static_cast< css::uno::Reference< DerivedInterface1 > * >(0)) ==
534 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
535 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
536 : : ::cppu::getTypeFavourUnsigned(
537 : : static_cast< css::uno::XComponentContext * >(0)) ==
538 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
539 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
540 : : ::cppu::getTypeFavourUnsigned(
541 : : static_cast<
542 : : css::uno::Reference< css::uno::XComponentContext > * >(0)) ==
543 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
544 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
545 : : ::cppu::getTypeFavourUnsigned(
546 : : static_cast<
547 : : css::uno::Reference< css::uno::XComponentContext > * >(0)) ==
548 : : ::getCppuType(
549 : : static_cast<
550 [ + - ]: 5 : css::uno::Reference< css::uno::XComponentContext > * >(0)));
551 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
552 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
553 : : ::cppu::getTypeFavourUnsigned(static_cast< DerivedInterface2 * >(0)) ==
554 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
555 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
556 : : ::cppu::getTypeFavourUnsigned(
557 : : static_cast< css::uno::Reference< DerivedInterface2 > * >(0)) ==
558 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
559 : : #endif
560 : 5 : }
561 : :
562 : 5 : void Test::testGetTypeFavourChar() {
563 [ + - ][ + - ]: 5 : CPPUNIT_ASSERT(typeid(::sal_Unicode) == typeid(::sal_uInt16));
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
564 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
565 [ + - ]: 5 : ::getCppuType< ::sal_Unicode >() == ::getCppuType< ::sal_uInt16 >());
566 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
567 : : ::cppu::getTypeFavourChar(static_cast< ::cppu::UnoVoidType * >(0)) ==
568 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoVoidType >::get());
569 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
570 : : ::cppu::getTypeFavourChar(static_cast< bool * >(0)) ==
571 [ + - ]: 5 : ::cppu::UnoType< bool >::get());
572 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
573 : : ::cppu::getTypeFavourChar(static_cast< bool * >(0)) ==
574 [ + - ]: 5 : ::getCppuType< bool >());
575 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
576 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Bool * >(0)) ==
577 [ + - ]: 5 : ::cppu::UnoType< bool >::get());
578 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
579 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Bool * >(0)) ==
580 [ + - ]: 5 : ::getCppuType< ::sal_Bool >());
581 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
582 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int8 * >(0)) ==
583 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int8 >::get());
584 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
585 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int8 * >(0)) ==
586 [ + - ]: 5 : ::getCppuType< ::sal_Int8 >());
587 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
588 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int16 * >(0)) ==
589 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int16 >::get());
590 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
591 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int16 * >(0)) ==
592 [ + - ]: 5 : ::getCppuType< ::sal_Int16 >());
593 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
594 : : ::cppu::getTypeFavourChar(
595 : : static_cast< ::cppu::UnoUnsignedShortType * >(0)) ==
596 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
597 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
598 : : ::cppu::getTypeFavourChar(static_cast< ::sal_uInt16 * >(0)) ==
599 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoCharType >::get());
600 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
601 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int32 * >(0)) ==
602 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int32 >::get());
603 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
604 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int32 * >(0)) ==
605 [ + - ]: 5 : ::getCppuType< ::sal_Int32 >());
606 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
607 : : ::cppu::getTypeFavourChar(static_cast< ::sal_uInt32 * >(0)) ==
608 [ + - ]: 5 : ::cppu::UnoType< ::sal_uInt32 >::get());
609 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
610 : : ::cppu::getTypeFavourChar(static_cast< ::sal_uInt32 * >(0)) ==
611 [ + - ]: 5 : ::getCppuType< ::sal_uInt32 >());
612 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
613 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int64 * >(0)) ==
614 [ + - ]: 5 : ::cppu::UnoType< ::sal_Int64 >::get());
615 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
616 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Int64 * >(0)) ==
617 [ + - ]: 5 : ::getCppuType< ::sal_Int64 >());
618 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
619 : : ::cppu::getTypeFavourChar(static_cast< ::sal_uInt64 * >(0)) ==
620 [ + - ]: 5 : ::cppu::UnoType< ::sal_uInt64 >::get());
621 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
622 : : ::cppu::getTypeFavourChar(static_cast< ::sal_uInt64 * >(0)) ==
623 [ + - ]: 5 : ::getCppuType< ::sal_uInt64 >());
624 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
625 : : ::cppu::getTypeFavourChar(static_cast< float * >(0)) ==
626 [ + - ]: 5 : ::cppu::UnoType< float >::get());
627 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
628 : : ::cppu::getTypeFavourChar(static_cast< float * >(0)) ==
629 [ + - ]: 5 : ::getCppuType< float >());
630 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
631 : : ::cppu::getTypeFavourChar(static_cast< double * >(0)) ==
632 [ + - ]: 5 : ::cppu::UnoType< double >::get());
633 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
634 : : ::cppu::getTypeFavourChar(static_cast< double * >(0)) ==
635 [ + - ]: 5 : ::getCppuType< double >());
636 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
637 : : ::cppu::getTypeFavourChar(static_cast< ::cppu::UnoCharType * >(0)) ==
638 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoCharType >::get());
639 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
640 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Unicode * >(0)) ==
641 [ + - ]: 5 : ::cppu::UnoType< ::cppu::UnoCharType >::get());
642 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
643 : : ::cppu::getTypeFavourChar(static_cast< ::sal_Unicode * >(0)) ==
644 [ + - ]: 5 : ::getCppuType< ::sal_Unicode >());
645 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
646 : : ::cppu::getTypeFavourChar(static_cast< ::rtl::OUString * >(0)) ==
647 [ + - ]: 5 : ::cppu::UnoType< ::rtl::OUString >::get());
648 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
649 : : ::cppu::getTypeFavourChar(static_cast< ::rtl::OUString * >(0)) ==
650 [ + - ]: 5 : ::getCppuType< ::rtl::OUString >());
651 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
652 : : ::cppu::getTypeFavourChar(static_cast< css::uno::Type * >(0)) ==
653 [ + - ]: 5 : ::cppu::UnoType< css::uno::Type >::get());
654 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
655 : : ::cppu::getTypeFavourChar(static_cast< css::uno::Type * >(0)) ==
656 [ + - ]: 5 : ::getCppuType< css::uno::Type >());
657 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
658 : : ::cppu::getTypeFavourChar(static_cast< css::uno::Any * >(0)) ==
659 [ + - ]: 5 : ::cppu::UnoType< css::uno::Any >::get());
660 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
661 : : ::cppu::getTypeFavourChar(static_cast< css::uno::Any * >(0)) ==
662 [ + - ]: 5 : ::getCppuType< css::uno::Any >());
663 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
664 : : ::cppu::getTypeFavourChar(
665 : : static_cast<
666 : : ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > * >(0)) ==
667 : : ::cppu::UnoType<
668 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
669 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
670 : : ::cppu::getTypeFavourChar(
671 : : static_cast< css::uno::Sequence< ::sal_uInt16 > * >(0)) ==
672 : : ::cppu::UnoType<
673 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoCharType > >::get());
674 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
675 : : ::cppu::getTypeFavourChar(
676 : : static_cast< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
677 : : ::cppu::UnoUnsignedShortType > > * >(0)) ==
678 : : ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
679 [ + - ]: 5 : ::cppu::UnoUnsignedShortType > > >::get());
680 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
681 : : ::cppu::getTypeFavourChar(
682 : : static_cast< css::uno::Sequence< css::uno::Sequence<
683 : : ::sal_uInt16 > > * >(0)) ==
684 : : ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
685 [ + - ]: 5 : ::cppu::UnoCharType > > >::get());
686 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
687 : : ::cppu::getTypeFavourChar(
688 : : static_cast< css::uno::Sequence< ::sal_Unicode > * >(0)) ==
689 : : ::cppu::UnoType<
690 [ + - ]: 5 : ::cppu::UnoSequenceType< ::cppu::UnoCharType > >::get());
691 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
692 : : ::cppu::getTypeFavourChar(
693 : : static_cast< css::uno::Sequence< css::uno::Sequence<
694 : : ::sal_Unicode > > * >(0)) ==
695 : : ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
696 [ + - ]: 5 : ::cppu::UnoCharType > > >::get());
697 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
698 : : ::cppu::getTypeFavourChar(static_cast< css::uno::TypeClass * >(0)) ==
699 [ + - ]: 5 : ::cppu::UnoType< css::uno::TypeClass >::get());
700 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
701 : : ::cppu::getTypeFavourChar(static_cast< css::uno::TypeClass * >(0)) ==
702 [ + - ]: 5 : ::getCppuType< css::uno::TypeClass >());
703 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
704 : : ::cppu::getTypeFavourChar(
705 : : static_cast< css::lang::EventObject * >(0)) ==
706 [ + - ]: 5 : ::cppu::UnoType< css::lang::EventObject >::get());
707 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
708 : : ::cppu::getTypeFavourChar(
709 : : static_cast< css::lang::EventObject * >(0)) ==
710 [ + - ]: 5 : ::getCppuType< css::lang::EventObject >());
711 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
712 : : ::cppu::getTypeFavourChar(static_cast< DerivedStruct1 * >(0)) ==
713 [ + - ]: 5 : ::cppu::UnoType< css::lang::EventObject >::get());
714 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
715 : : ::cppu::getTypeFavourChar(static_cast< DerivedStruct1 * >(0)) ==
716 [ + - ]: 5 : ::getCppuType< DerivedStruct1 >());
717 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
718 : : ::cppu::getTypeFavourChar(
719 : : static_cast< css::beans::PropertyChangeEvent * >(0)) ==
720 [ + - ]: 5 : ::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
721 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
722 : : ::cppu::getTypeFavourChar(
723 : : static_cast< css::beans::PropertyChangeEvent * >(0)) ==
724 [ + - ]: 5 : ::getCppuType< css::beans::PropertyChangeEvent >());
725 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
726 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
727 : : ::cppu::getTypeFavourChar(static_cast< DerivedStruct2 * >(0)) ==
728 [ + - ]: 5 : ::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
729 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
730 : : ::cppu::getTypeFavourChar(static_cast< DerivedStruct2 * >(0)) ==
731 [ + - ]: 5 : ::getCppuType< DerivedStruct2 >());
732 : : #endif
733 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
734 : : ::cppu::getTypeFavourChar(
735 : : static_cast< css::beans::Optional< ::sal_Int8 > * >(0)) ==
736 [ + - ]: 5 : ::cppu::UnoType< css::beans::Optional< ::sal_Int8 > >::get());
737 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
738 : : ::cppu::getTypeFavourChar(
739 : : static_cast< css::beans::Optional< ::sal_Int8 > * >(0)) ==
740 [ + - ]: 5 : ::getCppuType< css::beans::Optional< ::sal_Int8 > >());
741 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
742 : : ::cppu::getTypeFavourChar(static_cast< css::uno::Exception * >(0)) ==
743 [ + - ]: 5 : ::cppu::UnoType< css::uno::Exception >::get());
744 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
745 : : ::cppu::getTypeFavourChar(static_cast< css::uno::Exception * >(0)) ==
746 [ + - ]: 5 : ::getCppuType< css::uno::Exception >());
747 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
748 : : ::cppu::getTypeFavourChar(static_cast< DerivedException1 * >(0)) ==
749 [ + - ]: 5 : ::cppu::UnoType< css::uno::Exception >::get());
750 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
751 : : ::cppu::getTypeFavourChar(static_cast< DerivedException1 * >(0)) ==
752 [ + - ]: 5 : ::getCppuType< DerivedException1 >());
753 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
754 : : ::cppu::getTypeFavourChar(
755 : : static_cast< css::uno::RuntimeException * >(0)) ==
756 [ + - ]: 5 : ::cppu::UnoType< css::uno::RuntimeException >::get());
757 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
758 : : ::cppu::getTypeFavourChar(
759 : : static_cast< css::uno::RuntimeException * >(0)) ==
760 [ + - ]: 5 : ::getCppuType< css::uno::RuntimeException >());
761 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
762 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
763 : : ::cppu::getTypeFavourChar(static_cast< DerivedException2 * >(0)) ==
764 [ + - ]: 5 : ::cppu::UnoType< css::uno::RuntimeException >::get());
765 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
766 : : ::cppu::getTypeFavourChar(static_cast< DerivedException2 * >(0)) ==
767 [ + - ]: 5 : ::getCppuType< DerivedException2 >());
768 : : #endif
769 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
770 : : ::cppu::getTypeFavourChar(
771 : : static_cast< css::uno::XInterface * >(0)) ==
772 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
773 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
774 : : ::cppu::getTypeFavourChar(
775 : : static_cast< css::uno::Reference< css::uno::XInterface > * >(0)) ==
776 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
777 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
778 : : ::cppu::getTypeFavourChar(
779 : : static_cast< css::uno::Reference< css::uno::XInterface > * >(0)) ==
780 [ + - ]: 5 : ::getCppuType< css::uno::Reference< css::uno::XInterface > >());
781 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
782 : : ::cppu::getTypeFavourChar(static_cast< DerivedInterface1 * >(0)) ==
783 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
784 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
785 : : ::cppu::getTypeFavourChar(
786 : : static_cast< css::uno::Reference< DerivedInterface1 > * >(0)) ==
787 [ + - ]: 5 : ::cppu::UnoType< css::uno::XInterface >::get());
788 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
789 : : ::cppu::getTypeFavourChar(
790 : : static_cast< css::uno::XComponentContext * >(0)) ==
791 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
792 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
793 : : ::cppu::getTypeFavourChar(
794 : : static_cast<
795 : : css::uno::Reference< css::uno::XComponentContext > * >(0)) ==
796 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
797 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
798 : : ::cppu::getTypeFavourChar(
799 : : static_cast<
800 : : css::uno::Reference< css::uno::XComponentContext > * >(0)) ==
801 [ + - ]: 5 : ::getCppuType< css::uno::Reference< css::uno::XComponentContext > >());
802 : : #if !(defined __SUNPRO_CC && __SUNPRO_CC <= 0x550) // erroneous ambiguity stated
803 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
804 : : ::cppu::getTypeFavourChar(static_cast< DerivedInterface2 * >(0)) ==
805 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
806 [ + - ][ + - ]: 10 : CPPUNIT_ASSERT(
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ]
807 : : ::cppu::getTypeFavourChar(
808 : : static_cast< css::uno::Reference< DerivedInterface2 > * >(0)) ==
809 [ + - ]: 5 : ::cppu::UnoType< css::uno::XComponentContext >::get());
810 : : #endif
811 : 5 : }
812 : :
813 : 5 : CPPUNIT_TEST_SUITE_REGISTRATION(Test);
814 : :
815 : : }
816 : :
817 [ + - ][ + - ]: 20 : CPPUNIT_PLUGIN_IMPLEMENT();
[ + - ][ + - ]
[ + - ][ # # ]
818 : :
819 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|