INTEGRATION: CWS jl31 (1.3.38); FILE MERGED

2006/02/20 16:00:30 sb 1.3.38.1: #i62339# Introduced (internal-only) cppu::getTypeFavourUnsigned as (working) replacement of now deprecated getCppuType<> template.
This commit is contained in:
Rüdiger Timm 2006-03-09 09:45:05 +00:00
parent bd314b878a
commit 44b58396a9

View file

@ -4,9 +4,9 @@
* *
* $RCSfile: test_any.cxx,v $ * $RCSfile: test_any.cxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 08:43:22 $ * last change: $Author: rt $ $Date: 2006-03-09 10:45:05 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
@ -48,6 +48,7 @@
#include "Interface2a.hpp" #include "Interface2a.hpp"
#include "Interface2b.hpp" #include "Interface2b.hpp"
#include "Interface3.hpp" #include "Interface3.hpp"
#include "Poly.hpp"
#include "Struct1.hpp" #include "Struct1.hpp"
#include "Struct2.hpp" #include "Struct2.hpp"
#include "Struct2a.hpp" #include "Struct2a.hpp"
@ -62,6 +63,7 @@
#include "cppunit/simpleheader.hxx" #include "cppunit/simpleheader.hxx"
#include "osl/diagnose.h" #include "osl/diagnose.h"
#include "osl/interlck.h" #include "osl/interlck.h"
#include "rtl/string.h"
#include "rtl/ustring.h" #include "rtl/ustring.h"
#include "rtl/ustring.hxx" #include "rtl/ustring.hxx"
#include "sal/types.h" #include "sal/types.h"
@ -233,6 +235,8 @@ public:
void testStruct(); void testStruct();
void testPoly();
void testException(); void testException();
void testInterface(); void testInterface();
@ -257,6 +261,7 @@ public:
CPPUNIT_TEST(testSequence); CPPUNIT_TEST(testSequence);
CPPUNIT_TEST(testEnum); CPPUNIT_TEST(testEnum);
CPPUNIT_TEST(testStruct); CPPUNIT_TEST(testStruct);
CPPUNIT_TEST(testPoly);
CPPUNIT_TEST(testException); CPPUNIT_TEST(testException);
CPPUNIT_TEST(testInterface); CPPUNIT_TEST(testInterface);
CPPUNIT_TEST(testNull); CPPUNIT_TEST(testNull);
@ -1958,6 +1963,18 @@ void Test::testStruct() {
} }
} }
void Test::testPoly() {
css::uno::Any a;
a <<= Poly< css::uno::Sequence< ::sal_Unicode > >();
CPPUNIT_ASSERT_MESSAGE(
"type name",
a.getValueType().getTypeName().equalsAsciiL(
RTL_CONSTASCII_STRINGPARAM("Poly<[]char>")));
CPPUNIT_ASSERT_MESSAGE(
"constructor",
a == css::uno::Any(Poly< css::uno::Sequence< ::sal_Unicode > >()));
}
void Test::testException() { void Test::testException() {
css::uno::Any a( css::uno::Any a(
Exception2a( Exception2a(