Commit a02a7571 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Add template specialization of qCompare for GpgME::UserID::Validity

... to get actual and expected values in case of a test failure

GnuPG-bug-id: 5283
parent 6e5b353f
......@@ -21,6 +21,16 @@
using namespace Kleo;
using namespace GpgME;
namespace QTest
{
template <>
inline bool qCompare(GpgME::UserID::Validity const &t1, GpgME::UserID::Validity const &t2, const char *actual, const char *expected,
const char *file, int line)
{
return qCompare(int(t1), int(t2), actual, expected, file, line);
}
}
class KeyResolverCoreTest: public QObject
{
Q_OBJECT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment