aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/indicator-sound-test-base.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/indicator-sound-test-base.h')
-rw-r--r--tests/integration/indicator-sound-test-base.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/integration/indicator-sound-test-base.h b/tests/integration/indicator-sound-test-base.h
index 20e44fc..6879bcb 100644
--- a/tests/integration/indicator-sound-test-base.h
+++ b/tests/integration/indicator-sound-test-base.h
@@ -49,13 +49,21 @@ public:
~IndicatorSoundTestBase();
+ enum DevicePortType
+ {
+ WIRED,
+ BLUETOOTH,
+ USB,
+ HDMI
+ };
+
protected:
void SetUp() override;
void TearDown() override;
void startIndicator();
- void startPulseDesktop();
- void startPulsePhone();
+ void startPulseDesktop(DevicePortType speakerPort=WIRED, DevicePortType headphonesPort=WIRED);
+ void startPulsePhone(DevicePortType speakerPort=WIRED, DevicePortType headphonesPort=WIRED);
void startAccountsService();
bool clearGSettingsPlayers();
@@ -78,7 +86,7 @@ protected:
static unity::gmenuharness::MenuMatcher::Parameters phoneParameters();
- static unity::gmenuharness::MenuItemMatcher volumeSlider(double volume);
+ static unity::gmenuharness::MenuItemMatcher volumeSlider(double volume, QString const &label);
static unity::gmenuharness::MenuItemMatcher silentModeSwitch(bool toggled);
@@ -110,6 +118,10 @@ protected:
bool activateHeadphones(bool headphonesActive);
+ QString getDevicePortString(DevicePortType port);
+
+ void checkPortDevicesLabels(DevicePortType speakerPort, DevicePortType headphonesPort);
+
QtDBusTest::DBusTestRunner dbusTestRunner;
QtDBusMock::DBusMock dbusMock;