aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-13 09:58:43 -0600
committerTed Gould <ted@gould.cx>2015-02-13 09:58:43 -0600
commit3e94a74628c519978b2cb108623b12c198c6431f (patch)
treebe3da220a7cbb02609cb43cb94df099cdf0e7620 /tests
parent8159d6abf29c3618d2a3a7d8084f303d5a057594 (diff)
downloadayatana-indicator-sound-3e94a74628c519978b2cb108623b12c198c6431f.tar.gz
ayatana-indicator-sound-3e94a74628c519978b2cb108623b12c198c6431f.tar.bz2
ayatana-indicator-sound-3e94a74628c519978b2cb108623b12c198c6431f.zip
Change streams press volume up
Diffstat (limited to 'tests')
-rw-r--r--tests/notifications-test.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc
index b43b691..3ce58f8 100644
--- a/tests/notifications-test.cc
+++ b/tests/notifications-test.cc
@@ -213,4 +213,14 @@ TEST_F(NotificationsTest, StreamChanges) {
loop(50);
notev = notifications->getNotifications();
EXPECT_EQ(0, notev.size());
+
+ /* Change Streams, no volume change, volume up */
+ notifications->clearNotifications();
+ volume_control_mock_set_mock_stream(VOLUME_CONTROL_MOCK(volumeControl.get()), "multimedia");
+ volume_control_set_volume(volumeControl.get(), 60.0);
+ loop(50);
+ volume_control_set_volume(volumeControl.get(), 65.0);
+ notev = notifications->getNotifications();
+ EXPECT_EQ(1, notev.size());
+ EXPECT_GVARIANT_EQ("@i 6500", notev[0].hints["value"]);
}