From 3e94a74628c519978b2cb108623b12c198c6431f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 13 Feb 2015 09:58:43 -0600 Subject: Change streams press volume up --- tests/notifications-test.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/notifications-test.cc') 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"]); } -- cgit v1.2.3