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
c7e18257
Kaydet (Commit)
c7e18257
authored
Ock 26, 2006
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS sb46 (1.14.32); FILE MERGED
2006/01/13 11:58:28 sb 1.14.32.1: #i60341# Test service constructors.
üst
a8327a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
bridgetest.cxx
testtools/source/bridgetest/bridgetest.cxx
+16
-4
No files found.
testtools/source/bridgetest/bridgetest.cxx
Dosyayı görüntüle @
c7e18257
/**************************************************************************
#*
#* last change $Author:
kz $ $Date: 2005-01-18 13:27:23
$
#* $Revision: 1.1
4
$
#* last change $Author:
hr $ $Date: 2006-01-26 17:39:56
$
#* $Revision: 1.1
5
$
#*
#* $Logfile: $
#*
...
...
@@ -32,6 +32,7 @@
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/Type.hxx"
#include "test/testtools/bridgetest/BadConstructorArguments.hpp"
#include "test/testtools/bridgetest/TestPolyStruct.hpp"
#include "test/testtools/bridgetest/XBridgeTest.hpp"
#include "test/testtools/bridgetest/XBridgeTest2.hpp"
...
...
@@ -403,7 +404,9 @@ void MyClass::release() throw ()
}
//==================================================================================================
static
sal_Bool
performTest
(
const
Reference
<
XBridgeTest
>
&
xLBT
)
static
sal_Bool
performTest
(
const
Reference
<
XComponentContext
>
&
xContext
,
const
Reference
<
XBridgeTest
>
&
xLBT
)
{
check
(
xLBT
.
is
(),
"### no test interface!"
);
sal_Bool
bRet
=
sal_True
;
...
...
@@ -890,6 +893,14 @@ static sal_Bool performTest( const Reference<XBridgeTest > & xLBT )
Sequence
<
TestElement
>
seqStructRet
=
xBT2
->
setSequenceStruct
(
arStruct
);
bRet
=
check
(
seqStructRet
==
arStruct
,
"sequence test"
)
&&
bRet
;
}
// Issue #i60341# shows that the most interesting case is were Java calls
// the constructors; however, since this client is currently not available
// in Java, while the server is, the logic is reversed here:
try
{
xBT2
->
testConstructorsService
(
xContext
);
}
catch
(
BadConstructorArguments
&
)
{
bRet
=
false
;
}
}
return
bRet
;
}
...
...
@@ -1141,7 +1152,8 @@ sal_Int32 TestBridgeImpl::run( const Sequence< OUString > & rArgs )
Reference
<
XBridgeTest
>
xLBT
;
bRet
=
check
(
makeSurrogate
(
xLBT
,
xTest
),
"makeSurrogate"
);
bRet
=
check
(
performTest
(
xLBT
),
"standard test"
)
&&
bRet
;
bRet
=
check
(
performTest
(
m_xContext
,
xLBT
),
"standard test"
)
&&
bRet
;
bRet
=
check
(
raiseException
(
xLBT
)
,
"exception test"
)
&&
bRet
;
bRet
=
check
(
raiseOnewayException
(
xLBT
),
"oneway exception test"
)
&&
bRet
;
...
...
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