diff options
author | Arthur Mello <arthur.mello@canonical.com> | 2016-06-23 16:04:50 -0300 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-08 00:23:13 +0200 |
commit | 033735a671e29307271f0a900b8b10090f28f153 (patch) | |
tree | 8ee03a975028e2dbf41d1e813b39c62d97ab24c1 /tests/test-sound.cpp | |
parent | 9c7c869ae51fffe7ce560faf0d3d2cecf5743563 (diff) | |
download | ayatana-indicator-datetime-033735a671e29307271f0a900b8b10090f28f153.tar.gz ayatana-indicator-datetime-033735a671e29307271f0a900b8b10090f28f153.tar.bz2 ayatana-indicator-datetime-033735a671e29307271f0a900b8b10090f28f153.zip |
Set calendar notification settings to true in case GSettings schema is not available Make sure calendar notification settings are correct during tests
Diffstat (limited to 'tests/test-sound.cpp')
-rw-r--r-- | tests/test-sound.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test-sound.cpp b/tests/test-sound.cpp index 9dbd212..f808db6 100644 --- a/tests/test-sound.cpp +++ b/tests/test-sound.cpp @@ -59,6 +59,12 @@ TEST_F(NotificationFixture, InteractiveDuration) auto sb = std::make_shared<ayatana::indicator::notifications::DefaultSoundBuilder>(); auto snap = create_snap(ne, sb, settings); + settings->cal_notification_enabled.set(true); + settings->cal_notification_sounds.set(true); + settings->cal_notification_vibrations.set(true); + settings->cal_notification_bubbles.set(true); + settings->cal_notification_list.set(true); + make_interactive(); // call the Snap Decision @@ -150,6 +156,12 @@ TEST_F(NotificationFixture,DefaultSounds) auto sb = std::make_shared<TestSoundBuilder>(); auto func = [this](const Appointment&, const Alarm&, const Snap::Response&){g_idle_add(quit_idle, loop);}; + settings->cal_notification_enabled.set(true); + settings->cal_notification_sounds.set(true); + settings->cal_notification_vibrations.set(true); + settings->cal_notification_bubbles.set(true); + settings->cal_notification_list.set(true); + const struct { Appointment appointment; std::string expected_role; |