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
827b44d3
Kaydet (Commit)
827b44d3
authored
Ara 02, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: EDB-29934-1 add .zip cppunit tests
Change-Id: Iaafdcc4e2c97e06bee245251316b18b3d9e87262
üst
b44ed4c4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
113 additions
and
0 deletions
+113
-0
CppunitTest_package2_test.mk
package/CppunitTest_package2_test.mk
+44
-0
Module_package.mk
package/Module_package.mk
+4
-0
.gitignore
package/qa/cppunit/data/fail/.gitignore
+0
-0
EDB-29934-1.zip
package/qa/cppunit/data/fail/EDB-29934-1.zip
+0
-0
.gitignore
package/qa/cppunit/data/indeterminate/.gitignore
+0
-0
.gitignore
package/qa/cppunit/data/pass/.gitignore
+0
-0
test_package.cxx
package/qa/cppunit/test_package.cxx
+65
-0
No files found.
package/CppunitTest_package2_test.mk
0 → 100644
Dosyayı görüntüle @
827b44d3
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,package2_test))
$(eval $(call gb_CppunitTest_add_exception_objects,package2_test, \
package/qa/cppunit/test_package \
))
$(eval $(call gb_CppunitTest_use_libraries,package2_test, \
comphelper \
cppu \
cppuhelper \
sal \
tl \
unotest \
$(gb_UWINAPI) \
))
$(eval $(call gb_CppunitTest_use_api,package2_test,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_components,package2_test,\
configmgr/source/configmgr \
package/util/package2 \
ucb/source/core/ucb1 \
ucb/source/ucp/file/ucpfile1 \
))
$(eval $(call gb_CppunitTest_use_ure,package2_test))
$(eval $(call gb_CppunitTest_use_configuration,package2_test))
# vim: set noet sw=4 ts=4:
package/Module_package.mk
Dosyayı görüntüle @
827b44d3
...
...
@@ -15,4 +15,8 @@ $(eval $(call gb_Module_add_targets,package,\
Package_dtd
\
))
$(eval
$(call
gb_Module_add_check_targets,package,\
CppunitTest_package2_test
\
))
# vim: set noet sw=4 ts=4:
package/qa/cppunit/data/fail/.gitignore
0 → 100644
Dosyayı görüntüle @
827b44d3
package/qa/cppunit/data/fail/EDB-29934-1.zip
0 → 100644
Dosyayı görüntüle @
827b44d3
File added
package/qa/cppunit/data/indeterminate/.gitignore
0 → 100644
Dosyayı görüntüle @
827b44d3
package/qa/cppunit/data/pass/.gitignore
0 → 100644
Dosyayı görüntüle @
827b44d3
package/qa/cppunit/test_package.cxx
0 → 100644
Dosyayı görüntüle @
827b44d3
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <comphelper/processfactory.hxx>
#include <unotest/filters-test.hxx>
#include <unotest/bootstrapfixturebase.hxx>
#include "com/sun/star/packages/zip/ZipFileAccess.hpp"
using
namespace
::
com
::
sun
::
star
;
namespace
{
class
PackageTest
:
public
test
::
FiltersTest
,
public
test
::
BootstrapFixtureBase
{
public
:
PackageTest
()
{}
virtual
bool
load
(
const
OUString
&
,
const
OUString
&
rURL
,
const
OUString
&
,
unsigned
int
,
unsigned
int
,
unsigned
int
);
void
test
();
CPPUNIT_TEST_SUITE
(
PackageTest
);
CPPUNIT_TEST
(
test
);
CPPUNIT_TEST_SUITE_END
();
};
bool
PackageTest
::
load
(
const
OUString
&
,
const
OUString
&
rURL
,
const
OUString
&
,
unsigned
int
,
unsigned
int
,
unsigned
int
)
{
try
{
uno
::
Reference
<
css
::
packages
::
zip
::
XZipFileAccess2
>
xZip
(
css
::
packages
::
zip
::
ZipFileAccess
::
createWithURL
(
comphelper
::
getProcessComponentContext
(),
rURL
));
return
xZip
.
is
();
}
catch
(...)
{
return
false
;
}
}
void
PackageTest
::
test
()
{
testDir
(
OUString
(),
getURLFromSrc
(
"/package/qa/cppunit/data/"
),
OUString
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
PackageTest
);
}
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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