We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 421d4d0 commit 754de11Copy full SHA for 754de11
test/common.h
@@ -3,7 +3,14 @@
3
4
// This is just a fix for QSignalSpy::wait
5
// http://stackoverflow.com/questions/22390208/google-test-mock-with-qt-signals
6
-#define SPYWAIT(spy) (spy.count()>0||spy.wait())
7
-#define SPYWAIT2(spy, time) (spy.count()>0||spy.wait(time))
+bool SPYWAIT(QSignalSpy &spy, int timeout=10000)
+{
8
+ return spy.count()>0||spy.wait(timeout);
9
+}
10
+
11
+bool SPYWAIT2(QSignalSpy &spy, int timeout=5000)
12
13
14
15
16
#endif
0 commit comments