ctkTestApplication.h File Reference

#include <QApplication>
#include <QVector>
#include <QByteArray>
#include <QTimer>
#include "CTKWidgetsExport.h"
Include dependency graph for ctkTestApplication.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ctkTestApplication

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 ctkTestApplication       \
{                                                   \
public:                                             \
  _TEST_NAME(int _argc, char * _argv []):           \
    ctkTestApplication(_argc, _argv){}             \
  virtual void runTest();                           \
};                                                  \
                                                    \
void _TEST_NAME::runTest()                          \

Helper macro allowing to declare a test.

Definition at line 50 of file ctkTestApplication.h.

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

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

Definition at line 75 of file ctkTestApplication.h.

#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.

Definition at line 64 of file ctkTestApplication.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1