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
19866932
Kaydet (Commit)
19866932
authored
Kas 16, 2014
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
emfplus: re-work and cleanup unit test
Change-Id: I484331c4dd5feedf8587530912bb65556c1689c0
üst
133c295b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
CppunitTest_cppcanvas_emfplus.mk
cppcanvas/CppunitTest_cppcanvas_emfplus.mk
+1
-0
emfplus.cxx
cppcanvas/qa/extras/emfplus/emfplus.cxx
+11
-8
No files found.
cppcanvas/CppunitTest_cppcanvas_emfplus.mk
Dosyayı görüntüle @
19866932
...
...
@@ -21,6 +21,7 @@ $(eval $(call gb_CppunitTest_use_libraries,cppcanvas_emfplus, \
cppuhelper \
sal \
sfx \
subsequenttest \
test \
tl \
unotest \
...
...
cppcanvas/qa/extras/emfplus/emfplus.cxx
Dosyayı görüntüle @
19866932
...
...
@@ -15,18 +15,17 @@
#include <comphelper/processfactory.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/sfxbasemodel.hxx>
#include <test/
bootstrapfixture
.hxx>
#include <test/
unoapi_test
.hxx>
#include <unotest/macros_test.hxx>
#include <vcl/bmpacc.hxx>
#include <vcl/pngwrite.hxx>
using
namespace
com
::
sun
::
star
;
class
Test
:
public
test
::
BootstrapFixture
,
public
unotest
::
Macros
Test
class
Test
:
public
UnoApi
Test
{
public
:
Test
()
:
mpTestDocumentPath
(
"/cppcanvas/qa/extras/emfplus/data/"
)
Test
()
:
UnoApiTest
(
"/cppcanvas/qa/extras/emfplus/data/"
)
{
}
...
...
@@ -36,20 +35,25 @@ public:
virtual
void
setUp
()
SAL_OVERRIDE
{
test
::
BootstrapFixture
::
setUp
();
UnoApiTest
::
setUp
();
mxDesktop
.
set
(
frame
::
Desktop
::
create
(
comphelper
::
getComponentContext
(
getMultiServiceFactory
())));
};
virtual
void
tearDown
()
SAL_OVERRIDE
{
if
(
mxComponent
.
is
())
{
closeDocument
(
mxComponent
);
mxComponent
->
dispose
();
test
::
BootstrapFixture
::
tearDown
();
}
UnoApiTest
::
tearDown
();
};
Bitmap
load
(
const
char
*
pName
)
{
mxComponent
=
loadFromDesktop
(
getURLFromSrc
(
mpTestDocumentPath
)
+
OUString
::
createFromAscii
(
pName
),
"com.sun.star.drawing.DrawingDocument"
);
OUString
aFileURL
;
createFileURL
(
OUString
::
createFromAscii
(
pName
),
aFileURL
);
mxComponent
=
loadFromDesktop
(
aFileURL
,
"com.sun.star.drawing.DrawingDocument"
);
SfxBaseModel
*
pModel
=
dynamic_cast
<
SfxBaseModel
*>
(
mxComponent
.
get
());
CPPUNIT_ASSERT
(
pModel
);
SfxObjectShell
*
pShell
=
pModel
->
GetObjectShell
();
...
...
@@ -75,7 +79,6 @@ public:
CPPUNIT_TEST_SUITE_END
();
uno
::
Reference
<
lang
::
XComponent
>
mxComponent
;
const
char
*
mpTestDocumentPath
;
};
void
Test
::
testFdo77229
()
...
...
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