aboutsummaryrefslogtreecommitdiff
path: root/tests/test-sound.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-05-14 12:20:00 -0500
committerRobert Tari <robert@tari.in>2021-07-07 02:20:43 +0200
commit5556233b478145158f12b1a81e87bb20a7b5cff7 (patch)
treeb18068bef7d8c42c8812081c8edadb5401575d22 /tests/test-sound.cpp
parent8c7997ad86cffd8fb0b1578e2bc632395744d0b8 (diff)
downloadayatana-indicator-datetime-5556233b478145158f12b1a81e87bb20a7b5cff7.tar.gz
ayatana-indicator-datetime-5556233b478145158f12b1a81e87bb20a7b5cff7.tar.bz2
ayatana-indicator-datetime-5556233b478145158f12b1a81e87bb20a7b5cff7.zip
sync tests with previous commit's Snap::Response change
Diffstat (limited to 'tests/test-sound.cpp')
-rw-r--r--tests/test-sound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-sound.cpp b/tests/test-sound.cpp
index 0d80109..9dbd212 100644
--- a/tests/test-sound.cpp
+++ b/tests/test-sound.cpp
@@ -62,8 +62,8 @@ TEST_F(NotificationFixture, InteractiveDuration)
make_interactive();
// call the Snap Decision
- auto func = [this](const Appointment&, const Alarm&){g_idle_add(quit_idle, loop);};
- (*snap)(appt, appt.alarms.front(), func, func);
+ auto func = [this](const Appointment&, const Alarm&, const Snap::Response&){g_idle_add(quit_idle, loop);};
+ (*snap)(appt, appt.alarms.front(), func);
// confirm that Notify got called once
guint len = 0;
@@ -148,7 +148,7 @@ TEST_F(NotificationFixture,DefaultSounds)
auto settings = std::make_shared<Settings>();
auto ne = std::make_shared<ayatana::indicator::notifications::Engine>(APP_NAME);
auto sb = std::make_shared<TestSoundBuilder>();
- auto func = [this](const Appointment&, const Alarm&){g_idle_add(quit_idle, loop);};
+ auto func = [this](const Appointment&, const Alarm&, const Snap::Response&){g_idle_add(quit_idle, loop);};
const struct {
Appointment appointment;
@@ -163,7 +163,7 @@ TEST_F(NotificationFixture,DefaultSounds)
auto snap = create_snap(ne, sb, settings);
for(const auto& test_case : test_cases)
{
- (*snap)(test_case.appointment, test_case.appointment.alarms.front(), func, func);
+ (*snap)(test_case.appointment, test_case.appointment.alarms.front(), func);
EXPECT_EQ(test_case.expected_uri, sb->uri());
EXPECT_EQ(test_case.expected_role, sb->role());
}