diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-02-26 03:46:01 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-02-26 03:46:01 -0600 |
commit | e5f71ea767515f50f5ed8c34946a87746a3d4ed7 (patch) | |
tree | 57e6d0c7094593193c5c82c017adaf8ccc163573 /tests/test-planner.cpp | |
parent | bb4bb77908d8ccd80260aee4541e45d0a075b0ad (diff) | |
download | ayatana-indicator-datetime-e5f71ea767515f50f5ed8c34946a87746a3d4ed7.tar.gz ayatana-indicator-datetime-e5f71ea767515f50f5ed8c34946a87746a3d4ed7.tar.bz2 ayatana-indicator-datetime-e5f71ea767515f50f5ed8c34946a87746a3d4ed7.zip |
use the timezones object to set the ECalComponent's default timezone. This is needed to properly handle the 'floating' dates in the alarms
Diffstat (limited to 'tests/test-planner.cpp')
-rw-r--r-- | tests/test-planner.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-planner.cpp b/tests/test-planner.cpp index 1923ba1..e5c11f9 100644 --- a/tests/test-planner.cpp +++ b/tests/test-planner.cpp @@ -24,6 +24,7 @@ #include <datetime/date-time.h> #include <datetime/planner.h> #include <datetime/planner-eds.h> +#include <datetime/timezones.h> #include <langinfo.h> #include <locale.h> @@ -43,7 +44,8 @@ TEST_F(PlannerFixture, EDS) g_date_time_unref(tmp); std::shared_ptr<Clock> clock(new MockClock(now)); - PlannerEds planner(clock); + std::shared_ptr<Timezones> timezones(new Timezones); + PlannerEds planner(clock, timezones); wait_msec(100); planner.time.set(now); |