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
bf5f734f
Kaydet (Commit)
bf5f734f
authored
Agu 08, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add dxf import tests
Change-Id: Ied78545abb9807acfc634ca97a1ca00a163ffa19
üst
d6d73b8e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
0 deletions
+116
-0
CppunitTest_filter_dxf_test.mk
filter/CppunitTest_filter_dxf_test.mk
+43
-0
Module_filter.mk
filter/Module_filter.mk
+1
-0
.gitignore
filter/qa/cppunit/data/dxf/fail/.gitignore
+0
-0
.gitignore
filter/qa/cppunit/data/dxf/indeterminate/.gitignore
+1
-0
.gitignore
filter/qa/cppunit/data/dxf/pass/.gitignore
+0
-0
filters-dxf-test.cxx
filter/qa/cppunit/filters-dxf-test.cxx
+71
-0
No files found.
filter/CppunitTest_filter_dxf_test.mk
0 → 100644
Dosyayı görüntüle @
bf5f734f
# -*- 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,filter_dxf_test))
$(eval $(call gb_CppunitTest_use_external,filter_dxf_test,boost_headers))
$(eval $(call gb_CppunitTest_add_exception_objects,filter_dxf_test, \
filter/qa/cppunit/filters-dxf-test \
))
$(eval $(call gb_CppunitTest_use_libraries,filter_dxf_test, \
idx \
sal \
test \
tl \
unotest \
vcl \
$(gb_UWINAPI) \
))
$(eval $(call gb_CppunitTest_use_api,filter_dxf_test,\
udkapi \
offapi \
))
$(eval $(call gb_CppunitTest_use_ure,filter_dxf_test))
$(eval $(call gb_CppunitTest_use_vcl,filter_dxf_test))
$(eval $(call gb_CppunitTest_use_components,filter_dxf_test,\
configmgr/source/configmgr \
i18npool/util/i18npool \
))
$(eval $(call gb_CppunitTest_use_configuration,filter_dxf_test))
# vim: set noet sw=4 ts=4:
filter/Module_filter.mk
Dosyayı görüntüle @
bf5f734f
...
...
@@ -85,6 +85,7 @@ $(eval $(call gb_Module_add_check_targets,filter,\
ifneq ($(DISABLE_CVE_TESTS),TRUE)
$(eval $(call gb_Module_add_check_targets,filter,\
CppunitTest_filter_dxf_test \
CppunitTest_filter_pcx_test \
CppunitTest_filter_pict_test \
CppunitTest_filter_ppm_test \
...
...
filter/qa/cppunit/data/dxf/fail/.gitignore
0 → 100644
Dosyayı görüntüle @
bf5f734f
filter/qa/cppunit/data/dxf/indeterminate/.gitignore
0 → 100644
Dosyayı görüntüle @
bf5f734f
*.wmf-*
filter/qa/cppunit/data/dxf/pass/.gitignore
0 → 100644
Dosyayı görüntüle @
bf5f734f
filter/qa/cppunit/filters-dxf-test.cxx
0 → 100644
Dosyayı görüntüle @
bf5f734f
/* -*- 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 <unotest/filters-test.hxx>
#include <test/bootstrapfixture.hxx>
#include <vcl/FilterConfigItem.hxx>
#include <tools/stream.hxx>
#include <vcl/graph.hxx>
#include <osl/file.hxx>
#include <osl/process.h>
extern
"C"
{
SAL_DLLPUBLIC_EXPORT
bool
SAL_CALL
GraphicImport
(
SvStream
&
rStream
,
Graphic
&
rGraphic
,
FilterConfigItem
*
);
}
using
namespace
::
com
::
sun
::
star
;
/* Implementation of Filters test */
class
DxfFilterTest
:
public
test
::
FiltersTest
,
public
test
::
BootstrapFixture
{
public
:
DxfFilterTest
()
:
BootstrapFixture
(
true
,
false
)
{}
virtual
bool
load
(
const
OUString
&
,
const
OUString
&
rURL
,
const
OUString
&
,
unsigned
int
,
unsigned
int
,
unsigned
int
)
SAL_OVERRIDE
;
/**
* Ensure CVEs remain unbroken
*/
void
testCVEs
();
CPPUNIT_TEST_SUITE
(
DxfFilterTest
);
CPPUNIT_TEST
(
testCVEs
);
CPPUNIT_TEST_SUITE_END
();
};
bool
DxfFilterTest
::
load
(
const
OUString
&
,
const
OUString
&
rURL
,
const
OUString
&
,
unsigned
int
,
unsigned
int
,
unsigned
int
)
{
SvFileStream
aFileStream
(
rURL
,
STREAM_READ
);
Graphic
aGraphic
;
return
GraphicImport
(
aFileStream
,
aGraphic
,
NULL
);
}
void
DxfFilterTest
::
testCVEs
()
{
testDir
(
OUString
(),
getURLFromSrc
(
"/filter/qa/cppunit/data/dxf/"
),
OUString
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
DxfFilterTest
);
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