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
654fd034
Kaydet (Commit)
654fd034
authored
Tem 04, 2001
tarafından
Jörg Budischewski
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#88717# queryInterface for an unknown type is now tested (feature was introduced in UDK302b/UDK300o
üst
ce6274df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
bridgetest.cxx
testtools/source/bridgetest/bridgetest.cxx
+18
-4
No files found.
testtools/source/bridgetest/bridgetest.cxx
Dosyayı görüntüle @
654fd034
/**************************************************************************
#*
#* last change $Author:
kr $ $Date: 2001-05-04 07:05:17
$
#* $Revision: 1.
1
$
#* last change $Author:
jbu $ $Date: 2001-07-04 08:41:23
$
#* $Revision: 1.
2
$
#*
#* $Logfile: $
#*
...
...
@@ -278,6 +278,7 @@ static sal_Bool performRecursiveCallTest( const Reference < XBridgeTest > & xLBT
static
sal_Bool
performTest
(
const
Reference
<
XBridgeTest
>
&
xLBT
)
{
OSL_ENSURE
(
xLBT
.
is
(),
"### no test interface!"
);
sal_Bool
bRet
=
sal_False
;
if
(
xLBT
.
is
())
{
// this data is never ever granted access to by calls other than equals(), assign()!
...
...
@@ -391,10 +392,20 @@ static sal_Bool performTest( const Reference<XBridgeTest > & xLBT )
// recursive call test
OSL_ASSERT
(
performRecursiveCallTest
(
xLBT
)
);
return
(
equals
(
aData
,
aRet
)
&&
equals
(
aData
,
aRet2
));
bRet
=
(
equals
(
aData
,
aRet
)
&&
equals
(
aData
,
aRet2
));
}
{
// test queryInterface for an unknown type
typelib_TypeDescriptionReference
*
pTypeRef
=
0
;
OUString
aName
(
RTL_CONSTASCII_USTRINGPARAM
(
"foo.MyInterface"
)
);
typelib_typedescriptionreference_new
(
&
pTypeRef
,
typelib_TypeClass_INTERFACE
,
aName
.
pData
);
Any
a
=
xLBT
->
queryInterface
(
Type
(
pTypeRef
)
);
typelib_typedescriptionreference_release
(
pTypeRef
);
bRet
=
bRet
&&
(
a
==
Any
(
));
}
}
return
sal_False
;
return
bRet
;
}
static
sal_Bool
raiseOnewayException
(
const
Reference
<
XBridgeTest
>
&
xLBT
)
{
...
...
@@ -656,6 +667,9 @@ void * SAL_CALL component_getFactory(
/**************************************************************************
$Log: not supported by cvs2svn $
Revision 1.1 2001/05/04 07:05:17 kr
moved from grande to openoffice
Revision 1.3 2001/03/12 16:22:44 jl
OSL_ENSHURE replaced by OSL_ENSURE
...
...
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