summaryrefslogtreecommitdiff
path: root/cppu/qa
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-03-09 09:45:05 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-03-09 09:45:05 +0000
commit44b58396a90dd52e71feba87c154d25f161ef120 (patch)
treea34437551a998dcb89e0dd3a6c871313fe276a77 /cppu/qa
parentbd314b878a7177e4ad086e81e33e8af2b514e0a3 (diff)
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.
Diffstat (limited to 'cppu/qa')
-rw-r--r--cppu/qa/test_any.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/cppu/qa/test_any.cxx b/cppu/qa/test_any.cxx
index e67857333152..f9ab436b7b71 100644
--- a/cppu/qa/test_any.cxx
+++ b/cppu/qa/test_any.cxx
@@ -4,9 +4,9 @@
*
* $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 terms of GNU Lesser General Public License Version 2.1.
@@ -48,6 +48,7 @@
#include "Interface2a.hpp"
#include "Interface2b.hpp"
#include "Interface3.hpp"
+#include "Poly.hpp"
#include "Struct1.hpp"
#include "Struct2.hpp"
#include "Struct2a.hpp"
@@ -62,6 +63,7 @@
#include "cppunit/simpleheader.hxx"
#include "osl/diagnose.h"
#include "osl/interlck.h"
+#include "rtl/string.h"
#include "rtl/ustring.h"
#include "rtl/ustring.hxx"
#include "sal/types.h"
@@ -233,6 +235,8 @@ public:
void testStruct();
+ void testPoly();
+
void testException();
void testInterface();
@@ -257,6 +261,7 @@ public:
CPPUNIT_TEST(testSequence);
CPPUNIT_TEST(testEnum);
CPPUNIT_TEST(testStruct);
+ CPPUNIT_TEST(testPoly);
CPPUNIT_TEST(testException);
CPPUNIT_TEST(testInterface);
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() {
css::uno::Any a(
Exception2a(