aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/indicator-sound-test-base.h
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2016-01-29 12:16:34 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2016-01-29 12:16:34 +0100
commit12715ce7e03fec9544d7261c87aa9ddaa39b75ad (patch)
tree9704d6a09856ee745926ec36705738dda19d7cba /tests/integration/indicator-sound-test-base.h
parentee2ba9c677721724c8385ff2c9f32f7a9f090f0d (diff)
downloadayatana-indicator-sound-12715ce7e03fec9544d7261c87aa9ddaa39b75ad.tar.gz
ayatana-indicator-sound-12715ce7e03fec9544d7261c87aa9ddaa39b75ad.tar.bz2
ayatana-indicator-sound-12715ce7e03fec9544d7261c87aa9ddaa39b75ad.zip
added integration tests for adding/removing players and playback controls
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 d9d3289..969fd69 100644
--- a/tests/integration/indicator-sound-test-base.h
+++ b/tests/integration/indicator-sound-test-base.h
@@ -81,6 +81,8 @@ protected:
bool runProcess(QProcess&);
bool startTestMprisPlayer(QString const& playerName);
+ bool stopTestMprisPlayer(QString const& playerName);
+ int findRunningTestMprisPlayer(QString const& playerName);
bool setTestMprisPlayerProperty(QString const &testPlayer, QString const &property, bool value);
@@ -156,6 +158,13 @@ protected:
QProcess testPlayer1;
+ struct TestPlayer
+ {
+ std::shared_ptr<QProcess> process;
+ QString name;
+ };
+ QVector<TestPlayer> testPlayers;
+
std::unique_ptr<MenusInterface> menu_interface_;
std::unique_ptr<DBusPropertiesInterface> accounts_interface_;