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
4355a784
Kaydet (Commit)
4355a784
authored
Haz 30, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
extend CppUnit::Protector for context-less protection
üst
5a85cf50
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
+26
-8
protectorfactory.hxx
sal/inc/cppunittester/protectorfactory.hxx
+14
-8
cppunit.h
sal/inc/sal/cppunit.h
+12
-0
No files found.
sal/inc/cppunittester/protectorfactory.hxx
Dosyayı görüntüle @
4355a784
...
@@ -32,14 +32,20 @@
...
@@ -32,14 +32,20 @@
#include "sal/types.h"
#include "sal/types.h"
namespace
CppUnit
{
class
Protector
;
}
#include <cppunit/Protector.h>
namespace
cppunittester
{
namespace
cppunittester
{
// The type of CppUnit::Protector factory functions that can be plugged into
class
LibreOfficeProtector
:
public
CppUnit
::
Protector
// cppunittester:
{
extern
"C"
typedef
CppUnit
::
Protector
*
SAL_CALL
ProtectorFactory
();
public
:
virtual
bool
protect
(
CppUnit
::
Functor
const
&
functor
)
=
0
;
using
CppUnit
::
Protector
::
protect
;
};
// The type of CppUnit::Protector factory functions that can be plugged into
// cppunittester:
extern
"C"
typedef
LibreOfficeProtector
*
SAL_CALL
ProtectorFactory
();
}
}
#endif
#endif
sal/inc/sal/cppunit.h
Dosyayı görüntüle @
4355a784
...
@@ -35,6 +35,18 @@
...
@@ -35,6 +35,18 @@
#include <cppunit/TestFixture.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <cppunit/Protector.h>
namespace
cppunittester
{
class
LibreOfficeProtecter
:
public
CppUnit
::
Protector
{
public
:
virtual
bool
protect
(
CppUnit
::
Functor
const
&
functor
)
=
0
;
using
CppUnit
::
Protector
::
protect
;
};
}
#undef CPPUNIT_PLUGIN_EXPORT
#undef CPPUNIT_PLUGIN_EXPORT
#define CPPUNIT_PLUGIN_EXPORT extern "C" SAL_DLLPUBLIC_EXPORT
#define CPPUNIT_PLUGIN_EXPORT extern "C" SAL_DLLPUBLIC_EXPORT
...
...
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