diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-03-31 12:31:28 -0300 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | 56e4d6f13a903f8880fc5b47db3518afae22e7ff (patch) | |
tree | 335b77a1cd05c45e34af6590d3ec50159bc82b81 /tests | |
parent | 0193ddded016c473242096414af6d53a37737a25 (diff) | |
download | ayatana-indicator-datetime-56e4d6f13a903f8880fc5b47db3518afae22e7ff.tar.gz ayatana-indicator-datetime-56e4d6f13a903f8880fc5b47db3518afae22e7ff.tar.bz2 ayatana-indicator-datetime-56e4d6f13a903f8880fc5b47db3518afae22e7ff.zip |
Removed unecessary code.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-eds-ics-non-attending-alarms.cpp | 17 |
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); } |