aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 12:31:28 -0300
committerRobert Tari <robert@tari.in>2021-07-05 00:51:17 +0200
commit66e8c8eac3f95246f103505d4b54a56ad1a62baf (patch)
tree033f737c7b88c0741d03f404c19fbd8eddf6843e /tests
parentca16c5e6458ac2ea7b7eb039ffda2ddb2fb1d918 (diff)
downloadayatana-indicator-datetime-66e8c8eac3f95246f103505d4b54a56ad1a62baf.tar.gz
ayatana-indicator-datetime-66e8c8eac3f95246f103505d4b54a56ad1a62baf.tar.bz2
ayatana-indicator-datetime-66e8c8eac3f95246f103505d4b54a56ad1a62baf.zip
Removed unecessary code.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-eds-ics-non-attending-alarms.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/test-eds-ics-non-attending-alarms.cpp b/tests/test-eds-ics-non-attending-alarms.cpp
index c2c7933..796dd2d 100644
--- a/tests/test-eds-ics-non-attending-alarms.cpp
+++ b/tests/test-eds-ics-non-attending-alarms.cpp
@@ -81,23 +81,6 @@ TEST_F(VAlarmFixture, NonAttendingEvent)
const auto appts = planner->appointments().get();
ASSERT_EQ(0, appts.size());
- /*
- // now let's try this out with AlarmQueue...
- // hook the planner up to a SimpleAlarmQueue and confirm that it triggers for each of the reminders
- auto mock_clock = std::make_shared<MockClock>(range_begin);
- std::shared_ptr<Clock> clock = mock_clock;
- std::shared_ptr<WakeupTimer> wakeup_timer = std::make_shared<MockWakeupTimer>(clock);
- auto alarm_queue = std::make_shared<SimpleAlarmQueue>(clock, planner, wakeup_timer);
- int triggered_count = 0;
- alarm_queue->alarm_reached().connect([&triggered_count, appt](const Appointment&, const Alarm& active_alarm) {
- EXPECT_TRUE(std::find(appt.alarms.begin(), appt.alarms.end(), active_alarm) != appt.alarms.end());
- ++triggered_count;
- });
- for (auto now=range_begin; now<range_end; now+=std::chrono::minutes{1})
- mock_clock->set_localtime(now);
- EXPECT_EQ(appt.alarms.size(), triggered_count);
- */
-
// cleanup
g_time_zone_unref(gtz);
}