diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-05-14 12:20:00 -0500 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-07 02:20:43 +0200 |
commit | 5556233b478145158f12b1a81e87bb20a7b5cff7 (patch) | |
tree | b18068bef7d8c42c8812081c8edadb5401575d22 /tests/test-notification.cpp | |
parent | 8c7997ad86cffd8fb0b1578e2bc632395744d0b8 (diff) | |
download | ayatana-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-notification.cpp')
-rw-r--r-- | tests/test-notification.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test-notification.cpp b/tests/test-notification.cpp index d04cc8d..74a0b92 100644 --- a/tests/test-notification.cpp +++ b/tests/test-notification.cpp @@ -53,7 +53,7 @@ TEST_F(NotificationFixture,Notification) auto settings = std::make_shared<Settings>(); auto ne = std::make_shared<ayatana::indicator::notifications::Engine>(APP_NAME); auto sb = std::make_shared<ayatana::indicator::notifications::DefaultSoundBuilder>(); - 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);}; // combinatorial factor #1: event type struct { @@ -143,7 +143,7 @@ TEST_F(NotificationFixture,Notification) // run the test auto snap = create_snap(ne, sb, settings); - (*snap)(test_appt.appt, appt.alarms.front(), func, func); + (*snap)(test_appt.appt, appt.alarms.front(), func); // confirm that the notification was as expected if (expected_notify_called) { @@ -194,4 +194,3 @@ TEST_F(NotificationFixture,Notification) } } } - |