From: Manuel Nickschas Date: Thu, 4 Oct 2018 16:59:59 +0000 (+0200) Subject: test: Add GTest printers for commonly used Qt types X-Git-Tag: test-travis-01~111 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=98ffecc6e97b208712c6f5c5da1b4ba10aa09333;hp=98ffecc6e97b208712c6f5c5da1b4ba10aa09333 test: Add GTest printers for commonly used Qt types Because GTest by default prints out unknown types as hexdump or other badly readably formats, provide PrintTo functions for Qt types we use in tests. That way, GTest will use those instead of falling back to its own default. Reuse Qt's own QDebug stream support to avoid having to reimplement printing functionality for all the types. This makes it very easy to see e.g. the contents of a QVariantMap or other complex types. ---