test: Add a spy type that waits for one or more signals
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 4 Oct 2018 19:10:13 +0000 (21:10 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commit12a6abcfe51ac66e8763b3caadaedcb47c2723f1
treea42f66bc34663588ad287e6f696f7b5e69810240
parent7dee6df30bc997b3045ec0e20cdefdf8a70ba93e
test: Add a spy type that waits for one or more signals

Introducing SignalSpy that allows to wait for one or more signals
to be emitted in test cases. Unlike QSignalSpy, it is not bound to
a particular signal on construction; instead, one has to explicitly
connect one or more signal(s) before calling wait().
src/test/util/invocationspy.cpp
src/test/util/invocationspy.h