summaryrefslogtreecommitdiffstats
path: root/src/MultiPrinter.h
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-02-05 16:47:05 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-02-05 16:47:05 +0000
commit3def0ee6af06917b5332bc345c3b9fadc363eb1c (patch)
treebbc50a3350aec50833acb52c02063e63f491dacc /src/MultiPrinter.h
parentImprove/fix error reporting when executing script extensions (diff)
downloadinkscape-3def0ee6af06917b5332bc345c3b9fadc363eb1c.tar.gz
inkscape-3def0ee6af06917b5332bc345c3b9fadc363eb1c.zip
Remove unused cxxtest files.
Diffstat (limited to 'src/MultiPrinter.h')
-rw-r--r--src/MultiPrinter.h112
1 files changed, 0 insertions, 112 deletions
diff --git a/src/MultiPrinter.h b/src/MultiPrinter.h
deleted file mode 100644
index 0d97b2ee9..000000000
--- a/src/MultiPrinter.h
+++ /dev/null
@@ -1,112 +0,0 @@
-#ifndef SEEN_MULTI_PRINTER_H
-#define SEEN_MULTI_PRINTER_H
-
-
-#include <cxxtest/Flags.h>
-
-#ifndef _CXXTEST_HAVE_STD
-# define _CXXTEST_HAVE_STD
-#endif // _CXXTEST_HAVE_STD
-
-#include <cxxtest/ErrorFormatter.h>
-#include <cxxtest/StdValueTraits.h>
-
-#ifdef _CXXTEST_OLD_STD
-# include <iostream.h>
-# include <fstream.h>
-# include <string.h>
-#else // !_CXXTEST_OLD_STD
-# include <iostream>
-# include <fstream>
-# include <string>
-#endif // _CXXTEST_OLD_STD
-
-
-#include <cxxtest/TeeListener.h>
-#include "TRPIFormatter.h"
-#include "PylogFormatter.h"
-
-namespace CxxTest {
-
-class MultiPrinter : public TeeListener
-{
-public:
- MultiPrinter( const char* baseName = "result" ) :
- TeeListener(),
- _baseName( baseName ),
- _xmlName( _baseName + ".xml" ),
- _logName( _baseName + ".log" ),
- _xmlFile( _xmlName.c_str(), CXXTEST_STD(ios::out)),
- _logFile( _logName.c_str(), CXXTEST_STD(ios::out)),
- _dstOne( new FileAdapter( CXXTEST_STD(cout) ) ),
- _dstXml( new FileAdapter( _xmlFile ) ),
- _dstPylog( new FileAdapter( _logFile ), _baseName.c_str() )
- {
- setFirst( _dstOne );
- setSecond( _subTee );
- _subTee.setFirst( _dstXml );
- _subTee.setSecond( _dstPylog );
- }
-
- virtual ~MultiPrinter()
- {
- _xmlFile.close();
- _logFile.close();
- }
-
- int run()
- {
- TestRunner::runAllTests( *this );
- return tracker().failedTests();
- }
-
-protected:
- CXXTEST_STD(string) _baseName;
- CXXTEST_STD(string) _xmlName;
- CXXTEST_STD(string) _logName;
- CXXTEST_STD(fstream) _xmlFile;
- CXXTEST_STD(fstream) _logFile;
-
- TeeListener _subTee;
- ErrorFormatter _dstOne;
- TRPIFormatter _dstXml;
- PylogFormatter _dstPylog;
-
-private:
- class FileAdapter : public OutputStream
- {
- FileAdapter( const FileAdapter & );
- FileAdapter &operator=( const FileAdapter & );
-
- CXXTEST_STD(ostream) &_o;
-
- public:
- FileAdapter( CXXTEST_STD(ostream) &o ) : _o(o) {}
- void flush() { _o.flush(); }
- OutputStream &operator<<( const char *s ) { _o << s; return *this; }
- OutputStream &operator<<( Manipulator m ) { return OutputStream::operator<<( m ); }
- OutputStream &operator<<( unsigned i )
- {
- char s[1 + 3 * sizeof(unsigned)];
- numberToString( i, s );
- _o << s;
- return *this;
- }
- };
-
-};
-
-}
-
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
-
-#endif //SEEN_MULTI_PRINTER_H