qCTKTestApplication.h File Reference

#include <QApplication>
#include <QVector>
#include <QByteArray>
#include <QTimer>
#include "qCTKWidgetsExport.h"

Go to the source code of this file.

Classes

class  qCTKTestApplication

Defines

#define QCTK_DECLARE_TEST(TEST_NAME)
 Helper macro allowing to declare a test.
#define QCTK_EXIT_TEST(_status)
 Helper macro allowing to exit the event loop specifying a return code.
#define QCTK_RUN_TEST(TEST_NAME)
 Helper macro allowing to define a test.

Define Documentation

#define QCTK_DECLARE_TEST ( TEST_NAME   ) 
Value:
namespace                                           \
{                                                   \
class _TEST_NAME : public qCTKTestApplication       \
{                                                   \
public:                                             \
  _TEST_NAME(int _argc, char * _argv []):           \
    qCTKTestApplication(_argc, _argv){}             \
  virtual void runTest();                           \
};                                                  \
                                                    \
void _TEST_NAME::runTest()                          \

Helper macro allowing to declare a test.

#define QCTK_EXIT_TEST ( _status   ) 
Value:
QCoreApplication::exit(_status); \
  return;

Helper macro allowing to exit the event loop specifying a return code.

Referenced by QCTK_DECLARE_TEST().

#define QCTK_RUN_TEST ( TEST_NAME   ) 
Value:
}                                                     \
                                                      \
int TEST_NAME(int _argc, char * _argv [] )            \
{                                                     \
  _TEST_NAME app(_argc, _argv);                       \
  QTimer::singleShot(0, &app, SLOT(runTestSlot()));   \
  return _TEST_NAME::exec();                          \
}

Helper macro allowing to define a test.


Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1