diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-11-05 13:42:26 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-11-05 13:42:26 +0100 |
commit | d792866d95550f9fdc7db365f46ae0a9245be954 (patch) | |
tree | 5da3305e76f97cdacdbefe7c06f2bc682e128155 /tests/notifications-test.cc | |
parent | 8dfa72f222878d87825048d2bc1f4c4b05276d02 (diff) | |
parent | 89bdf3a90fb92c4794d7b25f286d34dbc4093d88 (diff) | |
download | ayatana-indicator-sound-d792866d95550f9fdc7db365f46ae0a9245be954.tar.gz ayatana-indicator-sound-d792866d95550f9fdc7db365f46ae0a9245be954.tar.bz2 ayatana-indicator-sound-d792866d95550f9fdc7db365f46ae0a9245be954.zip |
Merge branch 'tari01-pr/rename-x-canonical-value-bar-tint'
Attributes GH PR #45: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/45
Diffstat (limited to 'tests/notifications-test.cc')
-rw-r--r-- | tests/notifications-test.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc index 1e48f52..47f4c47 100644 --- a/tests/notifications-test.cc +++ b/tests/notifications-test.cc @@ -1,5 +1,6 @@ /* * Copyright © 2015-2016 Canonical Ltd. + * Copyright © 2021 Robert Tari * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,6 +17,7 @@ * Authors: * Ted Gould <ted@canonical.com> * Charles Kerr <charles.kerr@canonical.com> + * Robert Tari <robert@tari.in> */ #include <algorithm> @@ -425,7 +427,7 @@ TEST_F(NotificationsTest, DISABLED_HighVolume) { ASSERT_EQ(1, notev.size()); EXPECT_EQ("Volume", notev[0].summary); EXPECT_EQ("Speakers", notev[0].body); - EXPECT_GVARIANT_EQ("@s 'false'", notev[0].hints["x-canonical-value-bar-tint"]); + EXPECT_GVARIANT_EQ("@s 'false'", notev[0].hints["x-ayatana-value-bar-tint"]); /* Set high volume with volume change */ notifications->clearNotifications(); @@ -436,7 +438,7 @@ TEST_F(NotificationsTest, DISABLED_HighVolume) { ASSERT_LT(0, notev.size()); /* This passes with one or two since it would just be an update to the first if a second was sent */ EXPECT_EQ("Volume", notev[0].summary); EXPECT_EQ("Speakers", notev[0].body); - EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-canonical-value-bar-tint"]); + EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-ayatana-value-bar-tint"]); /* Move it back */ volume_warning_mock_set_high_volume(VOLUME_WARNING_MOCK(volumeWarning.get()), false); @@ -452,7 +454,7 @@ TEST_F(NotificationsTest, DISABLED_HighVolume) { ASSERT_EQ(1, notev.size()); EXPECT_EQ("Volume", notev[0].summary); EXPECT_EQ("Speakers", notev[0].body); - EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-canonical-value-bar-tint"]); + EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-ayatana-value-bar-tint"]); } TEST_F(NotificationsTest, DISABLED_MenuHide) { |