aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/indicator-sound-test-base.h
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-21 16:01:33 +0200
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-21 16:01:33 +0200
commit22de41f3cc382adbf06be8642af5cfa7ec664c8e (patch)
tree77ad551d928582852a03a6a315051e462a5daf75 /tests/integration/indicator-sound-test-base.h
parent42d7df585cf61eb64cdb7fc7e171969ce35f6173 (diff)
downloadayatana-indicator-sound-22de41f3cc382adbf06be8642af5cfa7ec664c8e.tar.gz
ayatana-indicator-sound-22de41f3cc382adbf06be8642af5cfa7ec664c8e.tar.bz2
ayatana-indicator-sound-22de41f3cc382adbf06be8642af5cfa7ec664c8e.zip
Added separated integration tests for desktop and phone, with different instances of pulseaudio
Diffstat (limited to 'tests/integration/indicator-sound-test-base.h')
-rw-r--r--tests/integration/indicator-sound-test-base.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/integration/indicator-sound-test-base.h b/tests/integration/indicator-sound-test-base.h
index 04a579f..019efc9 100644
--- a/tests/integration/indicator-sound-test-base.h
+++ b/tests/integration/indicator-sound-test-base.h
@@ -45,10 +45,13 @@ protected:
void TearDown() override;
void startIndicator();
- void startPulse();
+ void startPulseDesktop();
+ void startPulsePhone();
void startAccountsService();
- bool setVolume(QString const &role, double volume);
+ bool setStreamRestoreVolume(QString const &role, double volume);
+
+ bool setSinkVolume(double volume);
bool startTestSound(QString const &role);
@@ -58,8 +61,12 @@ protected:
static unity::gmenuharness::MenuMatcher::Parameters desktopParameters();
+ static unity::gmenuharness::MenuMatcher::Parameters phoneParameters();
+
static unity::gmenuharness::MenuItemMatcher volumeSlider(double volume);
+ static unity::gmenuharness::MenuItemMatcher silentModeSwitch(bool toggled);
+
bool waitMenuChange();
bool waitVolumeChangedInIndicator();