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
868a6831
Kaydet (Commit)
868a6831
authored
Ara 13, 2018
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Un-revert the addition of more ABI checks for LibreOfficeKitClass
Change-Id: Idf2ebb552065fa600a4010e83a24a0f13651c029
üst
25f059a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
test_desktop_lib.cxx
desktop/qa/desktop_lib/test_desktop_lib.cxx
+17
-0
No files found.
desktop/qa/desktop_lib/test_desktop_lib.cxx
Dosyayı görüntüle @
868a6831
...
...
@@ -2463,6 +2463,11 @@ void DesktopLOKTest::testInsertCertificatePEM()
namespace
{
constexpr
size_t
classOffset
(
int
i
)
{
return
sizeof
(
static_cast
<
struct
_LibreOfficeKitClass
*>
(
nullptr
)
->
nSize
)
+
i
*
sizeof
(
void
*
);
}
constexpr
size_t
documentClassOffset
(
int
i
)
{
return
sizeof
(
static_cast
<
struct
_LibreOfficeKitDocumentClass
*>
(
nullptr
)
->
nSize
)
+
i
*
sizeof
(
void
*
);
...
...
@@ -2473,6 +2478,18 @@ constexpr size_t documentClassOffset(int i)
void
DesktopLOKTest
::
testABI
()
{
// STABLE ABI, NEVER CHANGE (unless there's a very good reason, agreed by ESC, etc.)
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
0
),
offsetof
(
struct
_LibreOfficeKitClass
,
destroy
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
1
),
offsetof
(
struct
_LibreOfficeKitClass
,
documentLoad
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
2
),
offsetof
(
struct
_LibreOfficeKitClass
,
getError
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
3
),
offsetof
(
struct
_LibreOfficeKitClass
,
documentLoadWithOptions
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
4
),
offsetof
(
struct
_LibreOfficeKitClass
,
freeError
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
5
),
offsetof
(
struct
_LibreOfficeKitClass
,
registerCallback
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
6
),
offsetof
(
struct
_LibreOfficeKitClass
,
getFilterTypes
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
7
),
offsetof
(
struct
_LibreOfficeKitClass
,
setOptionalFeatures
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
8
),
offsetof
(
struct
_LibreOfficeKitClass
,
setDocumentPassword
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
9
),
offsetof
(
struct
_LibreOfficeKitClass
,
getVersionInfo
));
CPPUNIT_ASSERT_EQUAL
(
classOffset
(
10
),
offsetof
(
struct
_LibreOfficeKitClass
,
runMacro
));
CPPUNIT_ASSERT_EQUAL
(
documentClassOffset
(
0
),
offsetof
(
struct
_LibreOfficeKitDocumentClass
,
destroy
));
CPPUNIT_ASSERT_EQUAL
(
documentClassOffset
(
1
),
offsetof
(
struct
_LibreOfficeKitDocumentClass
,
saveAs
));
...
...
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