RoadTest.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** Copyright (c) 2008-2011 C.B. Barber. All rights reserved.
00004 ** $Id: //main/2011/qhull/src/road/RoadTest.h#2 $$Change: 1342 $
00005 ** $Date: 2011/03/07 $$Author: bbarber $
00006 **
00007 ****************************************************************************/
00008 
00009 #ifndef ROADTEST_H
00010 #define ROADTEST_H
00011 
00012 //pre-compiled with RoadTest.h
00013 #include <QObject>    // Qt C++ Framework
00014 #include <QtTest/QtTest>
00015 
00016 #define QHULL_USES_QT 1
00017 
00018 namespace orgQhull {
00019 
00020 #//!\name Defined here
00021 
00023     class RoadTest;
00025 
00054 class RoadTest : public QObject
00055 {
00056     Q_OBJECT
00057 
00058 #//!\name Class globals
00059 protected:
00060     static QList<RoadTest *>
00061                         s_testcases; 
00062     static int          s_test_count; 
00063     static int          s_test_fail; 
00064     static QStringList  s_failed_tests; 
00065 
00066 #//!\name Test slots
00067 public slots:
00068     void cleanup();
00069 
00070 public:
00071 #//!\name Constructors, etc.
00072     RoadTest()  { s_testcases.append(this); }
00073     ~RoadTest() { s_testcases.removeAll(this); }
00074 
00075 #//Helper
00076     void                recordFailedTest();
00077 
00078 
00079 #//!\name Class functions
00080     static int          runTests(QStringList arguments);
00081 
00082 };//RoadTest
00083 
00084 #define TESTadd_(t) extern void t(); t();
00085 
00086 
00087 }//orgQhull
00088 
00089 namespace QTest{
00090 
00091 template<>
00092 inline char *
00093 toString(const std::string &s)
00094 {
00095     return qstrdup(s.c_str());
00096 }
00097 
00098 }//namespace QTest
00099 
00100 #endif //ROADTEST_H
00101 


libqhull-ours
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:32:11