Ref T261, unit tests

This commit is contained in:
Klaus Basan
2018-04-27 03:08:32 +02:00
committed by Roland Winklmeier
parent f330e91350
commit c7d11975f0
12 changed files with 376 additions and 6 deletions

View File

@@ -34,6 +34,13 @@ namespace BlackMisc
return arg.currentSignature();
}
//! Signature size for BlackMisc::CValueObject
template<typename ValueObj>
static int dBusSignatureSize(const ValueObj &obj)
{
return dBusSignature<ValueObj>(obj).size();
}
//! Type as string
static QString dbusTypeAsString(QDBusArgument::ElementType type);