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-26 12:01:16 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-10-26 12:01:16 +0100
commit698baf72cd6a606d9c8101c31e0d40b38d48a8bb (patch)
tree93c3ffbc9bb122892981cd79e7ee875cb2a2e883 /tests/integration/indicator-sound-test-base.h
parentdc719904611197a1f01fc4034f4678ffae556491 (diff)
downloadayatana-indicator-sound-698baf72cd6a606d9c8101c31e0d40b38d48a8bb.tar.gz
ayatana-indicator-sound-698baf72cd6a606d9c8101c31e0d40b38d48a8bb.tar.bz2
ayatana-indicator-sound-698baf72cd6a606d9c8101c31e0d40b38d48a8bb.zip
Changed unit test to wait for the indicator to connect the user accounts
Diffstat (limited to 'tests/integration/indicator-sound-test-base.h')
-rw-r--r--tests/integration/indicator-sound-test-base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/integration/indicator-sound-test-base.h b/tests/integration/indicator-sound-test-base.h
index f9df9bb..41dd1c7 100644
--- a/tests/integration/indicator-sound-test-base.h
+++ b/tests/integration/indicator-sound-test-base.h
@@ -31,6 +31,7 @@
class MenusInterface;
class DBusPulseVolume;
class DBusPropertiesInterface;
+class AccountsInterface;
class QSignalSpy;
#define WAIT_FOR_SIGNALS(signalSpy, signalsExpected)\
@@ -131,6 +132,8 @@ protected:
void checkPortDevicesLabels(DevicePortType speakerPort, DevicePortType headphonesPort);
+ bool setVolumeUntilAccountsIsConnected(double volume);
+
QtDBusTest::DBusTestRunner dbusTestRunner;
QtDBusMock::DBusMock dbusMock;
@@ -149,6 +152,8 @@ protected:
std::unique_ptr<DBusPropertiesInterface> accounts_interface_;
+ std::unique_ptr<AccountsInterface> main_accounts_interface_;
+
std::unique_ptr<QSignalSpy> signal_spy_volume_changed_;
std::unique_ptr<QSignalSpy> signal_spy_menu_changed_;