aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/indicator-sound-test-base.h
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-10-22 10:55:13 +0200
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-10-22 10:55:13 +0200
commit3460b9c8d18a52bb859f143f0428e0325d699a3f (patch)
tree424222e6b8d51965049eac83c6c38fd328a7dcc8 /tests/integration/indicator-sound-test-base.h
parent5a294ce7bba694a5cd61246c0e46febeb9b30339 (diff)
downloadayatana-indicator-sound-3460b9c8d18a52bb859f143f0428e0325d699a3f.tar.gz
ayatana-indicator-sound-3460b9c8d18a52bb859f143f0428e0325d699a3f.tar.bz2
ayatana-indicator-sound-3460b9c8d18a52bb859f143f0428e0325d699a3f.zip
Update unit test
Diffstat (limited to 'tests/integration/indicator-sound-test-base.h')
-rw-r--r--tests/integration/indicator-sound-test-base.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/integration/indicator-sound-test-base.h b/tests/integration/indicator-sound-test-base.h
index 6879bcb..f9df9bb 100644
--- a/tests/integration/indicator-sound-test-base.h
+++ b/tests/integration/indicator-sound-test-base.h
@@ -42,6 +42,15 @@ class QSignalSpy;
ASSERT_EQ(signalsExpected, signalSpy.size());\
}
+#define WAIT_AT_LEAST_SIGNALS(signalSpy, signalsExpected)\
+{\
+ while (signalSpy.size() < signalsExpected)\
+ {\
+ ASSERT_TRUE(signalSpy.wait());\
+ }\
+ ASSERT_TRUE(signalsExpected <= signalSpy.size());\
+}
+
class IndicatorSoundTestBase: public testing::Test
{
public: