Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
437255ce
Kaydet (Commit)
437255ce
authored
Haz 19, 2006
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS warnings01 (1.6.6); FILE MERGED
2006/03/01 15:48:44 sb 1.6.6.1: #i53898# Made code waring-free.
üst
7651cd66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
26 deletions
+22
-26
cli_cpp_bridgetest.cxx
testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
+22
-26
No files found.
testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
Dosyayı görüntüle @
437255ce
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: cli_cpp_bridgetest.cxx,v $
*
* $Revision: 1.
6
$
* $Revision: 1.
7
$
*
* last change: $Author: hr $ $Date: 200
5-09-23 11:48:24
$
* last change: $Author: hr $ $Date: 200
6-06-19 23:13:21
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -153,7 +153,6 @@ public __gc class BridgeTest : public WeakBase, public XMain
//arrays have same rank and size and element type.
int
len
=
ar1
->
Length
;
Type
*
elemType
=
t1
->
GetElementType
();
bool
ret
=
true
;
for
(
int
i
=
0
;
i
<
len
;
i
++
)
{
...
...
@@ -284,8 +283,8 @@ static bool testAny(Type* typ, Object* value, XBridgeTest* xLBT )
any
=
Any
(
typ
,
value
);
Any
any2
=
xLBT
->
transportAny
(
any
);
bool
ret
;
if
(
!
(
ret
=
compareData
(
__box
(
any
),
__box
(
any2
)))
)
bool
ret
=
compareData
(
__box
(
any
),
__box
(
any2
))
;
if
(
!
ret
)
{
Console
::
WriteLine
(
"any is different after roundtrip: in {0}, out {1}
\n
"
,
any
.
Type
->
FullName
,
any2
.
Type
->
FullName
);
...
...
@@ -363,7 +362,7 @@ static bool performQueryForUnknownType(XBridgeTest* xLBT)
// test queryInterface for an unknown type
try
{
foo
::
MyInterface
*
a
=
__try_cast
<
foo
::
MyInterface
*>
(
xLBT
);
__try_cast
<
foo
::
MyInterface
*>
(
xLBT
);
}
catch
(
System
::
InvalidCastException
*
)
{
...
...
@@ -643,7 +642,7 @@ static bool performSequenceTest(XBridgeTest* xBT)
bRet
=
check
(
compareData
(
seqFloatRet
,
arFloat
),
"sequence test"
)
&&
bRet
;
Double
seqDoubleRet
[]
=
xBT2
->
setSequenceDouble
(
arDouble
);
bRet
=
check
(
compareData
(
seqDoubleRet
,
arDouble
),
"sequence test"
)
&&
bRet
;
TestEnum
seqEnumRet
[]
=
xBT2
->
setSequenceEnum
(
arEnum
);
xBT2
->
setSequenceEnum
(
arEnum
);
//comparing seqEnumRet with arEnum will fail since they are of different
//types because of workaround. arEnum is Int32[].
Console
::
WriteLine
(
new
String
(
"cli_cpp_bridgetest: Test omitted because "
...
...
@@ -663,21 +662,21 @@ static bool performSequenceTest(XBridgeTest* xBT)
bRet
=
check
(
compareData
(
seqStructRet
,
arStruct
),
"sequence test"
)
&&
bRet
;
}
{
Boolean
arBoolTemp
[]
=
static_cast
<
Boolean
[]
>
(
arBool
->
Clone
());
Char
arCharTemp
[]
=
static_cast
<
Char
[]
>
(
arChar
->
Clone
());
Byte
arByteTemp
[]
=
static_cast
<
Byte
[]
>
(
arByte
->
Clone
());
Int16
arShortTemp
[]
=
static_cast
<
Int16
[]
>
(
arShort
->
Clone
());
UInt16
arUShortTemp
[]
=
static_cast
<
UInt16
[]
>
(
arUShort
->
Clone
());
Int32
arLongTemp
[]
=
static_cast
<
Int32
[]
>
(
arLong
->
Clone
());
UInt32
arULongTemp
[]
=
static_cast
<
UInt32
[]
>
(
arULong
->
Clone
());
Int64
arHyperTemp
[]
=
static_cast
<
Int64
[]
>
(
arHyper
->
Clone
());
UInt64
arUHyperTemp
[]
=
static_cast
<
UInt64
[]
>
(
arUHyper
->
Clone
());
Single
arFloatTemp
[]
=
static_cast
<
Single
[]
>
(
arFloat
->
Clone
());
Double
arDoubleTemp
[]
=
static_cast
<
Double
[]
>
(
arDouble
->
Clone
());
TestEnum
arEnumTemp
[]
=
static_cast
<
TestEnum
[]
>
(
arEnum
->
Clone
());
String
*
arStringTemp
[]
=
static_cast
<
String
*
[]
>
(
arString
->
Clone
());
Object
*
arObjectTemp
=
static_cast
<
Object
*
[]
>
(
arObject
->
Clone
());
Any
arAnyTemp
[]
=
static_cast
<
Any
[]
>
(
arAny
->
Clone
());
//
Boolean arBoolTemp[] = static_cast<Boolean[]>( arBool->Clone());
//
Char arCharTemp[] = static_cast<Char[]>(arChar->Clone());
//
Byte arByteTemp[] = static_cast<Byte[]>(arByte->Clone());
//
Int16 arShortTemp[] = static_cast<Int16[]>(arShort->Clone());
//
UInt16 arUShortTemp[] = static_cast<UInt16[]>(arUShort->Clone());
//
Int32 arLongTemp[] = static_cast<Int32[]>(arLong->Clone());
//
UInt32 arULongTemp[] = static_cast<UInt32[]>(arULong->Clone());
//
Int64 arHyperTemp[] = static_cast<Int64[]>(arHyper->Clone());
//
UInt64 arUHyperTemp[] = static_cast<UInt64[]>(arUHyper->Clone());
//
Single arFloatTemp[] = static_cast<Single[]>(arFloat->Clone());
//
Double arDoubleTemp[] = static_cast<Double[]>(arDouble->Clone());
//
TestEnum arEnumTemp[] = static_cast<TestEnum[]>(arEnum->Clone());
//
String* arStringTemp[] = static_cast<String*[]>(arString->Clone());
//
Object* arObjectTemp = static_cast<Object*[]>(arObject->Clone());
//
Any arAnyTemp[] = static_cast<Any[]>(arAny->Clone());
// // make sure this are has the same contents as arLong3[0]
// int[][] arLong2Temp = new int[][]{new int[]{1,2,3},new int[]{4,5,6}, new int[]{7,8,9} };
// // make sure this are has the same contents as arLong3
...
...
@@ -792,7 +791,7 @@ static bool performSequenceTest(XBridgeTest* xBT)
Double
seqDoubleRet
[]
=
xBT2
->
setSequenceDouble
(
_arDouble
);
bRet
=
check
(
compareData
(
seqDoubleRet
,
_arDouble
),
"sequence test"
)
&&
bRet
;
TestEnum
_arEnum
[]
=
new
TestEnum
[
0
];
TestEnum
seqEnumRet
[]
=
xBT2
->
setSequenceEnum
(
_arEnum
);
xBT2
->
setSequenceEnum
(
_arEnum
);
// compiler bug: _arEnum has type System.Enum and not TestEnum
// bRet = check( compareData(seqEnumRet, _arEnum), "sequence test") && bRet;
UInt16
_arUShort
[]
=
new
UInt16
[
0
];
...
...
@@ -823,7 +822,6 @@ static bool testObjectMethodsImplemention(XBridgeTest* xLBT)
{
bool
ret
=
false
;
Object
*
obj
=
new
Object
();
Object
*
xInt
=
static_cast
<
Object
*>
(
xLBT
);
XBridgeTestBase
*
xBase
=
dynamic_cast
<
XBridgeTestBase
*>
(
xLBT
);
if
(
xBase
==
0
)
return
false
;
...
...
@@ -872,8 +870,6 @@ static bool raiseException(XBridgeTest* xLBT )
{
try
{
TestDataElements
*
aRet
=
new
TestDataElements
();
TestDataElements
*
aRet2
=
new
TestDataElements
();
xLBT
->
raiseException
(
5
,
Constants
::
STRING_TEST_CONSTANT
,
xLBT
->
Interface
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment