21 #ifndef __ctkCoreTestingUtilities_h
22 #define __ctkCoreTestingUtilities_h
25 #include <ctkCoreExport.h>
29 #include <QStringList>
55 bool CheckInt(
int line,
const QString& description,
56 int current,
int expected);
63 bool CheckNull(
int line,
const QString& description,
68 void* current,
void* expected,
bool errorIfDifferent =
true);
72 const char* current,
const char* expected,
bool errorIfDifferent =
true );
76 const QStringList& current,
const QStringList& expected);
80 const QVariant& current,
const QVariant& expected);
84 #include "ctkCoreTestingUtilities.tpp"
CTK_CORE_EXPORT bool CheckStringList(int line, const QString &description, const QStringList ¤t, const QStringList &expected)
CTK_CORE_EXPORT bool CheckVariant(int line, const QString &description, const QVariant ¤t, const QVariant &expected)
CTK_CORE_EXPORT bool CheckNull(int line, const QString &description, const void *pointer)
CTK_CORE_EXPORT bool CheckPointer(int line, const QString &description, void *current, void *expected, bool errorIfDifferent=true)
CTK_CORE_EXPORT bool CheckNotNull(int line, const QString &description, const void *pointer)
CTK_CORE_EXPORT bool CheckString(int line, const QString &description, const char *current, const char *expected, bool errorIfDifferent=true)
CTK_CORE_EXPORT bool CheckInt(int line, const QString &description, int current, int expected)