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
60d7a3db
Kaydet (Commit)
60d7a3db
authored
Tem 27, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sigh, missing file
Change-Id: Ic5a254ea49b1281c8d74e5f4ea2dc106627d95e1
üst
2346f0d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
filters-pict-test.cxx
filter/qa/cppunit/filters-pict-test.cxx
+68
-0
No files found.
filter/qa/cppunit/filters-pict-test.cxx
0 → 100644
Dosyayı görüntüle @
60d7a3db
/* -*- 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 <svtools/FilterConfigItem.hxx>
#include <tools/stream.hxx>
#include <vcl/graph.hxx>
#include <osl/file.hxx>
#include <osl/process.h>
extern
"C"
{
SAL_DLLPUBLIC_EXPORT
sal_Bool
__LOADONCALLAPI
GraphicImport
(
SvStream
&
rStream
,
Graphic
&
rGraphic
,
FilterConfigItem
*
,
sal_Bool
);
}
using
namespace
::
com
::
sun
::
star
;
/* Implementation of Filters test */
class
PictFilterTest
:
public
test
::
FiltersTest
,
public
test
::
BootstrapFixture
{
public
:
PictFilterTest
()
:
BootstrapFixture
(
true
,
false
)
{}
virtual
bool
load
(
const
rtl
::
OUString
&
,
const
rtl
::
OUString
&
rURL
,
const
rtl
::
OUString
&
);
/**
* Ensure CVEs remain unbroken
*/
void
testCVEs
();
CPPUNIT_TEST_SUITE
(
PictFilterTest
);
CPPUNIT_TEST
(
testCVEs
);
CPPUNIT_TEST_SUITE_END
();
};
bool
PictFilterTest
::
load
(
const
rtl
::
OUString
&
,
const
rtl
::
OUString
&
rURL
,
const
rtl
::
OUString
&
)
{
SvFileStream
aFileStream
(
rURL
,
STREAM_READ
);
Graphic
aGraphic
;
return
GraphicImport
(
aFileStream
,
aGraphic
,
NULL
,
0
);
}
void
PictFilterTest
::
testCVEs
()
{
testDir
(
rtl
::
OUString
(),
getURLFromSrc
(
"/filter/qa/cppunit/data/pict/"
),
rtl
::
OUString
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
PictFilterTest
);
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