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
58b76a18
Kaydet (Commit)
58b76a18
authored
Nis 18, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add ppm regression test
Change-Id: Ifd5f68a3b0dec16f8d992f75fba8c9920700f351
üst
4008c660
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
0 deletions
+114
-0
CppunitTest_filter_ppm_test.mk
filter/CppunitTest_filter_ppm_test.mk
+41
-0
Module_filter.mk
filter/Module_filter.mk
+1
-0
.gitignore
filter/qa/cppunit/data/ppm/fail/.gitignore
+0
-0
CVE-2008-1097-1.ppm
filter/qa/cppunit/data/ppm/fail/CVE-2008-1097-1.ppm
+0
-0
.gitignore
filter/qa/cppunit/data/ppm/indeterminate/.gitignore
+1
-0
.gitignore
filter/qa/cppunit/data/ppm/pass/.gitignore
+0
-0
fdo19811-2.ppm
filter/qa/cppunit/data/ppm/pass/fdo19811-2.ppm
+0
-0
filters-ppm-test.cxx
filter/qa/cppunit/filters-ppm-test.cxx
+71
-0
No files found.
filter/CppunitTest_filter_ppm_test.mk
0 → 100644
Dosyayı görüntüle @
58b76a18
# -*- 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_ppm_test))
$(eval $(call gb_CppunitTest_use_external,filter_ppm_test,boost_headers))
$(eval $(call gb_CppunitTest_add_exception_objects,filter_ppm_test, \
filter/qa/cppunit/filters-ppm-test \
))
$(eval $(call gb_CppunitTest_use_libraries,filter_ppm_test, \
ipb \
sal \
test \
tl \
unotest \
vcl \
$(gb_UWINAPI) \
))
$(eval $(call gb_CppunitTest_use_api,filter_ppm_test,\
udkapi \
offapi \
))
$(eval $(call gb_CppunitTest_use_ure,filter_ppm_test))
$(eval $(call gb_CppunitTest_use_components,filter_ppm_test,\
configmgr/source/configmgr \
))
$(eval $(call gb_CppunitTest_use_configuration,filter_ppm_test))
# vim: set noet sw=4 ts=4:
filter/Module_filter.mk
Dosyayı görüntüle @
58b76a18
...
@@ -85,6 +85,7 @@ ifneq ($(DISABLE_CVE_TESTS),TRUE)
...
@@ -85,6 +85,7 @@ ifneq ($(DISABLE_CVE_TESTS),TRUE)
$(eval $(call gb_Module_add_check_targets,filter,\
$(eval $(call gb_Module_add_check_targets,filter,\
CppunitTest_filter_pcx_test \
CppunitTest_filter_pcx_test \
CppunitTest_filter_pict_test \
CppunitTest_filter_pict_test \
CppunitTest_filter_ppm_test \
CppunitTest_filter_psd_test \
CppunitTest_filter_psd_test \
CppunitTest_filter_ras_test \
CppunitTest_filter_ras_test \
CppunitTest_filter_tiff_test \
CppunitTest_filter_tiff_test \
...
...
filter/qa/cppunit/data/ppm/fail/.gitignore
0 → 100644
Dosyayı görüntüle @
58b76a18
filter/qa/cppunit/data/ppm/fail/CVE-2008-1097-1.ppm
0 → 100644
Dosyayı görüntüle @
58b76a18
File added
filter/qa/cppunit/data/ppm/indeterminate/.gitignore
0 → 100644
Dosyayı görüntüle @
58b76a18
*.wmf-*
filter/qa/cppunit/data/ppm/pass/.gitignore
0 → 100644
Dosyayı görüntüle @
58b76a18
filter/qa/cppunit/data/ppm/pass/fdo19811-2.ppm
0 → 100644
Dosyayı görüntüle @
58b76a18
File added
filter/qa/cppunit/filters-ppm-test.cxx
0 → 100644
Dosyayı görüntüle @
58b76a18
/* -*- 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
PpmFilterTest
:
public
test
::
FiltersTest
,
public
test
::
BootstrapFixture
{
public
:
PpmFilterTest
()
:
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
(
PpmFilterTest
);
CPPUNIT_TEST
(
testCVEs
);
CPPUNIT_TEST_SUITE_END
();
};
bool
PpmFilterTest
::
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
PpmFilterTest
::
testCVEs
()
{
testDir
(
OUString
(),
getURLFromSrc
(
"/filter/qa/cppunit/data/ppm/"
),
OUString
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
PpmFilterTest
);
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